commit | 535dc4aea2865a76d0564de7322504383d44f61f | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Mon Feb 15 15:54:25 2021 +0530 |
committer | Deepesh Garg <deepeshgarg6@gmail.com> | Mon Feb 15 15:54:25 2021 +0530 |
tree | 4c644b0bcdca1483851c34cd29ebf7d0902a46a5 | |
parent | 429fb3bba89720799940776e7e2761e1db79d60f [diff] |
fix: Do not round off per day interest
diff --git a/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py b/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py index 7d7992d..7978350 100644 --- a/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py +++ b/erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py
@@ -246,7 +246,5 @@ if not posting_date: posting_date = getdate() - precision = cint(frappe.db.get_default("currency_precision")) or 2 - - return flt((principal_amount * rate_of_interest) / (days_in_year(get_datetime(posting_date).year) * 100), precision) + return flt((principal_amount * rate_of_interest) / (days_in_year(get_datetime(posting_date).year) * 100))