This commit is contained in:
parent
798bf6d028
commit
8dea9598e8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue