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

7 lines
154 B
MySQL
Raw Permalink 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
2022-07-21 08:05:37 +00:00
WHERE t.refFk = ?