salix/print/templates/reports/invoiceIn/sql/invoice.sql

13 lines
264 B
MySQL
Raw Normal View History

2022-10-18 12:58:38 +00:00
SELECT
i.id,
s.id supplierId,
i.created,
s.name,
s.street AS postalAddress,
s.nif,
s.phone
2022-10-17 13:13:27 +00:00
FROM invoiceIn i
JOIN supplier s ON s.id = i.supplierFk
JOIN company c ON c.id = i.companyFk
WHERE i.id = ?