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

7 lines
124 B
SQL

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