Merge pull request '5349-hotfix_report_invoice' (!1364) from 5349-hotfix_report_invoice into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #1364
This commit is contained in:
commit
5984d6820b
|
@ -54,3 +54,6 @@
|
||||||
<vn-popup vn-id="summary">
|
<vn-popup vn-id="summary">
|
||||||
<vn-invoice-out-summary invoice-out="$ctrl.invoiceOut"></vn-invoice-out-summary>
|
<vn-invoice-out-summary invoice-out="$ctrl.invoiceOut"></vn-invoice-out-summary>
|
||||||
</vn-popup>
|
</vn-popup>
|
||||||
|
<vn-client-descriptor-popover
|
||||||
|
vn-id="clientDescriptor">
|
||||||
|
</vn-client-descriptor-popover>
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
SELECT
|
SELECT
|
||||||
io.amount,
|
io2.amount,
|
||||||
io.ref,
|
io2.ref,
|
||||||
io.issued,
|
io2.issued,
|
||||||
ict.description
|
ict.description
|
||||||
FROM invoiceOut io
|
FROM invoiceOut io
|
||||||
JOIN invoiceCorrection ic ON ic.correctingFk = io.id
|
JOIN invoiceCorrection ic ON ic.correctingFk = io.id
|
||||||
JOIN invoiceCorrectionType ict ON ict.id = ic.invoiceCorrectionTypeFk
|
JOIN invoiceOut io2 ON io2.id = ic.correctedFk
|
||||||
LEFT JOIN ticket t ON t.refFk = io.ref
|
LEFT JOIN ticket t ON t.refFk = io.ref
|
||||||
|
JOIN invoiceCorrectionType ict ON ict.id = ic.invoiceCorrectionTypeFk
|
||||||
WHERE io.ref = ?
|
WHERE io.ref = ?
|
Loading…
Reference in New Issue