From eeba4c7b45a2a1d4b7122279e3cfecb594d57032 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Tue, 2 Mar 2021 00:17:23 -0400 Subject: [PATCH] add tax to order (#615) * add tax to order * fix tax Co-authored-by: Elsio Sanchez --- src/components/ADempiere/Form/VPOS/Order/index.vue | 5 ++--- src/components/ADempiere/Form/VPOS/posMixin.js | 5 +---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/components/ADempiere/Form/VPOS/Order/index.vue b/src/components/ADempiere/Form/VPOS/Order/index.vue index 14081dfb..7fc66f89 100644 --- a/src/components/ADempiere/Form/VPOS/Order/index.vue +++ b/src/components/ADempiere/Form/VPOS/Order/index.vue @@ -37,10 +37,9 @@ v-if="!isEmptyValue(getOrder.documentStatus.value)" :type="tagStatus(getOrder.documentStatus.value)" > - - Borrador + + {{ getOrder.documentStatus.name }} - {{ getOrder.documentStatus.name }} diff --git a/src/components/ADempiere/Form/VPOS/posMixin.js b/src/components/ADempiere/Form/VPOS/posMixin.js index 35200e35..2a9ccdc5 100644 --- a/src/components/ADempiere/Form/VPOS/posMixin.js +++ b/src/components/ADempiere/Form/VPOS/posMixin.js @@ -357,10 +357,7 @@ export default { // this.order = orderToPush }, getOrderTax(currency) { - if (this.isEmptyValue(this.order)) { - return undefined - } - return this.formatPrice(this.order.grandTotal - this.order.totalLines, currency) + return this.formatPrice(this.getOrder.grandTotal - this.getOrder.totalLines, currency) }, subscribeChanges() { return this.$store.subscribe((mutation, state) => {