Fixed itemised tax calc to fix pos loading

This commit is contained in:
Nabin Hait
2017-07-07 12:24:37 +05:30
parent 7773ee8960
commit fbb5945ff3
3 changed files with 7 additions and 7 deletions

View File

@@ -689,7 +689,7 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
return '<th style="min-width: 80px;" class="text-right">' + (head || "") + "</th>";
}
}
).join("\n");
).join("");
var distinct_item_names = [];
var distinct_items = [];
@@ -711,9 +711,9 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
return item_tax_record[head[0]] ?
"<td class='text-right'>(" + item_tax_record[head[0]][0] + ") " + item_tax_record[head[0]][1] + "</td>" :
"<td></td>";
}).join("\n")
}).join("")
});
}).join("\n");
}).join("");
if(!rows) return "";
return '<div class="tax-break-up" style="overflow-x: auto;">\