2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-05-03 13:03:05 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `bs`.`sales_addLauncher`()
|
2024-01-15 11:31:03 +00:00
|
|
|
BEGIN
|
|
|
|
/**
|
|
|
|
* Añade las ventas a la tabla bs.sale que se realizaron desde hace un mes hasta hoy
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
DECLARE vCurDate DATE DEFAULT util.VN_CURDATE();
|
2024-04-21 14:01:32 +00:00
|
|
|
|
|
|
|
CALL sale_add(vCurDate - INTERVAL 1 MONTH, vCurDate);
|
2024-01-15 11:31:03 +00:00
|
|
|
END$$
|
|
|
|
DELIMITER ;
|