fix: forecasting chart is breaking if no data

This commit is contained in:
Shariq Ansari 2025-07-15 13:21:46 +05:30
parent c8f01f08ed
commit b344f412c9

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")