salix/print/templates/reports/entry-order/sql/buys.sql

16 lines
254 B
MySQL
Raw Normal View History

2020-09-25 12:45:00 +00:00
SELECT
b.itemFk,
b.quantity,
b.buyingValue,
b.stickers box,
b.packing,
i.name itemName,
i.tag5,
i.value5,
i.tag6,
i.value6,
i.tag7,
i.value7
FROM buy b
JOIN item i ON i.id = b.itemFk
WHERE b.entryFk = ?