From c4ef65467b0527f88473b65df114e644c0d92d2c Mon Sep 17 00:00:00 2001 From: EdwinBetanc0urt Date: Mon, 15 Jul 2024 10:27:28 -0400 Subject: [PATCH] ix: Edit zero value on record. --- src/components/ADempiere/PanelDefinition/StandardPanel.vue | 7 ++++++- src/store/modules/ADempiere/persistence.js | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/ADempiere/PanelDefinition/StandardPanel.vue b/src/components/ADempiere/PanelDefinition/StandardPanel.vue index f3c8c12e8b0..5740b444628 100644 --- a/src/components/ADempiere/PanelDefinition/StandardPanel.vue +++ b/src/components/ADempiere/PanelDefinition/StandardPanel.vue @@ -66,13 +66,15 @@ import { defineComponent, ref, computed, watch } from '@vue/composition-api' import store from '@/store' +// Constants +import { FOCUSABLE_FIELDS_LIST } from '@/utils/ADempiere/componentUtils' + // Components and Mixins import FieldDefinition from '@/components/ADempiere/FieldDefinition/index.vue' import FilterFields from '@/components/ADempiere/FilterFields/index.vue' // Utils and Helper Methods import { isEmptyValue } from '@/utils/ADempiere/valueUtils' -import { FOCUSABLE_FIELDS_LIST } from '@/utils/ADempiere/componentUtils' export default defineComponent({ name: 'StandardPanel', @@ -120,6 +122,7 @@ export default defineComponent({ setup(props, { root }) { const fieldIndex = ref() + const isActiveCurrentTab = computed(() => { if ( !isEmptyValue(props.panelMetadata.name) && @@ -131,6 +134,7 @@ export default defineComponent({ } return false }) + const fieldsList = computed(() => { if (!isEmptyValue(props.panelMetadata) && !isEmptyValue(props.panelMetadata.fieldsList)) { setFocus(props.panelMetadata.fieldsList) @@ -228,6 +232,7 @@ export default defineComponent({ } return 500 + 'px' }) + const styleScrollPanelTab = computed(() => { if (props.panelMetadata.isParentTab) { const isFullScreenTabsParent = store.getters.getStoredWindow(props.panelMetadata.parentUuid).isFullScreenTabsParent diff --git a/src/store/modules/ADempiere/persistence.js b/src/store/modules/ADempiere/persistence.js index 54d38c0d93f..d09d791bff6 100644 --- a/src/store/modules/ADempiere/persistence.js +++ b/src/store/modules/ADempiere/persistence.js @@ -265,9 +265,9 @@ const persistence = { return true } // prevent `PO.set_Value: Column not updateable` - if (!isEmptyValue(recordUuid) && recordUuid !== 'create-new' && !field.is_updateable) { - return false - } + // if (!isEmptyValue(recordUuid) && recordUuid !== 'create-new' && !field.is_updateable) { + // return false + // } if (LOG_COLUMNS_NAME_LIST.includes(columnName)) { return false }