2024-03-06 08:00:21 +00:00
|
|
|
DELIMITER $$
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`multipleInventoryHistory`(
|
|
|
|
vItemFk INT)
|
|
|
|
BEGIN
|
|
|
|
DECLARE vDateInventory DATETIME;
|
|
|
|
SELECT inventoried INTO vDateInventory FROM config;
|
|
|
|
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|
|
|
|
|
|
|
|
DELIMITER $$
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`absoluteInventoryHistory`(
|
|
|
|
vItemFk INT, vWarehouse INT, vDate DATETIME)
|
|
|
|
BEGIN
|
|
|
|
DECLARE vCalculatedInventory INT;
|
|
|
|
SET vCalculatedInventory = 0;
|
|
|
|
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|
|
|
|
|
2024-03-05 13:33:16 +00:00
|
|
|
GRANT EXECUTE ON PROCEDURE vn.absoluteInventoryHistory TO buyer;
|
|
|
|
GRANT EXECUTE ON PROCEDURE vn.multipleInventoryHistory TO buyer;
|