commit | 3a2933db4d12766d3183893ba2edc9cb5faca527 | [log] [tgz] |
---|---|---|
author | ViralKansodiya <141210323+viralkansodiya@users.noreply.github.com> | Mon Aug 28 18:14:52 2023 +0530 |
committer | GitHub <noreply@github.com> | Mon Aug 28 18:14:52 2023 +0530 |
tree | 41c31a46bb1888fef616c13879e14c6391508555 | |
parent | eb5c61be1e7e2ba2cab7d5ca632867c433364cb8 [diff] |
fix: error in report when data is not available to load chart in report (#36842)
diff --git a/erpnext/assets/report/fixed_asset_register/fixed_asset_register.py b/erpnext/assets/report/fixed_asset_register/fixed_asset_register.py index bf62a8f..383be97 100644 --- a/erpnext/assets/report/fixed_asset_register/fixed_asset_register.py +++ b/erpnext/assets/report/fixed_asset_register/fixed_asset_register.py
@@ -156,6 +156,8 @@ def prepare_chart_data(data, filters): + if not data: + return labels_values_map = {} if filters.filter_based_on not in ("Date Range", "Fiscal Year"): filters_filter_based_on = "Date Range"