[Report] Company not found in the filter for making auto email report

This commit is contained in:
Rohit Waghchaure 2016-11-10 19:13:20 +05:30
parent 176577b549
commit 387c2846aa

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 = []