Merge branch 'dev' of https://git.verdnatura.es/salix into dev

This commit is contained in:
Gerard 2018-10-11 15:01:00 +02:00
commit a9d99fc16c
3 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,32 @@
{
"name": "Defaulter",
"description": "defaulters client",
"base": "VnModel",
"options": {
"mysql": {
"table": "defaulter",
"database": "vn"
}
},
"properties": {
"created": {
"type": "Date"
},
"amount": {
"type": "Number"
},
"defaulterSinced": {
"type": "Number"
},
"hasChanged": {
"type": "Number"
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
}
}
}

View File

@ -52,5 +52,8 @@
},
"TpvResponse": {
"dataSource": "hedera"
},
"Defaulter": {
"dataSource": "vn"
}
}

View File

@ -7,8 +7,8 @@ VALUES
(108, 'ItemPlacement', '*', 'WRITE', 'ALLOW', 'ROLE', 'marketingBoss'),
(109, 'UserConfig', '*', '*', 'ALLOW', 'ROLE', 'employee'),
(110, 'Bank', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
(111, 'ClientLog', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
(111, 'ClientLog', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
(112, 'Defaulter', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
UPDATE salix.ACL
SET model='ItemTag', property='*', accessType='WRITE', permission='ALLOW', principalType='ROLE', principalId='marketingBoss'
WHERE id=52;