diff --git a/resources/assets/js/views/purchases/bills.js b/resources/assets/js/views/purchases/bills.js index 9fd6e325f..35fcac36c 100644 --- a/resources/assets/js/views/purchases/bills.js +++ b/resources/assets/js/views/purchases/bills.js @@ -110,8 +110,8 @@ const app = new Vue({ }) .then(response => { this.currency = response.data; - this.form.currency_code = response.data.currency_code; - this.form.currency_rate = response.data.currency_rate; + this.form.currency_code = response.data.code; + this.form.currency_rate = response.data.rate; }) .catch(error => { }); diff --git a/resources/assets/js/views/sales/invoices.js b/resources/assets/js/views/sales/invoices.js index 077720a51..7e42de7c3 100644 --- a/resources/assets/js/views/sales/invoices.js +++ b/resources/assets/js/views/sales/invoices.js @@ -110,8 +110,9 @@ const app = new Vue({ }) .then(response => { this.currency = response.data; - this.form.currency_code = response.data.currency_code; - this.form.currency_rate = response.data.currency_rate; + + this.form.currency_code = response.data.code; + this.form.currency_rate = response.data.rate; }) .catch(error => { });