Skip to content

Commit

Permalink
PanJiaChen#2242 Fix: When creating DxP from Purchase Order from SB, t…
Browse files Browse the repository at this point in the history
…he record is lost. (PanJiaChen#2277)
  • Loading branch information
elsiosanchez authored May 24, 2024
1 parent 681795e commit 3897ffb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/ADempiere/DataTable/Windows/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ import LoadingView from '@/components/ADempiere/LoadingView/index.vue'
import useFullScreenContainer from '@/components/ADempiere/ContainerOptions/FullScreenContainer/useFullScreenContainer'

// Utils and Helper Methods
import { isEmptyValue } from '@/utils/ADempiere/valueUtils'
import { isEmptyValue, setRecordPath } from '@/utils/ADempiere/valueUtils.js'

export default defineComponent({
name: 'WindowsTable',
Expand Down Expand Up @@ -388,6 +388,12 @@ export default defineComponent({
parentUuid: props.parentUuid,
containerUuid: props.containerUuid
})
const { table_name } = props.panelMetadata
if (!isEmptyValue(table_name) && !isEmptyValue(row[table_name + '_ID'])) {
setRecordPath({
recordId: row[table_name + '_ID']
})
}

// if (isMobile.value) {
// changeTable(false)
Expand Down

0 comments on commit 3897ffb

Please sign in to comment.