refs #6952 subName
gitea/salix/pipeline/pr-dev Build queued... Details

This commit is contained in:
Carlos Satorres 2024-06-25 12:00:49 +02:00
parent 0284f3b1ce
commit 2797a731c5
6 changed files with 25 additions and 19 deletions

View File

@ -81,6 +81,7 @@
<span v-if="sale.value5"> <strong>{{sale.tag5}}</strong> {{sale.value5}} </span> <span v-if="sale.value5"> <strong>{{sale.tag5}}</strong> {{sale.value5}} </span>
<span v-if="sale.value6"> <strong>{{sale.tag6}}</strong> {{sale.value6}} </span> <span v-if="sale.value6"> <strong>{{sale.tag6}}</strong> {{sale.value6}} </span>
<span v-if="sale.value7"> <strong>{{sale.tag7}}</strong> {{sale.value7}} </span> <span v-if="sale.value7"> <strong>{{sale.tag7}}</strong> {{sale.value7}} </span>
<span v-if="sale.origin"> <strong>{{$t('producer')}}</strong> {{ sale.subName }}</span>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -249,4 +250,4 @@
v-bind:center-text="client.socialName" v-bind="$props"> v-bind:center-text="client.socialName" v-bind="$props">
</report-footer> </report-footer>
</template> </template>
</report-body> </report-body>

View File

@ -20,6 +20,7 @@ vatType: VAT Type
digitalSignature: Digital signature digitalSignature: Digital signature
plantPassport: Plant passport plantPassport: Plant passport
packages: Packages packages: Packages
producer: Producer
services: services:
title: Services title: Services
theader: theader:
@ -44,7 +45,7 @@ taxes:
taxBase: Tax base taxBase: Tax base
tax: Tax tax: Tax
fee: Fee fee: Fee
tfoot: tfoot:
subtotal: Subtotal subtotal: Subtotal
total: Total total: Total
observations: Observations observations: Observations

View File

@ -15,6 +15,7 @@ discount: Dto.
vat: IVA vat: IVA
amount: Importe amount: Importe
total: Total total: Total
producer: Productor
subtotal: Subtotal subtotal: Subtotal
vatType: Tipo de IVA vatType: Tipo de IVA
digitalSignature: Firma digital digitalSignature: Firma digital
@ -45,7 +46,7 @@ taxes:
taxBase: Base imp. taxBase: Base imp.
tax: Tasa tax: Tasa
fee: Cuota fee: Cuota
tfoot: tfoot:
subtotal: Subtotal subtotal: Subtotal
total: Total total: Total
observations: Observaciones observations: Observaciones

View File

@ -14,7 +14,8 @@ price: PRIX/u
discount: Remise discount: Remise
vat: TVA vat: TVA
amount: Montant amount: Montant
total: Total producer: producteur
total: Total
subtotal: Total partiel subtotal: Total partiel
vatType: Type de TVA vatType: Type de TVA
digitalSignature: Signature numérique digitalSignature: Signature numérique
@ -45,7 +46,7 @@ taxes:
taxBase: Base imposable taxBase: Base imposable
tax: Taxe tax: Taxe
fee: Quote fee: Quote
tfoot: tfoot:
subtotal: Total partiel subtotal: Total partiel
total: Total total: Total
observations: Observations observations: Observations

View File

@ -14,6 +14,7 @@ price: PVP/u
discount: Dto. discount: Dto.
vat: IVA vat: IVA
amount: Importe amount: Importe
producer: Produtor
total: Total total: Total
subtotal: Sub-total subtotal: Sub-total
vatType: Tipo de IVA vatType: Tipo de IVA
@ -45,7 +46,7 @@ taxes:
taxBase: Tributável taxBase: Tributável
tax: Taxa tax: Taxa
fee: Compartilhado fee: Compartilhado
tfoot: tfoot:
subtotal: Subtotal subtotal: Subtotal
total: Total total: Total
observations: Observações observations: Observações

View File

@ -1,4 +1,4 @@
SELECT SELECT
s.id, s.id,
s.itemFk, s.itemFk,
s.concept, s.concept,
@ -15,12 +15,13 @@ SELECT
s.ticketFk, s.ticketFk,
tcl.code vatType, tcl.code vatType,
ib.ediBotanic botanical, ib.ediBotanic botanical,
i.tag5, i.tag5,
i.value5, i.value5,
i.tag6, i.tag6,
i.value6, i.value6,
i.tag7, i.tag7,
i.value7 i.value7,
i.subName
FROM vn.sale s FROM vn.sale s
LEFT JOIN saleComponent sc ON sc.saleFk = s.id LEFT JOIN saleComponent sc ON sc.saleFk = s.id
LEFT JOIN component cr ON cr.id = sc.componentFk LEFT JOIN component cr ON cr.id = sc.componentFk
@ -32,12 +33,12 @@ FROM vn.sale s
LEFT JOIN supplier sp ON sp.id = t.companyFk LEFT JOIN supplier sp ON sp.id = t.companyFk
LEFT JOIN itemType it ON it.id = i.typeFk LEFT JOIN itemType it ON it.id = i.typeFk
LEFT JOIN itemCategory ic ON ic.id = it.categoryFk LEFT JOIN itemCategory ic ON ic.id = it.categoryFk
LEFT JOIN itemTaxCountry itc ON itc.itemFk = i.id LEFT JOIN itemTaxCountry itc ON itc.itemFk = i.id
AND itc.countryFk = sp.countryFk AND itc.countryFk = sp.countryFk
LEFT JOIN taxClass tcl ON tcl.id = itc.taxClassFk LEFT JOIN taxClass tcl ON tcl.id = itc.taxClassFk
LEFT JOIN itemBotanicalWithGenus ib ON ib.itemFk = i.id LEFT JOIN itemBotanicalWithGenus ib ON ib.itemFk = i.id
AND ic.code = 'plant' AND ic.code = 'plant'
AND ib.ediBotanic IS NOT NULL AND ib.ediBotanic IS NOT NULL
WHERE s.ticketFk = ? WHERE s.ticketFk = ?
GROUP BY s.id GROUP BY s.id
ORDER BY (it.isPackaging), s.concept, s.itemFk ORDER BY (it.isPackaging), s.concept, s.itemFk