change function name and add function in add new modal
This commit is contained in:
@ -193,6 +193,28 @@ export default {
|
||||
|
||||
onChangeColorInput() {
|
||||
this.color = this.form.color;
|
||||
},
|
||||
|
||||
onChangeRate() {
|
||||
this.form.rate = this.form.rate.replace(',', '.');
|
||||
},
|
||||
|
||||
onChangeCode(code) {
|
||||
axios.get(url + '/settings/currencies/config', {
|
||||
params: {
|
||||
code: code
|
||||
}
|
||||
})
|
||||
.then(response => {
|
||||
this.form.rate = response.data.rate;
|
||||
this.form.precision = response.data.precision;
|
||||
this.form.symbol = response.data.symbol;
|
||||
this.form.symbol_first = response.data.symbol_first;
|
||||
this.form.decimal_mark = response.data.decimal_mark;
|
||||
this.form.thousands_separator = response.data.thousands_separator;
|
||||
})
|
||||
.catch(error => {
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -33,7 +33,7 @@ const app = new Vue({
|
||||
},
|
||||
|
||||
methods:{
|
||||
RateReplace(){
|
||||
onChangeRate() {
|
||||
this.form.rate = this.form.rate.replace(',', '.');
|
||||
},
|
||||
|
||||
|
2
resources/assets/js/views/settings/taxes.js
vendored
2
resources/assets/js/views/settings/taxes.js
vendored
@ -33,7 +33,7 @@ const app = new Vue({
|
||||
},
|
||||
|
||||
methods: {
|
||||
taxRateReplace() {
|
||||
onChangeTaxRate() {
|
||||
this.form.rate = this.form.rate.replace(',', '.');
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user