diff --git a/e2e/paths/claim-module/01_edit_basic_data.spec.js b/e2e/paths/claim-module/01_edit_basic_data.spec.js index b39873169..189dff00f 100644 --- a/e2e/paths/claim-module/01_edit_basic_data.spec.js +++ b/e2e/paths/claim-module/01_edit_basic_data.spec.js @@ -67,7 +67,7 @@ describe('Claim edit basic data path', () => { it('should confirm the Is paid with mana checkbox is checked', async () => { const value = await nightmare - .evaluate((selector) => { + .evaluate(selector => { return document.querySelector(selector).checked; }, selectors.claimBasicData.isPaidWithManaCheckbox); diff --git a/services/db/install/changes/1.2-CHECK/10-ACL.sql b/services/db/install/changes/1.2-CHECK/10-ACL.sql index 2750d43a5..e9e0adde6 100644 --- a/services/db/install/changes/1.2-CHECK/10-ACL.sql +++ b/services/db/install/changes/1.2-CHECK/10-ACL.sql @@ -1,2 +1,5 @@ INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (118, 'WorkerTeam', '*', '*', 'ALLOW', 'role', 'salesPerson'); -INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (119, 'TicketRequest', '*', '*', 'ALLOW', 'role', 'salesPerson'); +INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (119, 'Travel', '*', 'READ', 'ALLOW', 'role', 'employee'); +INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (120, 'Travel', '*', 'WRITE', 'ALLOW', 'role', 'buyer'); +INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (121, 'Item', 'regularize', '*', 'ALLOW', 'role', 'employee'); +INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (122, 'TicketRequest', '*', '*', 'ALLOW', 'role', 'employee'); diff --git a/services/db/install/changes/1.2-CHECK/12.ticketRequest.sql b/services/db/install/changes/1.2-CHECK/12-ticketRequest.sql similarity index 100% rename from services/db/install/changes/1.2-CHECK/12.ticketRequest.sql rename to services/db/install/changes/1.2-CHECK/12-ticketRequest.sql diff --git a/services/db/install/changes/1.2-CHECK/13.ticketComponentPriceDifference.sql b/services/db/install/changes/1.2-CHECK/13-ticketComponentPriceDifference.sql similarity index 100% rename from services/db/install/changes/1.2-CHECK/13.ticketComponentPriceDifference.sql rename to services/db/install/changes/1.2-CHECK/13-ticketComponentPriceDifference.sql diff --git a/services/db/install/changes/1.2-CHECK/14-orderTicket.sql b/services/db/install/changes/1.2-CHECK/14-orderTicket.sql new file mode 100644 index 000000000..8173a6c02 --- /dev/null +++ b/services/db/install/changes/1.2-CHECK/14-orderTicket.sql @@ -0,0 +1,10 @@ +USE `hedera`; +CREATE + OR REPLACE ALGORITHM = UNDEFINED + DEFINER = `root`@`%` + SQL SECURITY DEFINER +VIEW `orderTicket` AS + SELECT + `b`.`order_id` AS `orderFk`, `b`.`Id_Ticket` AS `ticketFk` + FROM + `vn2008`.`order_Tickets` `b`;