commit | 6debdc89c287e713c3f171b3eeae96f824a7d60e | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Mon Jun 08 10:30:19 2020 +0530 |
committer | GitHub <noreply@github.com> | Mon Jun 08 10:30:19 2020 +0530 |
tree | 8e21932d5bd51e2d2204c695d04352c136346dbf | |
parent | 63e839138173c80fb2eabc75c7a4fe0f17c090f0 [diff] | |
parent | 5a82276389851d0ecf701d2219c8d10d0fe15433 [diff] |
Merge pull request #22121 from rohitwaghchaure/error-report-exponential-smoothing-report 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),