22 lines
490 B
MySQL
22 lines
490 B
MySQL
|
USE `vn`;
|
||
|
DROP procedure IF EXISTS `ticketCreate`;
|
||
|
|
||
|
DELIMITER $$
|
||
|
USE `vn`$$
|
||
|
CREATE DEFINER=`root`@`%` PROCEDURE `ticketCreate`(
|
||
|
vClientId INT
|
||
|
,vShipped DATE
|
||
|
,vWarehouseId INT
|
||
|
,vCompanyFk INT
|
||
|
,vAddressFk INT
|
||
|
,vAgencyType INT
|
||
|
,vRouteFk INT
|
||
|
,vlanded DATE
|
||
|
,OUT vNewTicket INT)
|
||
|
BEGIN
|
||
|
CALL `ticketCreateWithUser`(vClientId, vShipped, vWarehouseId, vCompanyFk, vAddressFk, vAgencyType, vRouteFk, vlanded, account.userGetId(), vNewTicket);
|
||
|
END$$
|
||
|
|
||
|
DELIMITER ;
|
||
|
|