Merge pull request #7642 from frappe/revert-7641-employee-loan-fix
Revert "[Fix] Rate of Interest Fix"
This commit is contained in:
commit
98595dff0b
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user