refactor: refs #7640 multipleInventoryFix #2689

Merged
guillermo merged 4 commits from 7640-multipleInventoryFix into master 2024-07-08 05:52:52 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 3ddf49da0a - Show all commits

View File

@ -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;