From 627d0d58be9680ad4211c3761141877c938f5a46 Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Wed, 18 Jul 2018 18:09:28 +0530 Subject: [PATCH] [fiscal-year] use to_date property --- erpnext/accounts/report/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/utils.py b/erpnext/accounts/report/utils.py index 0fe80e85f6b..d1995d2b7a2 100644 --- a/erpnext/accounts/report/utils.py +++ b/erpnext/accounts/report/utils.py @@ -31,7 +31,7 @@ def get_currency(filters): report_date = filters.get('to_date') if not report_date: - fiscal_year_to_date = get_from_and_to_date(filters.get('to_fiscal_year')).to_date + fiscal_year_to_date = get_from_and_to_date(filters.get('to_fiscal_year'))["to_date"] report_date = formatdate(get_datetime_str(fiscal_year_to_date), "dd-MM-yyyy") currency_map = dict(company=company, company_currency=company_currency, presentation_currency=presentation_currency, report_date=report_date)