close #1547 Fixed: Invoice/bill edit item issue

This commit is contained in:
Cüneyt Şentürk 2020-07-24 23:38:01 +03:00
parent a57751081c
commit fe6deb787b
2 changed files with 6 additions and 4 deletions

View File

@ -64,6 +64,7 @@ const app = new Vue({
let items = [];
let item_backup = this.form.item_backup[0];
let currency_code = this.form.currency_code;
let currency = this.currency;
this.edit.status = true;
@ -73,11 +74,11 @@ const app = new Vue({
currency: currency_code,
item_id: item.item_id,
name: item.name,
price: (item.price).toFixed(this.currency.precision),
price: (item.price).toFixed(currency.precision),
quantity: item.quantity,
tax_id: item.tax_id,
discount: item.discount_rate,
total: (item.total).toFixed(this.currency.precision)
total: (item.total).toFixed(currency.precision)
});
});

View File

@ -65,6 +65,7 @@ const app = new Vue({
let items = [];
let item_backup = this.form.item_backup[0];
let currency_code = this.form.currency_code;
let currency = this.currency;
this.edit.status = true;
@ -74,11 +75,11 @@ const app = new Vue({
currency: currency_code,
item_id: item.item_id,
name: item.name,
price: (item.price).toFixed(this.currency.precision),
price: (item.price).toFixed(currency.precision),
quantity: item.quantity,
tax_id: item.tax_id,
discount: item.discount_rate,
total: (item.total).toFixed(this.currency.precision)
total: (item.total).toFixed(currency.precision)
});
});