Skip to content

Commit

Permalink
Merge pull request #33114 from frappe/mergify/bp/version-13-hotfix/pr…
Browse files Browse the repository at this point in the history
…-33111

fix: Loan disbursable amount on current security price (backport #33111)
  • Loading branch information
deepeshgarg007 authored Nov 27, 2022
2 parents 4492ee4 + eca2d96 commit d76e291
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ def get_total_pledged_security_value(loan):

for security, qty in pledged_securities.items():
after_haircut_percentage = 100 - hair_cut_map.get(security)
security_value += (loan_security_price_map.get(security) * qty * after_haircut_percentage) / 100
security_value += (
loan_security_price_map.get(security, 0) * qty * after_haircut_percentage
) / 100

return security_value

Expand Down

0 comments on commit d76e291

Please sign in to comment.