fix: forecasting chart is breaking if no data
This commit is contained in:
parent
c8f01f08ed
commit
b344f412c9
@ -649,8 +649,6 @@ def get_forecasted_revenue(from_date="", to_date="", user=""):
|
|||||||
""",
|
""",
|
||||||
as_dict=True,
|
as_dict=True,
|
||||||
)
|
)
|
||||||
if not result:
|
|
||||||
return []
|
|
||||||
|
|
||||||
for row in result:
|
for row in result:
|
||||||
row["month"] = frappe.utils.get_datetime(row["month"]).strftime("%Y-%m-01")
|
row["month"] = frappe.utils.get_datetime(row["month"]).strftime("%Y-%m-01")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user