salix/print/templates/reports/delivery-note/sql/ticket.sql

8 lines
140 B
SQL

SELECT
t.id,
t.shipped,
c.code companyCode,
t.packages
FROM ticket t
JOIN company c ON c.id = t.companyFk
WHERE t.id = ?