salix/print/templates/reports/supplier-campaign-metrics/sql/entries.sql

11 lines
248 B
MySQL
Raw Normal View History

2020-12-18 09:08:51 +00:00
SELECT
e.id,
2022-12-16 09:36:18 +00:00
e.reference,
2020-12-18 09:08:51 +00:00
e.supplierFk,
t.shipped
FROM vn.entry e
JOIN vn.travel t ON t.id = e.travelFk
WHERE e.supplierFk = ? AND DATE(t.shipped) BETWEEN ? AND ?
2024-04-11 12:13:25 +00:00
ORDER BY
t.shipped DESC;