report entry-order
gitea/salix/2038-entry_descriptor_vista_impresion This commit looks good Details

This commit is contained in:
Bernat Exposito Domenech 2020-02-24 08:44:43 +01:00
parent aecfe2b8a9
commit c48da59314
3 changed files with 15 additions and 4 deletions

View File

@ -48,6 +48,12 @@
<div>
{{supplier.street}}
</div>
<div>
{{supplier.postCode}}, {{supplier.city}}, ({{supplier.province}})
</div>
<div>
{{supplier.nif}}
</div>
</div>
</div>
</div>

View File

@ -21,9 +21,14 @@ module.exports = {
return db.findOne(
`SELECT
s.name,
s.street
s.street,
s.nif,
s.postCode,
s.city,
p.name province
FROM supplier s
JOIN entry e ON e.supplierFk = s.id
LEFT JOIN province p ON p.id = s.provinceFk
WHERE e.id = ?`, [entryId]);
},
fetchEntry(entryId) {

View File

@ -1,11 +1,11 @@
title: Pedido
supplierName: Proveedor
supplierStreet: Dirección
entryId: Pedido nº
entryId: Referencia interna
date: Fecha
ref: Referencia
ref: Nº Factura
boxes: Cajas
packing: U/C
packing: U/C
quantity: Cantidad
price: Precio
amount: Importe