fix: refs #194195 item_getAtp #2589
|
@ -33,7 +33,7 @@ BEGIN
|
||||||
FROM (
|
FROM (
|
||||||
SELECT
|
SELECT
|
||||||
itemFk,
|
itemFk,
|
||||||
IF(itemFk <> @lastItemFk OR wareHouseFk <> @lastWareHouseFk,
|
IF(itemFk <> @lastItemFk OR wareHouseFk <> @lastWareHouseFk OR wareHouseFk IS NULL,
|
||||||
@lastQuantity := quantity,
|
@lastQuantity := quantity,
|
||||||
@lastQuantity := @lastQuantity + quantity) quantityAccumulated,
|
@lastQuantity := @lastQuantity + quantity) quantityAccumulated,
|
||||||
wareHouseFk,
|
wareHouseFk,
|
||||||
|
|
Loading…
Reference in New Issue