diff --git a/src/store/modules/ADempiere/windowManager.js b/src/store/modules/ADempiere/windowManager.js index 0413f15c3a5..e99b8f16faa 100644 --- a/src/store/modules/ADempiere/windowManager.js +++ b/src/store/modules/ADempiere/windowManager.js @@ -362,6 +362,7 @@ const windowManager = { * Delete Entity table * @param {string} parentUuid * @param {string} containerUuid + * TODO: Add suport to uuid list */ deleteSelectedRecordsFromWindow({ dispatch, @@ -370,9 +371,10 @@ const windowManager = { parentUuid, containerUuid }) { - const getTabSelectionsList = getters.getTabSelectionsList({ containerUuid }) const tableName = getters.getTableName(parentUuid, containerUuid) - const listRecordId = getTabSelectionsList.map(list => list[tableName + '_ID']) + const selectionsList = getters.getTabSelectionsList({ containerUuid }) + const listRecordId = selectionsList.map(list => list[tableName + '_ID']) + showMessage({ message: language.t('table.dataTable.deleteSelection'), type: 'info' diff --git a/src/utils/ADempiere/dictionary/window.js b/src/utils/ADempiere/dictionary/window.js index 3ddebf8aea9..d5cd47ac428 100644 --- a/src/utils/ADempiere/dictionary/window.js +++ b/src/utils/ADempiere/dictionary/window.js @@ -236,7 +236,7 @@ export const deleteRecord = { containerUuid }) if (isEmptyValue(selectionsRecords)) { - return false; + return false } store.dispatch('deleteSelectedRecordsFromWindow', { parentUuid, @@ -244,7 +244,7 @@ export const deleteRecord = { }) return } - + // delete record on panel store.dispatch('deleteEntity', { parentUuid,