fix query: refs #6369 #1906

Merged
jorgep merged 2 commits from 6369-fixGetNegativeBasesInvoices into dev 2024-01-02 09:00:23 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ module.exports = Self => {
AND t.refFk IS NULL
AND c.typeFk IN ('normal','trust')
GROUP BY t.clientFk, negativeBase.taxableBase
HAVING amount <> 0`, [args.from, args.to]));
HAVING amount < 0`, [args.from, args.to]));
stmt = new ParameterizedSQL(`
SELECT f.*