Fixed onSelectedTax function undefined 'id' issue ( 3764853095 )
This commit is contained in:
parent
75bc117b5f
commit
574afbebd1
24
resources/assets/js/views/common/documents.js
vendored
24
resources/assets/js/views/common/documents.js
vendored
@ -493,19 +493,21 @@ const app = new Vue({
|
||||
}
|
||||
}, this);
|
||||
|
||||
this.items[item_index].tax_ids.push({
|
||||
id: selected_tax.id,
|
||||
name: selected_tax.title,
|
||||
price: 0
|
||||
});
|
||||
if (selected_tax) {
|
||||
this.items[item_index].tax_ids.push({
|
||||
id: selected_tax.id,
|
||||
name: selected_tax.title,
|
||||
price: 0
|
||||
});
|
||||
|
||||
this.form.items[item_index].tax_ids.push(this.tax_id);
|
||||
this.form.items[item_index].tax_ids.push(this.tax_id);
|
||||
|
||||
if (this.taxes.includes(this.tax_id)) {
|
||||
this.taxes[this.tax_id].push(this.items[item_index].item_id);
|
||||
} else {
|
||||
this.taxes[this.tax_id] = [];
|
||||
this.taxes[this.tax_id].push(this.items[item_index].item_id);
|
||||
if (this.taxes.includes(this.tax_id)) {
|
||||
this.taxes[this.tax_id].push(this.items[item_index].item_id);
|
||||
} else {
|
||||
this.taxes[this.tax_id] = [];
|
||||
this.taxes[this.tax_id].push(this.items[item_index].item_id);
|
||||
}
|
||||
}
|
||||
|
||||
this.tax_id = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user