fix: refs #194195 item_getAtp
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Robert Ferrús 2024-06-14 13:54:43 +02:00
parent 798bf6d028
commit 8dea9598e8
1 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@ BEGIN
FROM (
SELECT
itemFk,
IF(itemFk <> @lastItemFk OR wareHouseFk <> @lastWareHouseFk,
IF(itemFk <> @lastItemFk OR wareHouseFk <> @lastWareHouseFk OR wareHouseFk IS NULL,
@lastQuantity := quantity,
@lastQuantity := @lastQuantity + quantity) quantityAccumulated,
wareHouseFk,