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 ;
