This commit is contained in:
Cüneyt Şentürk 2021-07-28 18:38:56 +03:00
parent 1689c9139e
commit 90f7453659

View File

@ -13,7 +13,6 @@
import Global from './../../mixins/global';
import Form from './../../plugins/form';
import Error from './../../plugins/error';
import BulkAction from './../../plugins/bulk-action';
// plugin setup
@ -265,6 +264,7 @@
}
}
}, this);
this.currencyConversion();
},
@ -552,6 +552,7 @@
this.edit.currency++;
return;
}
if (!this.currencies.length) {
let currency_promise = Promise.resolve(window.axios.get((url + '/settings/currencies')));
@ -571,8 +572,10 @@
this.form.currency_code = currency.code;
this.form.currency_rate = currency.rate;
this.currencyConversion();
}
if (company_currency_code == currency.code) {
this.currency_symbol = currency;
}
@ -587,11 +590,12 @@
setTimeout(() => {
if (document.querySelectorAll('.js-conversion-input')) {
let currency_input = document.querySelectorAll('.js-conversion-input');
for(let input of currency_input) {
input.setAttribute('size', input.value.length);
}
}
}, 250)
}, 250);
}
},
@ -691,4 +695,3 @@
}
}
});