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

9 lines
210 B
SQL

SELECT
tc.code taxDescription,
ts.description,
ts.quantity,
ts.price,
ts.quantity * ts.price total
FROM ticketService ts
JOIN taxClass tc ON tc.id = ts.taxClassFk
WHERE ts.ticketFk = ?