Merge pull request #7641 from KanchanChauhan/employee-loan-fix

[Fix] Rate of Interest Fix
This commit is contained in:
KanchanChauhan 2017-02-01 18:06:32 +05:30 committed by GitHub
commit 929c3890a4

View File

@ -117,8 +117,8 @@ def get_monthly_repayment_amount(repayment_method, loan_amount, rate_of_interest
monthly_repayment_amount = math.ceil((loan_amount * monthly_interest_rate *
(1 + monthly_interest_rate)**repayment_periods) \
/ ((1 + monthly_interest_rate)**repayment_periods - 1))
else:
monthly_repayment_amount = math.ceil(flt(loan_amount) / repayment_periods)
else:
monthly_repayment_amount = math.ceil(flt(loan_amount) / repayment_periods)
return monthly_repayment_amount
@frappe.whitelist()