fix: not able to export accounts receivable summary report in excel (#19099)

This commit is contained in:
rohitwaghchaure
2019-09-18 20:03:30 +05:30
committed by Anurag Mishra
parent a9a7e84873
commit 80973bb8de

View File

@@ -40,7 +40,8 @@ class AccountsReceivableSummary(ReceivablePayableReport):
row.party = party
if self.party_naming_by == "Naming Series":
row.party_name = frappe.get_cached_value(self.party_type, party, [self.party_type + "_name"])
row.party_name = frappe.get_cached_value(self.party_type,
party, frappe.scrub(self.party_type) + "_name")
row.update(party_dict)