From 9df0312c806ffdb61c8a40500175c01ef3cc4cc0 Mon Sep 17 00:00:00 2001 From: Bernat Exposito Date: Wed, 21 Mar 2018 09:35:04 +0100 Subject: [PATCH] update fixtures and Acl for model AnnualAverageInvoice --- services/db/04-fixtures.sql | 10 +++++++++- services/db/changes/1.0.2/01-ACLinserts.sql | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/services/db/04-fixtures.sql b/services/db/04-fixtures.sql index 5796bd823..5800aa9c1 100644 --- a/services/db/04-fixtures.sql +++ b/services/db/04-fixtures.sql @@ -516,4 +516,12 @@ INSERT INTO `bi`.`rotacion`(`Id_Article`, `warehouse_id`, `total`, `rotacion`, ` ( 1, 1, 0, 0.0000, 1500, 0.0015, 0.0250, 0.0085, 0.0000), ( 1, 2, 0, 0.0000, 100, 0.0060, 0.0200, 0.0080, 0.0000), ( 2, 1, 10, 3.5000, 0, 0.0000, 0.0000, 0.0080, 0.0000), - ( 3, 1, 50, 5.5000, 100, 0.0000, 0.0000, 0.0080, 0.0000); \ No newline at end of file + ( 3, 1, 50, 5.5000, 100, 0.0000, 0.0000, 0.0080, 0.0000); + +INSERT INTO `vn`.`annualAverageInvoiced`(`clientFk`, `invoiced`) + VALUES + ( 101, 0), + ( 102, 100), + ( 103, 1000), + ( 104, 500), + ( 105, 5000); \ No newline at end of file diff --git a/services/db/changes/1.0.2/01-ACLinserts.sql b/services/db/changes/1.0.2/01-ACLinserts.sql index 2136703fc..cdbf8883f 100644 --- a/services/db/changes/1.0.2/01-ACLinserts.sql +++ b/services/db/changes/1.0.2/01-ACLinserts.sql @@ -12,3 +12,4 @@ INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `pri INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('Expedition', '*', 'READ', 'ALLOW', 'ROLE', 'employee'); INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('Expedition', '*', 'READ', 'ALLOW', 'ROLE', 'employee'); INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('Expedition', '*', 'WRITE', 'ALLOW', 'ROLE', 'production'); +INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('AnnualAverageInvoiced', '*', 'READ', 'ALLOW', 'ROLE', 'employee');