1
0
forked from test/crm

fix: forecasting chart is breaking if no data

(cherry picked from commit b344f412c9cf84fff35284b396788160e9852e31)
This commit is contained in:
Shariq Ansari 2025-07-15 13:21:46 +05:30 committed by Mergify
parent 52bc66dc3d
commit 78dc0f6af6

View File

@ -649,8 +649,6 @@ def get_forecasted_revenue(from_date="", to_date="", user=""):
""",
as_dict=True,
)
if not result:
return []
for row in result:
row["month"] = frappe.utils.get_datetime(row["month"]).strftime("%Y-%m-01")