From 80973bb8de651adb105597d10b15d13e356cb8c2 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Wed, 18 Sep 2019 20:03:30 +0530 Subject: [PATCH] fix: not able to export accounts receivable summary report in excel (#19099) --- .../accounts_receivable_summary/accounts_receivable_summary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.py b/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.py index 350e0819577..86f001cba4e 100644 --- a/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.py +++ b/erpnext/accounts/report/accounts_receivable_summary/accounts_receivable_summary.py @@ -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)