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

6 lines
126 B
SQL

SELECT *
FROM invoiceIn i
JOIN supplier s ON s.id = i.supplierFk
JOIN company c ON c.id = i.companyFk
WHERE i.id = ?