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