fix: Error handling in loan reports
This commit is contained in:
parent
77d5f59376
commit
ab88ec208e
@ -76,7 +76,7 @@ def get_company_wise_loan_security_details(filters, loan_security_details):
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user