fix: Do not calculate total for rate

This commit is contained in:
Deepesh Garg
2020-02-07 11:05:33 +05:30
parent 831a7ddd6f
commit bdfa2ff33a

View File

@@ -603,8 +603,6 @@ def add_sub_total_row(item, total_row_map, group_by_value, tax_columns):
for tax in tax_columns:
total_row.setdefault(frappe.scrub(tax + ' Amount'), 0.0)
total_row.setdefault(frappe.scrub(tax + ' Rate'), 0.0)
total_row[frappe.scrub(tax + ' Rate')] += flt(item[frappe.scrub(tax + ' Rate')])
total_row[frappe.scrub(tax + ' Amount')] += flt(item[frappe.scrub(tax + ' Amount')])