salix/services/db/install/changes/1.2-CHECK/12-orderConfirm.sql

18 lines
369 B
MySQL
Raw Normal View History

2019-01-21 08:25:02 +00:00
USE `hedera`;
DROP procedure IF EXISTS `orderConfirm`;
DELIMITER $$
USE `hedera`$$
CREATE DEFINER=`root`@`%` PROCEDURE `orderConfirm`(vOrder INT)
BEGIN
/**
* Confirms an order, creating each of its tickets on
* the corresponding date and store.
*
* @param vOrder The order identifier
*/
CALL orderConfirmWithUser(vOrder, account.userGetId());
END$$
DELIMITER ;