feat: refs #7640 Fix
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-07-05 13:21:07 +02:00
parent 8ac26c7281
commit 3ddf49da0a
1 changed files with 2 additions and 2 deletions

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;