fix: key error while filtering on date range and different currency

This commit is contained in:
ruthra kumar 2022-12-01 13:38:41 +05:30
parent 2e2590b224
commit 9b8d6fe411

View File

@ -28,7 +28,7 @@ def get_currency(filters):
filters["presentation_currency"] if filters.get("presentation_currency") else company_currency
)
report_date = filters.get("to_date")
report_date = filters.get("period_end_date")
if not report_date:
fiscal_year_to_date = get_from_and_to_date(filters.get("to_fiscal_year"))["to_date"]