mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 23:22:52 +00:00
fix: dashboard fixtures and FAR chart
This commit is contained in:
@@ -92,9 +92,9 @@ def get_data(filters):
|
||||
def prepare_chart_data(data):
|
||||
labels, asset_values, depreciated_amounts = [], [], []
|
||||
for d in data:
|
||||
labels.append(d.asset_id)
|
||||
asset_values.append(d.asset_value)
|
||||
depreciated_amounts.append(d.depreciated_amount)
|
||||
labels.append(d.get("asset_id"))
|
||||
asset_values.append(d.get("asset_value"))
|
||||
depreciated_amounts.append(d.get("depreciated_amount"))
|
||||
|
||||
return {
|
||||
"data" : {
|
||||
|
||||
Reference in New Issue
Block a user