fix: forecasting chart is breaking if no data
(cherry picked from commit b344f412c9cf84fff35284b396788160e9852e31)
This commit is contained in:
parent
52bc66dc3d
commit
78dc0f6af6
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user