fix: Chart data for monthly periodicity in Cash Flow report (#31039)
fix: Chart data for monthly periodicity in Cash Flow report
This commit is contained in:
parent
efa5b5b3db
commit
c5e922c76b
@ -262,7 +262,10 @@ def get_report_summary(summary_data, currency):
|
|||||||
def get_chart_data(columns, data):
|
def get_chart_data(columns, data):
|
||||||
labels = [d.get("label") for d in columns[2:]]
|
labels = [d.get("label") for d in columns[2:]]
|
||||||
datasets = [
|
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
|
for account in data
|
||||||
if account.get("parent_account") == None and account.get("currency")
|
if account.get("parent_account") == None and account.get("currency")
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user