From 5c6712ca54656ec326067c65b79e1b2750fe7deb Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Fri, 6 Nov 2020 10:13:02 -0400 Subject: [PATCH] The History of changes does not show the detail (#537) * The History of changes does not show the detail show the historical detail * minimal change Co-authored-by: elsiosanchez --- src/components/ADempiere/ContainerInfo/recordLogs.vue | 4 ++-- src/store/modules/ADempiere/persistence.js | 11 +++++++++-- src/utils/ADempiere/apiConverts/window.js | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/components/ADempiere/ContainerInfo/recordLogs.vue b/src/components/ADempiere/ContainerInfo/recordLogs.vue index da0a7ca8..2cef400d 100644 --- a/src/components/ADempiere/ContainerInfo/recordLogs.vue +++ b/src/components/ADempiere/ContainerInfo/recordLogs.vue @@ -26,7 +26,7 @@
- +

{{ list.displayColumnName }} : @@ -70,7 +70,7 @@ export default { ], data() { return { - currentKey: 100, + currentKey: 0, typeAction: 0 } }, diff --git a/src/store/modules/ADempiere/persistence.js b/src/store/modules/ADempiere/persistence.js index f2ed3e2f..c6203a43 100644 --- a/src/store/modules/ADempiere/persistence.js +++ b/src/store/modules/ADempiere/persistence.js @@ -32,7 +32,7 @@ const persistence = { } }, actions: { - flushPersistenceQueue({ getters }, { + flushPersistenceQueue({ getters, dispatch }, { containerUuid, tableName, recordUuid @@ -47,7 +47,14 @@ const persistence = { recordUuid, attributesList: attributes }) - .then(response => resolve(response)) + .then(response => { + dispatch('listRecordLogs', { + tableName: response.tableName, + recordId: response.id, + recordUuid: response.uuid + }) + resolve(response) + }) .catch(error => reject(error)) } else { attributes = attributes.filter(itemAttribute => !isEmptyValue(itemAttribute.value)) diff --git a/src/utils/ADempiere/apiConverts/window.js b/src/utils/ADempiere/apiConverts/window.js index 86fa6cfe..0df07136 100644 --- a/src/utils/ADempiere/apiConverts/window.js +++ b/src/utils/ADempiere/apiConverts/window.js @@ -27,7 +27,7 @@ export function convertChangeLog(changeLogToConvert) { oldValue: changeLogToConvert.old_value, newValue: changeLogToConvert.new_value, oldDisplayValue: changeLogToConvert.old_display_value, - newDisplayValye: changeLogToConvert.new_display_value, + newDisplayValue: changeLogToConvert.new_display_value, description: changeLogToConvert.description } }