2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-08-20 08:06:10 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`buyUltimate`(
|
2024-06-27 11:01:42 +00:00
|
|
|
vWarehouseFk SMALLINT,
|
|
|
|
vDated DATE
|
|
|
|
)
|
2024-01-15 11:31:03 +00:00
|
|
|
BEGIN
|
|
|
|
/**
|
2024-07-22 11:39:48 +00:00
|
|
|
* @deprecated Usar buy_getUltimate
|
|
|
|
* Calcula las últimas compras realizadas hasta una fecha.
|
2024-01-15 11:31:03 +00:00
|
|
|
*
|
2024-07-16 16:44:24 +00:00
|
|
|
* @param vItemFk Id del artículo
|
2024-01-15 11:31:03 +00:00
|
|
|
* @param vWarehouseFk Id del almacén
|
|
|
|
* @param vDated Compras hasta fecha
|
|
|
|
* @return tmp.buyUltimate
|
|
|
|
*/
|
2024-07-16 16:44:24 +00:00
|
|
|
CALL buy_getUltimate(NULL, vWarehouseFk, vDated);
|
2024-01-15 11:31:03 +00:00
|
|
|
END$$
|
|
|
|
DELIMITER ;
|