Merge pull request #7642 from frappe/revert-7641-employee-loan-fix

Revert "[Fix] Rate of Interest Fix"
This commit is contained in:
KanchanChauhan 2017-02-01 18:17:18 +05:30 committed by GitHub
commit 98595dff0b

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 * monthly_repayment_amount = math.ceil((loan_amount * monthly_interest_rate *
(1 + monthly_interest_rate)**repayment_periods) \ (1 + monthly_interest_rate)**repayment_periods) \
/ ((1 + monthly_interest_rate)**repayment_periods - 1)) / ((1 + monthly_interest_rate)**repayment_periods - 1))
else: else:
monthly_repayment_amount = math.ceil(flt(loan_amount) / repayment_periods) monthly_repayment_amount = math.ceil(flt(loan_amount) / repayment_periods)
return monthly_repayment_amount return monthly_repayment_amount
@frappe.whitelist() @frappe.whitelist()