salix/print/templates/reports/delivery-note/sql/packagings.sql

9 lines
194 B
MySQL
Raw Normal View History

2020-09-25 12:45:00 +00:00
SELECT
tp.quantity,
i.name,
p.itemFk
FROM ticketPackaging tp
JOIN packaging p ON p.id = tp.packagingFk
JOIN item i ON i.id = p.itemFk
WHERE tp.ticketFk = ?
ORDER BY itemFk