feat: refs #7287 Added changes to use reason in log
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-08-27 07:56:58 +02:00
parent d2a61cf18d
commit 9f61806e06
5 changed files with 46 additions and 7 deletions

View File

@ -0,0 +1,23 @@
ALTER TABLE account.roleLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE account.userLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE srt.bufferLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE salix.ACLLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.entryLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.clientLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.itemLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.shelvingLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.workerLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.deviceProductionLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.zoneLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.rateLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.ticketLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.agencyLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.userLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.routeLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.claimLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.productionConfigLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.supplierLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.invoiceInLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.travelLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.packingSiteDeviceLog ADD reason varchar(255) DEFAULT NULL NULL;
ALTER TABLE vn.parkingLog ADD reason varchar(255) DEFAULT NULL NULL;

View File

@ -0,0 +1,5 @@
ALTER TABLE vn.ticket
ADD motivation ENUM('clone', 'split') DEFAULT NULL NULL AFTER cmrFk;
ALTER TABLE vn.sale
ADD motivation ENUM('priceFix', 'replaceItem') DEFAULT NULL NULL AFTER total;

View File

@ -40,10 +40,11 @@ export default class Controller extends Section {
'oldInstance',
'newInstance',
'creationDate',
'description',
'changedModel',
'changedModelId',
'changedModelValue',
'description'
'reason'
],
include: [{
relation: 'user',
@ -290,7 +291,8 @@ export default class Controller extends Section {
return {or: [
{oldJson: {like: `%${value}%`}},
{newJson: {like: `%${value}%`}},
{description: {like: `%${value}%`}}
{description: {like: `%${value}%`}},
{reason: {like: `%${value}%`}}
]};
case 'who':
switch (value) {

View File

@ -18,6 +18,12 @@
"type": "string",
"required": true
},
"creationDate": {
"type": "date"
},
"description": {
"type": "string"
},
"changedModel": {
"type": "string"
},
@ -35,16 +41,16 @@
"type": "String",
"mysql": {"columnName": "newInstance"}
},
"creationDate": {
"type": "date"
},
"changedModelId": {
"type": "string"
},
"changedModelValue": {
"type": "string"
},
"description": {
"summaryId": {
"type":"string"
},
"reason": {
"type": "string"
}
},

View File

@ -43,6 +43,9 @@
},
"summaryId": {
"type":"string"
}
},
"reason": {
"type": "string"
}
}
}