forked from adempiere/adempiere-vue
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* ADempiere-Vue (Frontend) for ADempiere ERP & CRM Smart Business Solution | ||
* Copyright (C) 2017-Present E.R.P. Consultores y Asociados, C.A. www.erpya.com | ||
* Copyright (C) 2018-Present E.R.P. Consultores y Asociados, C.A. www.erpya.com | ||
* Contributor(s): Edwin Betancourt [email protected] https://github.com/EdwinBetanc0urt | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -55,26 +55,26 @@ export const zoomInOptionItem = { | |
componentRender: () => import('@/components/ADempiere/FieldDefinition/FieldOptions/EmptyOption'), | ||
executeMethod: ({ containerManager, window, fieldAttributes, value }) => { | ||
const { parentUuid, containerUuid, reference } = fieldAttributes | ||
const { zoomWindows } = reference | ||
const { zoom_windows } = reference | ||
|
||
let windowToZoom = window | ||
if (isEmptyValue(windowToZoom)) { | ||
const isSOTrx = isSalesTransaction({ | ||
parentUuid, | ||
containerUuid | ||
}) | ||
windowToZoom = zoomWindows.find(zoomWindow => { | ||
windowToZoom = zoom_windows.find(zoomWindow => { | ||
// Is Sales Transaction Window or Is Purchase Transaction Window | ||
return zoomWindow.isSalesTransaction === isSOTrx | ||
}) | ||
if (isEmptyValue(windowToZoom)) { | ||
windowToZoom = zoomWindows.at(0) | ||
windowToZoom = zoom_windows.at(0) | ||
} | ||
} | ||
|
||
let currentValue = value | ||
|
||
let columnName = reference.keyColumnName | ||
let columnName = reference.key_column_name | ||
.match(/(\.)(\b\w*)/ig) | ||
.toString() | ||
.replace('.', '') | ||
|
@@ -87,7 +87,7 @@ export const zoomInOptionItem = { | |
} | ||
} | ||
|
||
// TODO: Evaluate reference.keyColumnName: AD_Ref_List.Value | ||
// TODO: Evaluate reference.key_column_name: AD_Ref_List.Value | ||
if (fieldAttributes.displayType === LIST.id) { | ||
columnName = 'AD_Reference_ID' | ||
// TODO: Direct query is deprecated | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters