diff --git a/src/components/ADempiere/Form/VPOS2/MainOrder/OptionLine/editLine/fieldAmount.vue b/src/components/ADempiere/Form/VPOS2/MainOrder/OptionLine/editLine/fieldAmount.vue index 3d087cdd8e..263f963420 100644 --- a/src/components/ADempiere/Form/VPOS2/MainOrder/OptionLine/editLine/fieldAmount.vue +++ b/src/components/ADempiere/Form/VPOS2/MainOrder/OptionLine/editLine/fieldAmount.vue @@ -50,6 +50,7 @@ import store from '@/store' // import { displayLineProductPriceValue } from '@/utils/ADempiere/dictionary/form/VPOS' // import { copyToClipboard } from '@/utils/ADempiere/coreUtils.js' import { formatPrice } from '@/utils/ADempiere/formatValue/numberFormat' +import { isEmptyValue } from '@/utils/ADempiere' export default defineComponent({ name: 'fieldAmount', @@ -96,6 +97,7 @@ export default defineComponent({ // Methods const displayValue = computed(() => { const currency = store.getters.getAvailableCurrencies.currencie + if (!isEmptyValue(props.valueDisplay)) return props.valueDisplay return formatPrice({ value: Number(totalAmount.value), currency: currency.iso_code }) }) function customFocusGained(event) { diff --git a/src/components/ADempiere/Form/VPOS2/Options/cashManagement/cashOpening/panel.vue b/src/components/ADempiere/Form/VPOS2/Options/cashManagement/cashOpening/panel.vue index 82c89084a5..455b06f482 100644 --- a/src/components/ADempiere/Form/VPOS2/Options/cashManagement/cashOpening/panel.vue +++ b/src/components/ADempiere/Form/VPOS2/Options/cashManagement/cashOpening/panel.vue @@ -201,7 +201,7 @@ export default defineComponent({ }) const amountDisplay = computed(() => { - return formatPrice({ value: Number(amount), currency: currencyPayment.iso_code }) + return formatPrice({ value: Number(amount.value), currency: currencyPayment.value.iso_code }) }) const listPaymentsOpenst = computed(() => { diff --git a/src/components/ADempiere/Form/VPOS2/Options/cashManagement/cashWithdrawal/panel.vue b/src/components/ADempiere/Form/VPOS2/Options/cashManagement/cashWithdrawal/panel.vue index 1826361fdb..71fc1820ae 100644 --- a/src/components/ADempiere/Form/VPOS2/Options/cashManagement/cashWithdrawal/panel.vue +++ b/src/components/ADempiere/Form/VPOS2/Options/cashManagement/cashWithdrawal/panel.vue @@ -38,7 +38,7 @@ > @@ -201,7 +201,7 @@ export default defineComponent({ }) const amountDisplay = computed(() => { - return formatPrice({ value: Number(amount), currency: currencyPayment.iso_code }) + return formatPrice({ value: Number(amount.value), currency: currencyPayment.value.iso_code }) }) const listPaymentsOpenst = computed(() => {