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.
fix: Save and set
Accouting Combination
field.
- Loading branch information
1 parent
c2685d9
commit 60b546b
Showing
8 changed files
with
183 additions
and
70 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
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
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 | ||
|
@@ -16,8 +16,32 @@ | |
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
// Utils and Helper Methods | ||
import { isEmptyValue } from '@/utils/ADempiere/valueUtils' | ||
|
||
export const TABLE_NAME = 'C_ValidCombination' | ||
|
||
export const COLUMN_NAME = 'C_ValidCombination_ID' | ||
|
||
export const ACCOUTING_COMBINATIONS_LIST_FORM = 'Accouting-Combination-List' | ||
export const ACCOUTING_COMBINATIONS_LIST_FORM = 'Accouting-Combinations-List' | ||
|
||
/** | ||
* Generate displayed value from values | ||
* @param {Object} recordRow | ||
* @returns {String} | ||
*/ | ||
export function generateDisplayedValue(recordRow) { | ||
const { | ||
DisplayColumn_C_ValidCombination_ID: display_value | ||
} = recordRow | ||
let displayValue = display_value | ||
if (!isEmptyValue(displayValue)) { | ||
return displayValue | ||
} | ||
|
||
// generate with standard columns | ||
const { Combination } = recordRow | ||
displayValue = Combination | ||
|
||
return displayValue | ||
} |
Oops, something went wrong.