diff --git a/db/versions/11199-blackEucalyptus/00-firstScript.sql b/db/versions/11199-blackEucalyptus/00-firstScript.sql new file mode 100644 index 000000000..8295d8edf --- /dev/null +++ b/db/versions/11199-blackEucalyptus/00-firstScript.sql @@ -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; diff --git a/db/versions/11199-blackEucalyptus/01-firstScript.sql b/db/versions/11199-blackEucalyptus/01-firstScript.sql new file mode 100644 index 000000000..186300b52 --- /dev/null +++ b/db/versions/11199-blackEucalyptus/01-firstScript.sql @@ -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; diff --git a/front/salix/components/log/index.js b/front/salix/components/log/index.js index 854c57f00..668f197dd 100644 --- a/front/salix/components/log/index.js +++ b/front/salix/components/log/index.js @@ -40,10 +40,10 @@ export default class Controller extends Section { 'oldInstance', 'newInstance', 'creationDate', + 'description', 'changedModel', 'changedModelId', - 'changedModelValue', - 'description' + 'changedModelValue' ], include: [{ relation: 'user', diff --git a/loopback/common/models/log.json b/loopback/common/models/log.json index 6d246371c..c7fdf94a1 100644 --- a/loopback/common/models/log.json +++ b/loopback/common/models/log.json @@ -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" } }, diff --git a/modules/ticket/back/models/ticket-log.json b/modules/ticket/back/models/ticket-log.json index 7b3f8b466..27a0ae9a5 100644 --- a/modules/ticket/back/models/ticket-log.json +++ b/modules/ticket/back/models/ticket-log.json @@ -43,6 +43,9 @@ }, "summaryId": { "type":"string" - } + }, + "reason": { + "type": "string" + } } }