salix/print/templates/reports/entry-order/sql/entry.sql

11 lines
196 B
MySQL
Raw Normal View History

2020-09-25 12:45:00 +00:00
SELECT
e.id,
2022-12-16 09:36:18 +00:00
e.invoiceNumber,
2020-09-25 12:45:00 +00:00
e.notes,
c.code companyCode,
t.landed
FROM entry e
JOIN travel t ON t.id = e.travelFk
JOIN company c ON c.id = e.companyFk
2022-12-16 09:36:18 +00:00
WHERE e.id = ?