From 34a6e3a2af639f6dbfed87c01561dff98ce3bd04 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Thu, 25 Feb 2021 22:20:41 -0400 Subject: [PATCH] fix point of sale not found (#606) * fix point of sale not found * rename parameter --- src/components/ADempiere/Form/VPOS/Order/index.vue | 4 ++-- src/components/ADempiere/Form/VPOS/posMixin.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ADempiere/Form/VPOS/Order/index.vue b/src/components/ADempiere/Form/VPOS/Order/index.vue index 70f97b00..298d0b4a 100644 --- a/src/components/ADempiere/Form/VPOS/Order/index.vue +++ b/src/components/ADempiere/Form/VPOS/Order/index.vue @@ -427,7 +427,7 @@ export default { }, watch: { currencyUuid(value) { - if (!this.isEmptyValue(value)) { + if (!this.isEmptyValue(value) && !this.isEmptyValue(this.currentPoint)) { this.$store.dispatch('conversionDivideRate', { conversionTypeUuid: this.$store.getters.getCurrentPOS.conversionTypeUuid, currencyFromUuid: this.currencyPoint.uuid, @@ -436,7 +436,7 @@ export default { } }, converCurrency(value) { - if (!this.isEmptyValue(value)) { + if (!this.isEmptyValue(value) && !this.isEmptyValue(this.currentPoint)) { this.$store.dispatch('conversionMultiplyRate', { containerUuid: 'Order', conversionTypeUuid: this.$store.getters.getCurrentPOS.conversionTypeUuid, diff --git a/src/components/ADempiere/Form/VPOS/posMixin.js b/src/components/ADempiere/Form/VPOS/posMixin.js index f716a553..9d2e417a 100644 --- a/src/components/ADempiere/Form/VPOS/posMixin.js +++ b/src/components/ADempiere/Form/VPOS/posMixin.js @@ -199,7 +199,7 @@ export default { }, updateOrder(update) { // user session - if (update.value !== this.getOrder.businessPartner.uuid) { + if (update.value !== this.getOrder.businessPartner.uuid && !this.isEmptyValue(this.currentPoint)) { this.$store.dispatch('updateOrder', { orderUuid: this.$route.query.action, posUuid: this.currentPoint.uuid,