Skip to content

Commit

Permalink
fix: Chart data for monthly periodicity in Cash Flow report (frappe#3…
Browse files Browse the repository at this point in the history
…1039)

fix: Chart data for monthly periodicity in Cash Flow report
(cherry picked from commit c5e922c)
  • Loading branch information
AlexandreLumertz authored and mergify[bot] committed May 25, 2022
1 parent a5bd76b commit f14e9b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erpnext/accounts/report/cash_flow/cash_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ def get_report_summary(summary_data, currency):
def get_chart_data(columns, data):
labels = [d.get("label") for d in columns[2:]]
datasets = [
{"name": account.get("account").replace("'", ""), "values": [account.get("total")]}
{
"name": account.get("account").replace("'", ""),
"values": [account.get(d.get("fieldname")) for d in columns[2:]],
}
for account in data
if account.get("parent_account") == None and account.get("currency")
]
Expand Down

0 comments on commit f14e9b7

Please sign in to comment.