Skip to content

Commit

Permalink
fix: Account reference table name.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Jun 8, 2024
1 parent 31bbdcb commit 057807d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/ADempiere/references.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ export function getTableNameFromReference(columnName, displayTypeId) {
}
if ([ID.id, SEARCH.id, TABLE.id, TABLE_DIRECT.id].includes(displayTypeId)) {
tableName = columnName.replaceAll(/(_ID_To|_ID)$/g, '')
if (columnName.endsWith('_Acct')) {
tableName = 'C_ElementValue'
}
} else if (LIST.id === displayTypeId) {
tableName = 'AD_Reference'
} else if (LOCATION_ADDRESS.id === displayTypeId) {
Expand Down

0 comments on commit 057807d

Please sign in to comment.