diff --git a/src/components/ADempiere/Form/VPOS2/Collection/Charge/Field/currencies.vue b/src/components/ADempiere/Form/VPOS2/Collection/Charge/Field/currencies.vue index 82fdf1829f..912022fddf 100644 --- a/src/components/ADempiere/Form/VPOS2/Collection/Charge/Field/currencies.vue +++ b/src/components/ADempiere/Form/VPOS2/Collection/Charge/Field/currencies.vue @@ -60,8 +60,8 @@ export default defineComponent({ multiply_rate, divide_rate } = rate - if (multiply_rate.value > divide_rate.value) return multiply_rate.value - return divide_rate.value + if (Number(multiply_rate) > Number(divide_rate)) return Number(multiply_rate) + return Number(divide_rate) }) const isDisabled = computed(() => { @@ -91,8 +91,8 @@ export default defineComponent({ }) function findConverRate(currency) { - const { price_list } = currentOrder.value - let amountConvert = Number(store.getters.getCurrentOrder.open_amount.value) + const { price_list, open_amount } = currentOrder.value + let amountConvert = Number(open_amount) if ( isEmptyValue(currency) || !isEmptyValue(price_list) && diff --git a/src/components/ADempiere/Form/VPOS2/Collection/Charge/index.vue b/src/components/ADempiere/Form/VPOS2/Collection/Charge/index.vue index a014e2bccb..7e5f828e83 100644 --- a/src/components/ADempiere/Form/VPOS2/Collection/Charge/index.vue +++ b/src/components/ADempiere/Form/VPOS2/Collection/Charge/index.vue @@ -34,7 +34,7 @@ along with this program. If not, see . > @@ -284,6 +284,7 @@ export default defineComponent({ const currency = getCurrencyPayment({ paymentMethods: currentPaymentMethod }) + updateAmount(0) store.commit('setAvailableCurrencies', currency) clearFieldsCollections() } diff --git a/src/components/ADempiere/Form/VPOS2/Collection/InfoCollection.vue b/src/components/ADempiere/Form/VPOS2/Collection/InfoCollection.vue index ab3f6172ff..2bc2a3520e 100644 --- a/src/components/ADempiere/Form/VPOS2/Collection/InfoCollection.vue +++ b/src/components/ADempiere/Form/VPOS2/Collection/InfoCollection.vue @@ -34,7 +34,7 @@ along with this program. If not, see . {{ $t('form.pos.collect.orderTotal') }} {{ '(' + currentOrder.document_no + ')' }}: - {{ displayAmount(currentOrder.grand_total.value) }} + {{ displayAmount(currentOrder.grand_total) }}

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 9b7dc4d17c..3d087cdd8e 100644 --- a/src/components/ADempiere/Form/VPOS2/MainOrder/OptionLine/editLine/fieldAmount.vue +++ b/src/components/ADempiere/Form/VPOS2/MainOrder/OptionLine/editLine/fieldAmount.vue @@ -17,8 +17,9 @@ along with this program. If not, see .