feat: refs #7936 add minimum due date
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2024-12-11 17:42:03 +01:00
parent c0b1fe3994
commit addb093b6b
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ module.exports = Self => {
s.account,
SUM(iid.amount) amount,
sub.code awbCode,
c.code
c.code,
MIN(iid.dueDated) dueDated
FROM invoiceIn ii
JOIN supplier s ON s.id = ii.supplierFk
LEFT JOIN invoiceInDueDay iid ON iid.invoiceInFk = ii.id