Skip to content

Commit

Permalink
fix: Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 authored Mar 21, 2022
1 parent 8c76a76 commit 1b2c6a5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,6 @@ def calculate_amounts(against_loan, posting_date, payment_type=''):
if payment_type == 'Loan Closure':
amounts['payable_principal_amount'] = amounts['pending_principal_amount']
amounts['interest_amount'] += amounts['unaccrued_interest']
amounts['payable_amount'] = amounts['payable_principal_amount'] + amounts['interest_amount']
amounts['payable_amount'] += amounts['penalty_amount']
amounts['payable_amount'] = amounts['payable_principal_amount'] + amounts['interest_amount'] + amounts['penalty_amount']

return amounts

0 comments on commit 1b2c6a5

Please sign in to comment.