salix/services/db/install/changes/1.2-CHECK/09-ticketCreate.sql

22 lines
490 B
MySQL
Raw Normal View History

2019-01-21 08:25:02 +00:00
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 ;