2022-11-16 08:46:35 +00:00
|
|
|
DROP PROCEDURE IF EXISTS `vn`.`ticket_canMerge`;
|
2022-11-07 14:55:17 +00:00
|
|
|
|
|
|
|
DELIMITER $$
|
|
|
|
$$
|
|
|
|
CREATE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticket_canMerge`(vDated DATE, vScopeDays INT, vLitersMax INT, vLinesMax INT, vWarehouseFk INT)
|
|
|
|
BEGIN
|
2022-11-10 14:54:00 +00:00
|
|
|
CALL vn.ticket_canbePostponed(vDated,TIMESTAMPADD(DAY, vScopeDays, vDated),vLitersMax,vLinesMax,vWarehouseFk);
|
2022-11-07 14:55:17 +00:00
|
|
|
END $$
|
|
|
|
DELIMITER ;
|
2022-11-21 10:41:17 +00:00
|
|
|
|
|
|
|
INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
|
|
|
|
VALUES
|
|
|
|
('Ticket', 'getTicketsFuture', 'READ', 'ALLOW', 'ROLE', 'employee'),
|
|
|
|
('Ticket', 'merge', 'WRITE', 'ALLOW', 'ROLE', 'employee');
|