fix: set fiscal year for Profit and Loss chart (#22006)

(cherry picked from commit 4afda7601574a93e9232d06341556dbcf0f142ab)

Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
This commit is contained in:
mergify[bot] 2020-05-28 15:18:47 +05:30 committed by GitHub
parent 6621e22c02
commit fd351f8268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,9 +60,9 @@ def get_charts():
"report_name": "Profit and Loss Statement",
"filters_json": json.dumps({
"company": company.name,
"filter_based_on": "Date Range",
"period_start_date": get_date_str(fiscal_year[1]),
"period_end_date": get_date_str(fiscal_year[2]),
"filter_based_on": "Fiscal Year",
"from_fiscal_year": fiscal_year[0],
"to_fiscal_year": fiscal_year[0],
"periodicity": "Monthly",
"include_default_book_entries": 1
}),