|
|
@ -107,12 +107,13 @@ class LoanRepayment(AccountsController): |
|
|
|
lia = frappe.db.get_value('Loan Interest Accrual', {'process_loan_interest_accrual': |
|
|
|
process}, ['name', 'interest_amount', 'payable_principal_amount'], as_dict=1) |
|
|
|
|
|
|
|
self.append('repayment_details', { |
|
|
|
'loan_interest_accrual': lia.name, |
|
|
|
'paid_interest_amount': flt(self.total_interest_paid - self.interest_payable, precision), |
|
|
|
'paid_principal_amount': 0.0, |
|
|
|
'accrual_type': 'Repayment' |
|
|
|
}) |
|
|
|
if lia: |
|
|
|
self.append('repayment_details', { |
|
|
|
'loan_interest_accrual': lia.name, |
|
|
|
'paid_interest_amount': flt(self.total_interest_paid - self.interest_payable, precision), |
|
|
|
'paid_principal_amount': 0.0, |
|
|
|
'accrual_type': 'Repayment' |
|
|
|
}) |
|
|
|
|
|
|
|
def update_paid_amount(self): |
|
|
|
loan = frappe.get_doc("Loan", self.against_loan) |
|
|
|