feat: refs #7325 item_getBalance #2397

Merged
robert merged 1 commits from 7325-item_getBalance into dev 2024-05-03 06:04:48 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit b6e4130184 - Show all commits

View File

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