fix: refs #194195 item_getAtp #2589

Merged
robert merged 1 commits from 194195-hotFixRadarNegativos into master 2024-06-14 12:03:46 +00:00
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,