21 lines
516 B
MySQL
21 lines
516 B
MySQL
|
USE `vn`;
|
||
|
DROP procedure IF EXISTS `zoneGetShippedWarehouse`;
|
||
|
|
||
|
DELIMITER $$
|
||
|
USE `vn`$$
|
||
|
CREATE DEFINER=`root`@`%` PROCEDURE `zoneGetShippedWarehouse`(vLanded DATE, vAddressFk INT, vAgencyModeFk INT)
|
||
|
BEGIN
|
||
|
/**
|
||
|
* Devuelve la mínima fecha de envío para cada warehouse
|
||
|
*
|
||
|
* @param vLanded La fecha de recepcion
|
||
|
* @param vAddressFk Id del consignatario
|
||
|
* @param vAgencyModeFk Id de la agencia
|
||
|
* @return tmp.zoneGetShipped
|
||
|
*/
|
||
|
CALL zone_getShippedWarehouse(vLanded, vAddressFk, vAgencyModeFk);
|
||
|
END$$
|
||
|
|
||
|
DELIMITER ;
|
||
|
|