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

10 lines
183 B
SQL

SELECT
e.id,
e.invoiceNumber,
c.code companyCode,
t.landed
FROM entry e
JOIN travel t ON t.id = e.travelFk
JOIN company c ON c.id = e.companyFk
WHERE e.id = ?