salix/print/templates/email/invoice/sql/invoice.sql

7 lines
152 B
MySQL
Raw Normal View History

2021-07-19 10:31:09 +00:00
SELECT
io.ref,
t.id AS ticketFk
FROM invoiceOut io
JOIN ticket t ON t.refFk = io.ref
JOIN client c ON c.id = io.clientFk
WHERE io.id = ?