Invoice & bill item new style..

This commit is contained in:
Cüneyt Şentürk
2020-03-11 15:59:24 +03:00
parent 48f3b7c3b6
commit 2f49904b18
5 changed files with 151 additions and 132 deletions

View File

@ -255,11 +255,13 @@ const app = new Vue({
},
onSelectItem(item, index) {
let tax_id = (item.tax_id) ? [item.tax_id.toString()] : '';
this.form.items[index].item_id = item.id;
this.form.items[index].name = item.name;
this.form.items[index].price = (item.purchase_price).toFixed(2);
this.form.items[index].quantity = 1;
this.form.items[index].tax_id = [item.tax_id.toString()];
this.form.items[index].tax_id = tax_id;
this.form.items[index].total = (item.purchase_price).toFixed(2);
},