The last installment repayment amount of loan account is always ceiling problem.

Description

In some loan accounts of my customers, the last installment repayment amount is decimal, and it's the expected amount. But in the "Transaction history" page of these accounts, the last installment amount is always ceiling. I check the MySQL DB, the "posted_amount" field of "financial_trxn" table is also the wrong amount number. So I don't know why these things happened.

I also checked the last mifos version, 2.6.1, and it's still the same error.

The accounting part of my config file is:
AccountingRules.DigitsAfterDecimal=2
AccountingRules.DigitsAfterDecimalForInterest=5
AccountingRules.DigitsAfterDecimalForCashFlowValidations=2
...
AccountingRules.CurrencyRoundingMode=HALF_UP
AccountingRules.InitialRoundingMode=HALF_UP
AccountingRules.InitialRoundOffMultiple=0.01
AccountingRules.FinalRoundingMode=HALF_UP
AccountingRules.FinalRoundOffMultiple=0.01

I taked two sceenshots, one is the right repayment schedule, the other one is the "Transaction history" page which include the wrong number.

Environment

environment for mifos 2.1.4: ubuntu 10.1, tomcat 6, mysql 5.1
environment for mifos 2.6.1: ubuntu 10.1, jetty 7, mysql 5.1

Attachments

Assignee

Łukasz Gąsior

Reporter

Emory Wang

Labels

None

URL

None

Story Points

None

Team

Core

Scheduled For

None

Epic

None

Notify

None

productboard URL

None

Man Day Estimate

None

Time tracking

16h

Affects versions

Priority

Critical
Configure