condition added for tax

This commit is contained in:
Burak Civan 2022-12-14 11:47:08 +03:00
parent dc5f8622bb
commit 64e5f2b17c

View File

@ -470,11 +470,13 @@ const app = new Vue({
let selected_tax;
if (this.dynamic_taxes.length) {
this.dynamic_taxes.forEach(function(tax) {
if (tax.id == this.tax_id) {
selected_tax = tax;
}
}, this);
}
this.items[item_index].tax_ids.push({
id: selected_tax.id,