salix/print/templates/reports/claim-pickup-order/sql/sales.sql

8 lines
157 B
SQL

SELECT
s.id,
s.quantity,
s.concept,
cb.quantity claimQuantity
FROM claimBeginning cb
JOIN sale s ON s.id = cb.saleFk
WHERE cb.claimFk = ?