Skip to content

Commit

Permalink
ix: Edit zero value on record.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Jul 15, 2024
1 parent c62f375 commit c4ef654
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/components/ADempiere/PanelDefinition/StandardPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -120,6 +122,7 @@ export default defineComponent({

setup(props, { root }) {
const fieldIndex = ref()

const isActiveCurrentTab = computed(() => {
if (
!isEmptyValue(props.panelMetadata.name) &&
Expand All @@ -131,6 +134,7 @@ export default defineComponent({
}
return false
})

const fieldsList = computed(() => {
if (!isEmptyValue(props.panelMetadata) && !isEmptyValue(props.panelMetadata.fieldsList)) {
setFocus(props.panelMetadata.fieldsList)
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/store/modules/ADempiere/persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c4ef654

Please sign in to comment.