fix: Do not round off per day interest

This commit is contained in:
Deepesh Garg 2021-02-15 15:54:25 +05:30
parent 429fb3bba8
commit 535dc4aea2

View File

@ -246,7 +246,5 @@ def get_per_day_interest(principal_amount, rate_of_interest, posting_date=None):
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))