2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-06-27 11:01:42 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`buyUltimateFromInterval`(
|
|
|
|
vWarehouseFk SMALLINT,
|
|
|
|
vStarted DATE,
|
|
|
|
vEnded DATE
|
|
|
|
)
|
2024-01-15 11:31:03 +00:00
|
|
|
BEGIN
|
|
|
|
/**
|
2024-07-16 16:44:24 +00:00
|
|
|
* DEPRECATED usar buy_getUltimateFromInterval
|
2024-01-15 11:31:03 +00:00
|
|
|
* Calcula las últimas compras realizadas
|
|
|
|
* desde un rango de fechas.
|
|
|
|
*
|
|
|
|
* @param vWarehouseFk Id del almacén si es NULL se actualizan todos
|
|
|
|
* @param vStarted Fecha inicial
|
|
|
|
* @param vEnded Fecha fin
|
|
|
|
* @return tmp.buyUltimateFromInterval
|
|
|
|
*/
|
2024-07-16 17:01:02 +00:00
|
|
|
CALL vn.buy_getUltimateFromInterval(NULL, vWarehouseFk, vStarted, vEnded);
|
2024-01-15 11:31:03 +00:00
|
|
|
END$$
|
|
|
|
DELIMITER ;
|