Merge pull request #22005 from scmmishra/fix-dashboard

fix: set fiscal year for Profit and Loss chart
This commit is contained in:
Deepesh Garg
2020-05-28 15:10:27 +05:30
committed by GitHub

View File

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