Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
f5a6521f20
|
@ -30,8 +30,13 @@ module.exports = Self => {
|
||||||
const sender = await models.Account.findById(accessToken.userId);
|
const sender = await models.Account.findById(accessToken.userId);
|
||||||
const recipient = to.replace('@', '');
|
const recipient = to.replace('@', '');
|
||||||
|
|
||||||
if (sender.name != recipient)
|
if (sender.name != recipient) {
|
||||||
return sendMessage(sender, to, message);
|
await sendMessage(sender, to, message);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
async function sendMessage(sender, channel, message) {
|
async function sendMessage(sender, channel, message) {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
DELETE FROM salix.ACL
|
DELETE FROM `salix`.`ACL`
|
||||||
WHERE model = 'ClaimEnd' AND property = 'importTicketSales';
|
WHERE model = 'ClaimEnd' AND property = 'importTicketSales';
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
INSERT INTO salix.ACL
|
INSERT INTO `salix`.`ACL`
|
||||||
(model, property, accessType, permission, principalType, principalId)
|
(model, property, accessType, permission, principalType, principalId)
|
||||||
VALUES('Collection', 'setSaleQuantity', '*', 'ALLOW', 'ROLE', 'employee');
|
VALUES('Collection', 'setSaleQuantity', '*', 'ALLOW', 'ROLE', 'employee');
|
|
@ -1,3 +1,3 @@
|
||||||
INSERT INTO salix.ACL
|
INSERT INTO `salix`.`ACL`
|
||||||
(model, property, accessType, permission, principalType, principalId)
|
(model, property, accessType, permission, principalType, principalId)
|
||||||
VALUES('Docuware', '*', '*', 'ALLOW', 'ROLE', 'employee');
|
VALUES('Docuware', '*', '*', 'ALLOW', 'ROLE', 'employee');
|
|
@ -1,3 +1,3 @@
|
||||||
UPDATE salix.defaultViewConfig
|
UPDATE `salix`.`defaultViewConfig`
|
||||||
SET `columns`='{"intrastat":false,"stemMultiplier":false,"landed":false,"producer":false}'
|
SET `columns`='{"intrastat":false,"stemMultiplier":false,"landed":false,"producer":false}'
|
||||||
WHERE tableCode ='itemsIndex';
|
WHERE tableCode ='itemsIndex';
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
INSERT INTO salix.ACL (model,property,accessType,principalId)
|
INSERT INTO `salix`.`ACL` (model,property,accessType,principalId)
|
||||||
VALUES ('AgencyTerm','*','*','administrative');
|
VALUES ('AgencyTerm','*','*','administrative');
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
UPDATE `account`.`user`
|
UPDATE `account`.`user` SET `role` = 57 WHERE id IN (2294, 4365, 7294);
|
||||||
SET `role` = 57
|
|
||||||
WHERE id IN (2294, 4365, 7294);
|
|
|
@ -80,6 +80,7 @@ module.exports = Self => {
|
||||||
stmt.merge(conn.makeWhere(filter.where));
|
stmt.merge(conn.makeWhere(filter.where));
|
||||||
stmt.merge(`GROUP BY d.clientFk`);
|
stmt.merge(`GROUP BY d.clientFk`);
|
||||||
stmt.merge(conn.makeOrderBy(filter.order));
|
stmt.merge(conn.makeOrderBy(filter.order));
|
||||||
|
stmt.merge(conn.makeLimit(filter));
|
||||||
|
|
||||||
const itemsIndex = stmts.push(stmt) - 1;
|
const itemsIndex = stmts.push(stmt) - 1;
|
||||||
const sql = ParameterizedSQL.join(stmts, ';');
|
const sql = ParameterizedSQL.join(stmts, ';');
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span
|
<span
|
||||||
vn-click-stop="itemDescriptor.show($event, item.id)"
|
vn-click-stop="clientDescriptor.show($event, client.id)"
|
||||||
class="link">
|
class="link">
|
||||||
{{::client.id}}
|
{{::client.id}}
|
||||||
</span>
|
</span>
|
||||||
|
@ -83,7 +83,9 @@
|
||||||
</smart-table>
|
</smart-table>
|
||||||
</vn-card>
|
</vn-card>
|
||||||
|
|
||||||
|
<vn-client-descriptor-popover
|
||||||
|
vn-id="clientDescriptor">
|
||||||
|
</vn-client-descriptor-popover>
|
||||||
<vn-popover vn-id="filters">
|
<vn-popover vn-id="filters">
|
||||||
<div class="vn-pa-lg">
|
<div class="vn-pa-lg">
|
||||||
<form ng-submit="$ctrl.onSendClientConsumption()">
|
<form ng-submit="$ctrl.onSendClientConsumption()">
|
||||||
|
@ -153,3 +155,6 @@
|
||||||
</vn-item>
|
</vn-item>
|
||||||
</slot-menu>
|
</slot-menu>
|
||||||
</vn-contextmenu>
|
</vn-contextmenu>
|
||||||
|
<vn-client-descriptor-popover
|
||||||
|
vn-id="clientDescriptor">
|
||||||
|
</vn-client-descriptor-popover>
|
|
@ -78,7 +78,7 @@
|
||||||
class="clickable search-result">
|
class="clickable search-result">
|
||||||
<vn-td number>{{::zone.id}}</vn-td>
|
<vn-td number>{{::zone.id}}</vn-td>
|
||||||
<vn-td expand>{{::zone.name}}</vn-td>
|
<vn-td expand>{{::zone.name}}</vn-td>
|
||||||
<vn-td>{{::zone.agencyMode.name}}</vn-td>
|
<vn-td>{{::zone.agencyModeName}}</vn-td>
|
||||||
<vn-td shrink>{{::zone.hour | date: 'HH:mm'}}</vn-td>
|
<vn-td shrink>{{::zone.hour | date: 'HH:mm'}}</vn-td>
|
||||||
<vn-td number>{{::zone.price | currency: 'EUR':2}}</vn-td>
|
<vn-td number>{{::zone.price | currency: 'EUR':2}}</vn-td>
|
||||||
<vn-td shrink>
|
<vn-td shrink>
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
"test": "jest --watch",
|
"test": "jest --watch",
|
||||||
"back": "nodemon --inspect -w modules ./node_modules/gulp/bin/gulp.js back",
|
"back": "nodemon --inspect -w modules ./node_modules/gulp/bin/gulp.js back",
|
||||||
"lint": "eslint ./ --cache --ignore-pattern .gitignore",
|
"lint": "eslint ./ --cache --ignore-pattern .gitignore",
|
||||||
"docker": "docker build -t salix-db ./db"
|
"docker": "docker build --progress=plain -t salix-db ./db"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"projects": [
|
"projects": [
|
||||||
|
|
Loading…
Reference in New Issue