fix: refs #7505 visible_refresh support warehouse null
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-07-23 13:08:49 +02:00
parent d8df9bc959
commit 88724d6d8c
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ proc:BEGIN
ENGINE = MEMORY
SELECT item_id, amount stock, amount visible
FROM cache.stock
WHERE warehouse_id = v_warehouse;
WHERE (warehouse_id IS NULL OR warehouse_id = v_warehouse);
-- Calculamos los movimientos confirmados de hoy
CALL vn.item_calcVisible(NULL, v_warehouse);