salix/print/templates/reports/exportation/sql/invoice.sql

7 lines
126 B
SQL

SELECT
io.id,
io.ref,
io.issued
FROM invoiceOut io
LEFT JOIN ticket t ON t.refFk = io.ref
WHERE t.refFk = ?