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
|
2022-11-02 14:54:23 +00:00
|
|
|
JOIN receipt r ON r.clientFk = c.id
|
|
|
|
JOIN supplier s ON c.fi = s.nif
|
2022-10-28 12:49:22 +00:00
|
|
|
WHERE r.id = ?;
|