8355-testToMaster #3336
|
@ -189,7 +189,8 @@ module.exports = Self => {
|
||||||
s.account,
|
s.account,
|
||||||
SUM(iid.amount) amount,
|
SUM(iid.amount) amount,
|
||||||
sub.code awbCode,
|
sub.code awbCode,
|
||||||
c.code
|
c.code,
|
||||||
|
MIN(iid.dueDated) dueDated
|
||||||
FROM invoiceIn ii
|
FROM invoiceIn ii
|
||||||
JOIN supplier s ON s.id = ii.supplierFk
|
JOIN supplier s ON s.id = ii.supplierFk
|
||||||
LEFT JOIN invoiceInDueDay iid ON iid.invoiceInFk = ii.id
|
LEFT JOIN invoiceInDueDay iid ON iid.invoiceInFk = ii.id
|
||||||
|
|
Loading…
Reference in New Issue