23 lines
597 B
SQL
23 lines
597 B
SQL
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 ;
|
|
|
|
GRANT EXECUTE ON PROCEDURE vn.absoluteInventoryHistory TO buyer;
|
|
GRANT EXECUTE ON PROCEDURE vn.multipleInventoryHistory TO buyer;
|