Merge pull request 'feat: refs #7325 item_getBalance' (!2397) from 7325-item_getBalance into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #2397
Reviewed-by: Sergio De la torre <sergiodt@verdnatura.es>
This commit is contained in:
Robert Ferrús 2024-05-03 06:04:47 +00:00
commit cdb0bf28c2
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ BEGIN
LEFT JOIN alertLevel a ON a.id = t.alertLevel;
ELSE
SELECT SUM(`in`) - SUM(`out`) INTO @a
SELECT IFNULL(SUM(IFNULL(`in`, 0)) - SUM(IFNULL(`out`, 0)), 0) INTO @a
FROM tItemDiary
WHERE shipped < vDate;