fix: Add unaccrued interest in interest amount for loan closure

This commit is contained in:
Deepesh Garg 2020-10-13 09:23:04 +05:30
parent a034311b1b
commit 8c13fded17

View File

@ -389,6 +389,7 @@ def calculate_amounts(against_loan, posting_date, payment_type=''):
if payment_type == 'Loan Closure':
amounts['payable_amount'] += amounts['unaccrued_interest']
amounts['interest_amount'] += amounts['unaccrued_interest']
return amounts