Merge pull request 'refs #6952 add producer sql trad' (!2698) from 6952-fixProducerNameInvoice into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #2698
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Carlos Satorres 2024-07-11 08:32:51 +00:00
commit 3305d2897c
4 changed files with 7 additions and 4 deletions

View File

@ -104,7 +104,7 @@
<tr> <tr>
<td width="5%">{{sale.itemFk}}</td> <td width="5%">{{sale.itemFk}}</td>
<td class="number">{{sale.quantity}}</td> <td class="number">{{sale.quantity}}</td>
<td width="50%">{{sale.concept}}</td> <td width="50%">{{sale.concept}} <span class="font light-gray">{{sale.subName}}</span></td>
<td class="number">{{sale.price | currency('EUR', $i18n.locale)}}</td> <td class="number">{{sale.price | currency('EUR', $i18n.locale)}}</td>
<td class="centered" width="5%">{{(sale.discount / 100) | percentage}}</td> <td class="centered" width="5%">{{(sale.discount / 100) | percentage}}</td>
<td class="centered">{{sale.vatType}}</td> <td class="centered">{{sale.vatType}}</td>

View File

@ -35,3 +35,4 @@ observations: Observaciones
wireTransfer: "Forma de pago: Transferencia" wireTransfer: "Forma de pago: Transferencia"
accountNumber: "Número de cuenta: {0}" accountNumber: "Número de cuenta: {0}"
services: Servicios services: Servicios

View File

@ -8,7 +8,8 @@ SELECT
s.itemFk, s.itemFk,
s.concept, s.concept,
tc.code vatType, tc.code vatType,
it.isPackaging it.isPackaging,
i.subName
FROM vn.invoiceOut io FROM vn.invoiceOut io
JOIN vn.ticket t ON t.refFk = io.ref JOIN vn.ticket t ON t.refFk = io.ref
JOIN vn.supplier su ON su.id = io.companyFk JOIN vn.supplier su ON su.id = io.companyFk
@ -38,6 +39,7 @@ SELECT
NULL, NULL,
ts.description, ts.description,
tc.code, tc.code,
NULL,
NULL NULL
FROM vn.invoiceOut io FROM vn.invoiceOut io
JOIN vn.ticket t ON t.refFk = io.ref JOIN vn.ticket t ON t.refFk = io.ref