salix/print/templates/reports/deb-balances-comp/sql/client.sql

12 lines
228 B
MySQL
Raw Normal View History

2022-10-28 12:49:22 +00:00
SELECT
c.name,
c.socialName,
c.street,
c.fi,
c.city,
r.amountPaid,
r.payed
FROM client c
JOIN receipt r ON r.clientFk = c.id
JOIN supplier s ON c.fi = s.nif
WHERE r.id = ?;