2022-10-18 12:58:38 +00:00
|
|
|
SELECT
|
|
|
|
i.id,
|
|
|
|
s.id supplierId,
|
|
|
|
i.created,
|
|
|
|
s.name,
|
|
|
|
s.street AS postalAddress,
|
|
|
|
s.nif,
|
2022-10-19 13:15:54 +00:00
|
|
|
s.phone,
|
2022-10-24 13:15:23 +00:00
|
|
|
p.name payMethod,
|
|
|
|
c.companyCode
|
2022-10-17 13:13:27 +00:00
|
|
|
FROM invoiceIn i
|
|
|
|
JOIN supplier s ON s.id = i.supplierFk
|
|
|
|
JOIN company c ON c.id = i.companyFk
|
2022-10-19 13:15:54 +00:00
|
|
|
JOIN payMethod p ON p.id = s.payMethodFk
|
2022-10-17 13:13:27 +00:00
|
|
|
WHERE i.id = ?
|