7299_testToMaster #2411

Merged
alexm merged 342 commits from 7299_testToMaster into master 2024-05-07 05:30:42 +00:00
1 changed files with 9 additions and 11 deletions
Showing only changes of commit 902be9e788 - Show all commits

View File

@ -1,11 +1,9 @@
SELECT
io2.amount,
SELECT io2.amount,
io2.ref,
io2.issued,
ict.description
FROM invoiceOut io
FROM invoiceOut io
JOIN invoiceCorrection ic ON ic.correctingFk = io.id
JOIN invoiceOut io2 ON io2.id = ic.correctedFk
LEFT JOIN ticket t ON t.refFk = io.ref
JOIN invoiceCorrectionType ict ON ict.id = ic.invoiceCorrectionTypeFk
WHERE io.ref = ?
WHERE io.ref = ?