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

9 lines
160 B
SQL

SELECT
e.id,
t.landed,
e.ref
FROM entry e
JOIN invoiceIn i ON i.id = e.invoiceInFk
JOIN travel t ON t.id = e.travelFk
WHERE i.id = ?