Skip to content

Commit

Permalink
fix: set fiscal year for Profit and Loss chart (#22006)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4afda76)

Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
  • Loading branch information
mergify[bot] and scmmishra committed May 28, 2020
1 parent 6621e22 commit fd351f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions erpnext/accounts/dashboard_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}),
Expand Down

0 comments on commit fd351f8

Please sign in to comment.