This commit is contained in:
parent
8ac26c7281
commit
3ddf49da0a
|
@ -119,9 +119,9 @@ proc: BEGIN
|
|||
|
||||
UPDATE tmp.itemInventory ai
|
||||
JOIN tItemInventoryCalc iic ON iic.itemFk = ai.id
|
||||
JOIN tItemVisibleCalc ivc ON ivc.itemFk = ai.id
|
||||
LEFT JOIN tItemVisibleCalc ivc ON ivc.itemFk = iic.itemFk
|
||||
SET ai.inventory = iic.quantity,
|
||||
ai.visible = iic.quantity + ivc.visible,
|
||||
ai.visible = iic.visible + IFNULL(ivc.visible, 0),
|
||||
ai.avalaible = iic.quantity,
|
||||
ai.sd = iic.quantity;
|
||||
|
||||
|
|
Loading…
Reference in New Issue