From c5c6f82623f608829739f141d161dafae98ac505 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Fri, 5 Jan 2018 12:16:16 +0530 Subject: [PATCH] [Hotfix] Tax rate not showing in the report (#12324) --- .../item_wise_sales_register/item_wise_sales_register.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py b/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py index 205d43fde4..ab5251f292 100644 --- a/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py +++ b/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py @@ -6,6 +6,7 @@ import frappe, erpnext from frappe import _ from frappe.utils import flt from frappe.model.meta import get_field_precision +from frappe.utils.xlsxutils import handle_html from erpnext.accounts.report.sales_register.sales_register import get_mode_of_payments def execute(filters=None): @@ -188,10 +189,10 @@ def get_tax_accounts(item_list, columns, company_currency, tuple([doctype] + invoice_item_row.keys())) for parent, description, item_wise_tax_detail, charge_type, tax_amount in tax_details: + description = handle_html(description) if description not in tax_columns and tax_amount: # as description is text editor earlier and markup can break the column convention in reports - from frappe.utils.xlsxutils import handle_html - tax_columns.append(handle_html(description)) + tax_columns.append(description) if item_wise_tax_detail: try: