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

12 lines
211 B
MySQL
Raw Normal View History

2020-09-25 12:45:00 +00:00
SELECT
s.name,
s.street,
s.nif,
s.postCode,
s.city,
p.name province
FROM supplier s
JOIN entry e ON e.supplierFk = s.id
LEFT JOIN province p ON p.id = s.provinceFk
2023-08-18 09:52:04 +00:00
WHERE e.id = ?