Browse Source

fix: Book unaccrued interest check

develop
Deepesh Garg 3 years ago
parent
commit
c572a4cb88
  1. 2
      erpnext/loan_management/doctype/loan_repayment/loan_repayment.py

2
erpnext/loan_management/doctype/loan_repayment/loan_repayment.py

@ -93,7 +93,7 @@ class LoanRepayment(AccountsController):
def book_unaccrued_interest(self):
precision = cint(frappe.db.get_default("currency_precision")) or 2
if self.total_interest_paid > self.interest_payable:
if flt(self.total_interest_paid, precision) > flt(self.interest_payable, precision):
if not self.is_term_loan:
# get last loan interest accrual date
last_accrual_date = get_last_accrual_date(self.against_loan)

Loading…
Cancel
Save