fix: key error on p/l and balance sheet reports on foreign currency
This commit is contained in:
parent
19db7e2989
commit
a6794c3606
@ -28,7 +28,7 @@ def get_currency(filters):
|
|||||||
filters["presentation_currency"] if filters.get("presentation_currency") else company_currency
|
filters["presentation_currency"] if filters.get("presentation_currency") else company_currency
|
||||||
)
|
)
|
||||||
|
|
||||||
report_date = filters.get("period_end_date")
|
report_date = filters.get("to_date") or filters.get("period_end_date")
|
||||||
|
|
||||||
if not report_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"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user