acls, fixtures, models
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Carlos Satorres 2024-06-17 13:50:07 +02:00
parent 54b6ef491f
commit fa8c1b3879
4 changed files with 34 additions and 1 deletions

View File

@ -3882,3 +3882,22 @@ INSERT INTO `vn`.`calendarHolidays` (calendarHolidaysTypeFk, dated, calendarHoli
(1, '2001-05-17', 1, 5), (1, '2001-05-17', 1, 5),
(1, '2001-05-18', 1, 5); (1, '2001-05-18', 1, 5);
INSERT INTO vn.payrollComponent
(id, name, isSalaryAgreed, isVariable, isException)
VALUES(1, 'Salario1', 1, 0, 0);
INSERT INTO vn.payrollComponent
(id, name, isSalaryAgreed, isVariable, isException)
VALUES(2, 'Salario2', 1, 1, 0);
INSERT INTO vn.payrollComponent
(id, name, isSalaryAgreed, isVariable, isException)
VALUES(3, 'Salario3', 1, 0, 1);
INSERT INTO vn.workerIncome
(debit, credit, incomeTypeFk, paymentDate, workerFk, concept)
VALUES(1000.00, 900.00, 2, '2000-01-01', 1106, NULL);
INSERT INTO vn.workerIncome
(debit, credit, incomeTypeFk, paymentDate, workerFk, concept)
VALUES(1001.00, 800.00, 2, '2000-01-01', 1106, NULL);

View File

@ -0,0 +1,8 @@
-- Place your SQL code here
INSERT INTO salix.ACL
(id, model, property, accessType, permission, principalType, principalId)
VALUES(872, 'WorkerIncome', '*', '*', 'ALLOW', 'ROLE', 'hr');
INSERT INTO salix.ACL
(id, model, property, accessType, permission, principalType, principalId)
VALUES(873, 'PayrollComponent', '*', '*', 'ALLOW', 'ROLE', 'hr');

View File

@ -124,6 +124,12 @@
}, },
"Locker": { "Locker": {
"dataSource": "vn" "dataSource": "vn"
},
"PayrollComponent": {
"dataSource": "vn"
},
"WorkerIncome": {
"dataSource": "vn"
} }
} }

View File

@ -37,7 +37,7 @@
"foreignKey": "id" "foreignKey": "id"
}, },
"worker": { "worker": {
"type": "belongsTo", "type": "hasMany",
"model": "Worker", "model": "Worker",
"foreignKey": "id" "foreignKey": "id"
} }