Problem with calculating principal of last Installment when creating new loan account with Equal Principal Installment interest rate type

Description

Problem with calculating principal of last Installment when creating new loan account with Equal Principal Installment interest rate type. In Organizational Settings Final Rounding Mode is CEILING.

Repro:

  1. Create new loan product applicable for Clients with frequency of installments set as weeks and with interest rate type : Declining Balance - Equal Principal Installment and Submit

  2. Choose client with weekly period of meeting and create loan account

  3. Amount: 15000, interest rate: 25, number of installments: 21. Click on "Continue" button

Actual Result:
Final Installment is not rounded as it is set in Organizational Settings. It is FLOOR and should be CEILING, see attached file sc1.png. Also on some cases such as: Amount 15000, interest rate: 25, number of installments: 17, there is problem with general calculations, see attached file sc2.png

Expected Result:
Final Installment is rounded as it is set in Organizational Settings.

Environment

None

Assignee

Unassigned

Reporter

Łukasz Babski

Labels

None

URL

None

Story Points

None

Team

Core

Scheduled For

None

Epic

None

Notify

None

productboard URL

None

Man Day Estimate

None

Components

Fix versions

Priority

Major
Configure