close #1547 Fixed: Invoice/bill edit item issue
This commit is contained in:
parent
a57751081c
commit
fe6deb787b
5
resources/assets/js/views/purchases/bills.js
vendored
5
resources/assets/js/views/purchases/bills.js
vendored
@ -64,6 +64,7 @@ const app = new Vue({
|
|||||||
let items = [];
|
let items = [];
|
||||||
let item_backup = this.form.item_backup[0];
|
let item_backup = this.form.item_backup[0];
|
||||||
let currency_code = this.form.currency_code;
|
let currency_code = this.form.currency_code;
|
||||||
|
let currency = this.currency;
|
||||||
|
|
||||||
this.edit.status = true;
|
this.edit.status = true;
|
||||||
|
|
||||||
@ -73,11 +74,11 @@ const app = new Vue({
|
|||||||
currency: currency_code,
|
currency: currency_code,
|
||||||
item_id: item.item_id,
|
item_id: item.item_id,
|
||||||
name: item.name,
|
name: item.name,
|
||||||
price: (item.price).toFixed(this.currency.precision),
|
price: (item.price).toFixed(currency.precision),
|
||||||
quantity: item.quantity,
|
quantity: item.quantity,
|
||||||
tax_id: item.tax_id,
|
tax_id: item.tax_id,
|
||||||
discount: item.discount_rate,
|
discount: item.discount_rate,
|
||||||
total: (item.total).toFixed(this.currency.precision)
|
total: (item.total).toFixed(currency.precision)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
5
resources/assets/js/views/sales/invoices.js
vendored
5
resources/assets/js/views/sales/invoices.js
vendored
@ -65,6 +65,7 @@ const app = new Vue({
|
|||||||
let items = [];
|
let items = [];
|
||||||
let item_backup = this.form.item_backup[0];
|
let item_backup = this.form.item_backup[0];
|
||||||
let currency_code = this.form.currency_code;
|
let currency_code = this.form.currency_code;
|
||||||
|
let currency = this.currency;
|
||||||
|
|
||||||
this.edit.status = true;
|
this.edit.status = true;
|
||||||
|
|
||||||
@ -74,11 +75,11 @@ const app = new Vue({
|
|||||||
currency: currency_code,
|
currency: currency_code,
|
||||||
item_id: item.item_id,
|
item_id: item.item_id,
|
||||||
name: item.name,
|
name: item.name,
|
||||||
price: (item.price).toFixed(this.currency.precision),
|
price: (item.price).toFixed(currency.precision),
|
||||||
quantity: item.quantity,
|
quantity: item.quantity,
|
||||||
tax_id: item.tax_id,
|
tax_id: item.tax_id,
|
||||||
discount: item.discount_rate,
|
discount: item.discount_rate,
|
||||||
total: (item.total).toFixed(this.currency.precision)
|
total: (item.total).toFixed(currency.precision)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user