refactor: refs #7505 item_getVisible refactor #2573

Merged
guillermo merged 13 commits from 7505-item_calcVisible into dev 2024-07-10 05:03:19 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 86acc644fe - Show all commits

View File

@ -92,7 +92,7 @@ proc: BEGIN
FROM cache.stock FROM cache.stock
WHERE warehouse_id = vWarehouseFk; WHERE warehouse_id = vWarehouseFk;
CALL item_calcVisible(NULL, vWarehouseFk, util.VN_CURDATE()); CALL item_calcVisible(NULL, vWarehouseFk, vDate);
UPDATE tmp.itemInventory it UPDATE tmp.itemInventory it
JOIN tmp.itemVisible iv ON iv.item_id = it.id JOIN tmp.itemVisible iv ON iv.item_id = it.id
SET it.visible = it.visible + iv.visible; SET it.visible = it.visible + iv.visible;