Skip to content

Commit

Permalink
close akaunting#1547 Fixed: Invoice/bill edit item issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Jul 24, 2020
1 parent a577510 commit fe6deb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions resources/assets/js/views/purchases/bills.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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)
});
});

Expand Down
5 changes: 3 additions & 2 deletions resources/assets/js/views/sales/invoices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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)
});
});

Expand Down

0 comments on commit fe6deb7

Please sign in to comment.