commit | 5a82276389851d0ecf701d2219c8d10d0fe15433 | [log] [tgz] |
---|---|---|
author | Rohit Waghchaure <rohitw1991@gmail.com> | Fri Jun 05 13:56:20 2020 +0530 |
committer | Rohit Waghchaure <rohitw1991@gmail.com> | Fri Jun 05 13:56:20 2020 +0530 |
tree | 125787efe67a7e073f5e0d2234646019906998c9 | |
parent | 7a05662e9fb1157e2b25ff8f6dbc2bc41fc64f60 [diff] |
fix: 'ForecastingReport' object has no attribute 'total_demand'
diff --git a/erpnext/manufacturing/report/exponential_smoothing_forecasting/exponential_smoothing_forecasting.py b/erpnext/manufacturing/report/exponential_smoothing_forecasting/exponential_smoothing_forecasting.py index cac8067..2ca9f16 100644 --- a/erpnext/manufacturing/report/exponential_smoothing_forecasting/exponential_smoothing_forecasting.py +++ b/erpnext/manufacturing/report/exponential_smoothing_forecasting/exponential_smoothing_forecasting.py
@@ -217,6 +217,8 @@ } def get_summary_data(self): + if not self.data: return + return [ { "value": sum(self.total_demand),