Merge pull request #2842 from brkcvn/master
Javascript console error fixed
This commit is contained in:
commit
0435fa4f61
18
resources/assets/js/views/common/documents.js
vendored
18
resources/assets/js/views/common/documents.js
vendored
@ -464,20 +464,18 @@ const app = new Vue({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onSelectedTax(item_index) {
|
onSelectedTax(item_index) {
|
||||||
if (! this.tax_id) {
|
if (! this.tax_id || this.tax_id == '') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let selected_tax;
|
let selected_tax;
|
||||||
|
|
||||||
if (this.dynamic_taxes.length) {
|
this.dynamic_taxes.forEach(function(tax) {
|
||||||
this.dynamic_taxes.forEach(function(tax) {
|
if (tax.id == this.tax_id) {
|
||||||
if (tax.id == this.tax_id) {
|
selected_tax = tax;
|
||||||
selected_tax = tax;
|
}
|
||||||
}
|
}, this);
|
||||||
}, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.items[item_index].tax_ids.push({
|
this.items[item_index].tax_ids.push({
|
||||||
id: selected_tax.id,
|
id: selected_tax.id,
|
||||||
name: selected_tax.title,
|
name: selected_tax.title,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user