mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 01:34:10 +00:00
fix(balance sheet): removed the extra labels from the chart
(cherry picked from commit a64b5f2c5d)
This commit is contained in:
@@ -232,11 +232,11 @@ def get_report_summary(
|
|||||||
|
|
||||||
|
|
||||||
def get_chart_data(filters, columns, asset, liability, equity, currency):
|
def get_chart_data(filters, columns, asset, liability, equity, currency):
|
||||||
labels = [d.get("label") for d in columns[2:]]
|
labels = [d.get("label") for d in columns[4:]]
|
||||||
|
|
||||||
asset_data, liability_data, equity_data = [], [], []
|
asset_data, liability_data, equity_data = [], [], []
|
||||||
|
|
||||||
for p in columns[2:]:
|
for p in columns[4:]:
|
||||||
if asset:
|
if asset:
|
||||||
asset_data.append(asset[-2].get(p.get("fieldname")))
|
asset_data.append(asset[-2].get(p.get("fieldname")))
|
||||||
if liability:
|
if liability:
|
||||||
|
|||||||
Reference in New Issue
Block a user