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

10 lines
263 B
MySQL
Raw Normal View History

2023-12-19 09:07:17 +00:00
SELECT c.dueDay,
sa.iban,
be.name bankName
FROM client c
JOIN supplierAccount sa ON sa.id = cny.supplierAccountFk
JOIN bankEntity be ON be.id = sa.bankEntityFk
JOIN company cny
WHERE c.id = ?
AND cny.id = ?