2021-02-24 06:51:05 +00:00
|
|
|
SELECT
|
|
|
|
io.amount,
|
|
|
|
io.ref,
|
|
|
|
io.issued,
|
|
|
|
ict.description
|
|
|
|
FROM vn.invoiceCorrection ic
|
|
|
|
JOIN vn.invoiceOut io ON io.id = ic.correctedFk
|
|
|
|
JOIN vn.invoiceCorrectionType ict ON ict.id = ic.invoiceCorrectionTypeFk
|
2022-07-21 08:05:37 +00:00
|
|
|
LEFT JOIN ticket t ON t.refFk = io.ref
|
|
|
|
WHERE t.refFk = ?
|