close #1974 Fixed: When customer changes currency does not change

This commit is contained in:
Cüneyt Şentürk 2021-04-08 12:38:28 +03:00
parent f9c67b1fee
commit b3285a0cee

View File

@ -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);
},