mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
fix: Book unaccrued interest check
(cherry picked from commit c572a4cb88)
This commit is contained in:
committed by
mergify-bot
parent
3c803c46d3
commit
b616443809
@@ -94,7 +94,7 @@ class LoanRepayment(AccountsController):
|
|||||||
|
|
||||||
def book_unaccrued_interest(self):
|
def book_unaccrued_interest(self):
|
||||||
precision = cint(frappe.db.get_default("currency_precision")) or 2
|
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:
|
if not self.is_term_loan:
|
||||||
# get last loan interest accrual date
|
# get last loan interest accrual date
|
||||||
last_accrual_date = get_last_accrual_date(self.against_loan)
|
last_accrual_date = get_last_accrual_date(self.against_loan)
|
||||||
|
|||||||
Reference in New Issue
Block a user