salix/print/templates/email/letter-debtor-nd/sql/client.sql

10 lines
253 B
MySQL
Raw Normal View History

2020-09-25 12:45:00 +00:00
SELECT
c.dueDay,
c.iban,
sa.iban,
be.name AS bankName
FROM client c
JOIN company AS cny
JOIN supplierAccount AS sa ON sa.id = cny.supplierAccountFk
JOIN bankEntity be ON be.id = sa.bankEntityFk
2021-01-13 10:05:30 +00:00
WHERE c.id = ? AND cny.id = ?