diff --git a/services/db/install/changes/1.0.5/ticketListCreate.sql b/services/db/install/changes/1.0.5/ticketListCreate.sql new file mode 100644 index 000000000..bb72a1cfb --- /dev/null +++ b/services/db/install/changes/1.0.5/ticketListCreate.sql @@ -0,0 +1,23 @@ +USE `vn`; +DROP procedure IF EXISTS `ticketListCreate`; + +DELIMITER $$ +USE `vn`$$ +CREATE DEFINER=`root`@`%` PROCEDURE `ticketListCreate`( + vClientId INT + ,vShipped DATE + ,vWarehouseId INT + ,vCompanyFk INT + ,vAddressFk INT + ,vAgencyType INT + ,vRouteFk INT + ,vlanded DATE) +BEGIN + + DECLARE vNewTicket INT; + CALL vn.ticketCreate(vClientId, vShipped, vWarehouseId, vCompanyFk, vAddressFk, vAgencyType, vRouteFk, vlanded,vNewTicket); + SELECT vNewTicket; + +END$$ + +DELIMITER ; \ No newline at end of file