mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-15 08:17:15 +00:00
fix: 'ForecastingReport' object has no attribute 'total_demand'
This commit is contained in:
@@ -217,6 +217,8 @@ class ForecastingReport(ExponentialSmoothingForecast):
|
||||
}
|
||||
|
||||
def get_summary_data(self):
|
||||
if not self.data: return
|
||||
|
||||
return [
|
||||
{
|
||||
"value": sum(self.total_demand),
|
||||
|
||||
Reference in New Issue
Block a user