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

9 lines
166 B
SQL

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