From b3285a0cee546b991665b4cb405dba00b57a9209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Thu, 8 Apr 2021 12:38:28 +0300 Subject: [PATCH] close #1974 Fixed: When customer changes currency does not change --- resources/assets/js/components/AkauntingMoney.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/assets/js/components/AkauntingMoney.vue b/resources/assets/js/components/AkauntingMoney.vue index cfd94c53d..ce7382cda 100644 --- a/resources/assets/js/components/AkauntingMoney.vue +++ b/resources/assets/js/components/AkauntingMoney.vue @@ -157,6 +157,17 @@ export default { mounted() { //this.model = this.value; + if (this.dynamicCurrency.code != this.currency.code) { + this.money = { + decimal: this.dynamicCurrency.decimal_mark, + thousands: this.dynamicCurrency.thousands_separator, + prefix: (this.dynamicCurrency.symbol_first) ? this.dynamicCurrency.symbol : '', + suffix: (!this.dynamicCurrency.symbol_first) ? this.dynamicCurrency.symbol : '', + precision: parseInt(this.dynamicCurrency.precision), + masked: this.masked + }; + } + this.$emit('interface', this.model); },