13 lines
302 B
SQL
13 lines
302 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`inventoryMakeLauncher`()
|
|
BEGIN
|
|
/**
|
|
* Recalculate the inventories of all warehouses
|
|
*/
|
|
CALL inventoryMake(
|
|
util.VN_CURDATE() -
|
|
INTERVAL (SELECT daysInPastForInventory FROM inventoryConfig LIMIT 1) DAY
|
|
);
|
|
END$$
|
|
DELIMITER ;
|