refactor: refs #7505 Changed name
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Guillermo Bonet 2024-06-11 14:00:59 +02:00
parent 3bd596e5fd
commit aa0e06cfec
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ proc: BEGIN
WHERE warehouse_id = v_warehouse;
-- Calculamos los movimientos confirmados de hoy
CALL vn.item_getVisible(v_warehouse, util.VN_CURDATE(), NULL);
CALL vn.item_calcVisible(v_warehouse, util.VN_CURDATE(), NULL);
DELETE FROM visible WHERE calc_id = v_calc;
INSERT INTO visible (calc_id, item_id,visible)

View File

@ -1,5 +1,5 @@
DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`item_getVisible`(
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`item_calcVisible`(
vWarehouseFk INT,
vDated INT,
vItemFk INT

View File

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