salix/db/routines/vn/procedures/itemSaveMin.sql

14 lines
282 B
MySQL
Raw Normal View History

DELIMITER $$
2024-08-20 08:06:10 +00:00
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`itemSaveMin`(min INT,vBarcode VARCHAR(22))
BEGIN
DECLARE vItemFk INT;
SELECT vn.barcodeToItem(vBarcode) INTO vItemFk;
UPDATE vn.item SET minimum = min WHERE id = vItemFk;
END$$
DELIMITER ;