refs #5092 showing clients with multiple negative bases
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alexandre Riera 2023-03-20 10:15:18 +01:00
parent a94e47e622
commit 61a0d8bcb2
1 changed files with 2 additions and 2 deletions

View File

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