From bec6d41b447737ad02730ca50969f8790ffadad8 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Mon, 23 Aug 2021 12:33:40 -0400 Subject: [PATCH] error when adding payment (#1099) Co-authored-by: elsiosanchez --- .../ADempiere/Form/VPOS/Collection/index.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/ADempiere/Form/VPOS/Collection/index.vue b/src/components/ADempiere/Form/VPOS/Collection/index.vue index 01fd6c27..8164c28c 100644 --- a/src/components/ADempiere/Form/VPOS/Collection/index.vue +++ b/src/components/ADempiere/Form/VPOS/Collection/index.vue @@ -613,7 +613,7 @@ export default { this.$store.commit('updateValueOfField', { containerUuid: this.containerUuid, columnName: 'PayAmt', - value: value + value: this.round(value) }) }, convertAllPayment(value) { @@ -627,7 +627,7 @@ export default { this.$store.commit('updateValueOfField', { containerUuid: this.containerUuid, columnName: 'PayAmt', - value: this.pending + value: this.round(this.pending) }) } }, @@ -636,13 +636,13 @@ export default { this.$store.commit('updateValueOfField', { containerUuid: this.containerUuid, columnName: 'PayAmt', - value: this.pending / value.divideRate + value: this.round(this.pending / value.divideRate) }) } else { this.$store.commit('updateValueOfField', { containerUuid: this.containerUuid, columnName: 'PayAmt', - value: this.pending + value: this.round(this.pending) }) } }, @@ -817,7 +817,7 @@ export default { this.$store.commit('updateValueOfField', { containerUuid: this.containerUuid, columnName: 'PayAmt', - value: this.pending + value: this.round(this.pending) }) }) this.defaultValueCurrency() @@ -846,7 +846,7 @@ export default { this.$store.commit('updateValueOfField', { containerUuid: this.containerUuid, columnName: 'PayAmt', - value: this.pending + value: this.round(this.pending) }) this.defaultValueCurrency() this.$store.commit('currencyDivideRateCollection', 1)