Merge pull request '3615-feat(print_deliveryNote): add withoutPrices type' (#908) from 3615-print_deliveryNote into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #908
Reviewed-by: Carlos Jimenez Ruiz <carlosjr@verdnatura.es>
This commit is contained in:
Carlos Jimenez Ruiz 2022-03-28 09:26:11 +00:00
commit 81a3ea7646
8 changed files with 24 additions and 10 deletions

View File

@ -32,6 +32,12 @@
translate>
as PDF
</a>
<vn-item
ng-if="!$ctrl.hasDocuwareFile"
ng-click="$ctrl.showPdfDeliveryNote('withoutPrices')"
translate>
as PDF without prices
</vn-item>
<vn-item
ng-click="$ctrl.showCsvDeliveryNote()"
translate>

View File

@ -2,6 +2,7 @@ Show Delivery Note...: Ver albarán...
Send Delivery Note...: Enviar albarán...
as PDF: como PDF
as CSV: como CSV
as PDF without prices: como PDF sin precios
Send PDF: Enviar PDF
Send CSV: Enviar CSV
Send CSV Delivery Note: Enviar albarán en CSV

View File

@ -77,10 +77,10 @@
<th width="5%">{{$t('reference')}}</th>
<th class="number">{{$t('quantity')}}</th>
<th width="50%">{{$t('concept')}}</th>
<th class="number">{{$t('price')}}</th>
<th class="centered" width="5%">{{$t('discount')}}</th>
<th class="centered">{{$t('vat')}}</th>
<th class="number">{{$t('amount')}}</th>
<th class="number" v-if="showPrices">{{$t('price')}}</th>
<th class="centered" width="5%" v-if="showPrices">{{$t('discount')}}</th>
<th class="centered" v-if="showPrices">{{$t('vat')}}</th>
<th class="number" v-if="showPrices">{{$t('amount')}}</th>
</tr>
</thead>
<tbody v-for="sale in sales" class="no-page-break">
@ -88,10 +88,10 @@
<td width="5%">{{sale.itemFk | zerofill('000000')}}</td>
<td class="number">{{sale.quantity}}</td>
<td width="50%">{{sale.concept}}</td>
<td class="number">{{sale.price | currency('EUR', $i18n.locale)}}</td>
<td class="centered" width="5%">{{(sale.discount / 100) | percentage}}</td>
<td class="centered">{{sale.vatType}}</td>
<td class="number">{{sale.price * sale.quantity * (1 - sale.discount / 100) | currency('EUR', $i18n.locale)}}</td>
<td class="number" v-if="showPrices">{{sale.price | currency('EUR', $i18n.locale)}}</td>
<td class="centered" width="5%" v-if="showPrices">{{(sale.discount / 100) | percentage}}</td>
<td class="centered" v-if="showPrices">{{sale.vatType}}</td>
<td class="number" v-if="showPrices">{{sale.price * sale.quantity * (1 - sale.discount / 100) | currency('EUR', $i18n.locale)}}</td>
</tr>
<tr class="description font light-gray">
<td colspan="7">
@ -107,7 +107,7 @@
</td>
</tr>
</tbody>
<tfoot>
<tfoot v-if="showPrices">
<tr>
<td colspan="6" class="font bold">
<span class="pull-right">{{$t('subtotal')}}</span>
@ -181,7 +181,7 @@
</div>
<!-- End of packages block -->
</div>
<div class="columns vn-mt-xl">
<div class="columns vn-mt-xl" v-if="showPrices">
<!-- Taxes block -->
<div id="taxes" class="size50 pull-right no-page-break" v-if="taxes">
<table class="column-oriented">

View File

@ -45,6 +45,9 @@ module.exports = {
return total;
},
showPrices() {
return this.type != 'withoutPrices';
},
footerType() {
const translatedType = this.$t(this.type);
return `${translatedType} ${this.ticketId}`;

View File

@ -1,6 +1,7 @@
reportName: delivery-note
deliveryNote: Delivery note
proforma: Proforma
withoutPrices: Delivery note
clientId: Client
deliveryAddress: Delivery address
fiscalData: Fiscal data

View File

@ -1,6 +1,7 @@
reportName: albaran
deliveryNote: Albarán
proforma: Proforma
withoutPrices: Albarán
clientId: Cliente
deliveryAddress: Dirección de entrega
fiscalData: Datos fiscales

View File

@ -1,6 +1,7 @@
reportName: bon-de-livraison
deliveryNote: Bon de livraison
proforma: Proforma
withoutPrices: Bon de livraison
clientId: Client
deliveryAddress: Adresse de livraison
fiscalData: Coordonnées

View File

@ -1,6 +1,7 @@
reportName: nota-de-entrega
deliveryNote: Nota de Entrega
proforma: Proforma
withoutPrices: Nota de Entrega
clientId: Cliente
deliveryAddress: Morada de Entrega
fiscalData: Dados Fiscais