diff --git a/src/store/modules/ADempiere/dictionary/browser/getters.js b/src/store/modules/ADempiere/dictionary/browser/getters.js index 830ccce8d4a..fa4b94c9c0e 100644 --- a/src/store/modules/ADempiere/dictionary/browser/getters.js +++ b/src/store/modules/ADempiere/dictionary/browser/getters.js @@ -14,6 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +// utils and helper methods import { isEmptyValue } from '@/utils/ADempiere/valueUtils' import { isDisplayedField, isMandatoryField } from '@/utils/ADempiere/dictionary/browser.js' import { isNumberField } from '@/utils/ADempiere/references' @@ -70,7 +71,7 @@ export default { columnName }) - if (fieldItem.isRange && isNumberField(fieldItem.displayType)) { + if (fieldItem.isRange && !isNumberField(fieldItem.displayType)) { const valueTo = rootGetters.getValueOfField({ containerUuid, columnName: fieldItem.columnNameTo @@ -83,13 +84,12 @@ export default { } } - if (isEmptyValue(value)) { - return + if (!isEmptyValue(value)) { + queryParams.push({ + columnName, + value + }) } - queryParams.push({ - columnName, - value - }) }) return queryParams diff --git a/src/store/modules/ADempiere/dictionary/process/getters.js b/src/store/modules/ADempiere/dictionary/process/getters.js index fb419fcaf79..ddb4cb3cb4d 100644 --- a/src/store/modules/ADempiere/dictionary/process/getters.js +++ b/src/store/modules/ADempiere/dictionary/process/getters.js @@ -14,8 +14,9 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +// utils and helper methods import { isEmptyValue } from '@/utils/ADempiere/valueUtils' -import { isDisplayedField, isMandatoryField } from '@/utils/ADempiere/dictionary/process' +import { isDisplayedField, isMandatoryField } from '@/utils/ADempiere/dictionary/process.js' import { isNumberField } from '@/utils/ADempiere/references' /** @@ -70,7 +71,7 @@ export default { columnName }) - if (fieldItem.isRange && isNumberField(fieldItem.displayType)) { + if (fieldItem.isRange && !isNumberField(fieldItem.displayType)) { const valueTo = rootGetters.getValueOfField({ containerUuid, columnName: fieldItem.columnNameTo @@ -83,13 +84,12 @@ export default { } } - if (isEmptyValue(value)) { - return + if (!isEmptyValue(value)) { + processParameters.push({ + columnName, + value + }) } - processParameters.push({ - columnName, - value - }) }) return processParameters