commit | ab88ec208e7a453bfa9cf655fe2762c447ece8ef | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Sun Jan 31 12:31:46 2021 +0530 |
committer | Deepesh Garg <deepeshgarg6@gmail.com> | Sun Jan 31 12:31:46 2021 +0530 |
tree | 8577bad9d9ec0f24b0797c2a9cb48a72eff6ca39 | |
parent | 77d5f593767bccc064dc853bf6a6e0ebcda891ca [diff] |
fix: Error handling in loan reports
diff --git a/erpnext/loan_management/report/loan_security_exposure/loan_security_exposure.py b/erpnext/loan_management/report/loan_security_exposure/loan_security_exposure.py index adc8013..8b6ea86 100644 --- a/erpnext/loan_management/report/loan_security_exposure/loan_security_exposure.py +++ b/erpnext/loan_management/report/loan_security_exposure/loan_security_exposure.py
@@ -76,7 +76,7 @@ if qty: security_wise_map[key[1]]['applicant_count'] += 1 - total_portfolio_value += flt(qty * loan_security_details.get(key[1])['latest_price']) + total_portfolio_value += flt(qty * loan_security_details.get(key[1], {}).get('latest_price', 0)) return security_wise_map, total_portfolio_value