Merge pull request #6900 from rohitwaghchaure/account_receivable_summary_report_issue

[Report] Company not found in the filter for making auto email report
This commit is contained in:
Nabin Hait 2016-11-14 12:00:48 +05:30 committed by GitHub
commit f98835036b

View File

@ -88,6 +88,9 @@ class ReceivablePayableReport(object):
future_vouchers = self.get_entries_after(self.filters.report_date, args.get("party_type"))
if not self.filters.get("company"):
self.filters["company"] = frappe.db.get_single_value('Global Defaults', 'default_company')
company_currency = frappe.db.get_value("Company", self.filters.get("company"), "default_currency")
data = []