add new procedure in the BD

This commit is contained in:
Bernat 2018-05-18 11:58:04 +02:00
parent 74751e3ecd
commit ec38ed64e5
1 changed files with 23 additions and 0 deletions

View File

@ -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 ;