Hi Kim,
I tried this and I still get 1 digit after decimal, and I don't want to show
any decimal values (they need to be rounded)
Here are my settings
AccountingRules.RoundingRule=CEILING
AccountingRules.DigitsAfterDecimal=0
AccountingRules.AmountToBeRoundedTo=1
--And here is the contents of variable for one installment, does this look
correct? I can send more details if you need them
installment EMIInstallment (id=170)
interest Money (id=182)
amount BigDecimal (id=184)
intCompact 962
intVal null
precision 0
scale 1
stringCache null
currency MifosCurrency (id=131)
createdBy null
createdDate null
currencyCode "INR"
currencyId Short (id=152)
currencyName "RUPEE"
defaultCurrency Short (id=156)
defaultDigitsAfterDecimal Short (id=138)
value 1
displaySymbol "Rs"
roundingAmount Float (id=142)
value 1.0
roundingMode Short (id=146)
value 1
updatedBy null
updatedDate null
versionNo null
principal Money (id=173)
amount BigDecimal (id=174)
intCompact 0
intVal null
precision 0
scale 1
stringCache null
currency MifosCurrency (id=131)
Thanks
Soham
> -----Original Message-----
> From: Kimloan Ho [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 28, 2007 6:06 AM
> To: Developer; [EMAIL PROTECTED]
> Subject: SPAM-LOW: Re: [Mifos-developer] Rounding Rules Questions
>
> Hi Soham,
> I've talked to Van and we would like you to try these
> config:
>
> AccountingRules.RoundingRule=CEILING
> AccountingRules.DigitsAfterDecimal=0
> AccountingRules.AmountToBeRoundedTo=1
>
>
> You can copy these to the
> applicationConfiguration.default.properties. Please let us
> know if this is what you want. If not please give us the
> numbers you use and how it's different from what you expect.
> Thank you.
>
> kim
>
>
> --- Soham Dhakal <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
> >
> > Background : I am implementing the funcitonality for Equal
> Principal
> > Payments
> >
> <http://www.mifos.org/developers/wiki/DecliningBalanceInterest
> CalculationWit
> > hEqualPrincipalInstallment>
> >
> > I implemented code to divide the Principal into equal installments,
> > and calculate interest. However there is a function in
> > LoanBO->applyRounding
> > which is adding some amount to the principal. For e.g. I had 15,000
> > pricipal and 24 installments with 2 weeks as frequency and for the
> > first payment the principal should be (15000/24)=625, and
> the interest
> > should be 144.23.
> > But after going through applyRounding it comes to
> > 625.8 and 144.2
> > Thus I looked at the rounding specs and configuration and have the
> > following
> > questions:
> >
> > 1. I want to set up rounding rule as such, less than *.49 rounds
> > down, and greater than *.50 rounds up, and I don't want to
> display any
> > digits after the decimal. What do I set the fields in the currency
> > table to define this?
> > My currency is Rs.
> >
> > 2. From
> >
> http://www.mifos.org/knowledge/functional-specs/accounting-in-
> mifos#currency
> > -and-rounding-rules mentions that
> >
> > "The system should adjust the last installment (increase or
> decrease)
> > for loan accounts to account for the amount change due to rounding.
> > Example, if the actual repayment due = 181.95 and after rounding it
> > becomes= 181, system should add the 0.95 to the last
> installment due."
> >
> > Does this mean only the LAST installment should be
> adjusted? Because
> > it looks like each installment was being adjusted (now this
> could be
> > because I did not know how to set the rounding configuration
> > properly)..
> >
> > 3. Other than the functional specs, is there documentations
> on how to
> > configure this or what the values mean? (I understand that
> there is a
> > new and improved configuration process coming out of
> > 1.1)
> >
> >
> > Thanks and Regards
> > Soham
> >
> >
> >
> --------------------------------------------------------------
> -----------
> > SF.Net email is sponsored by:
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services
> > for just about anything Open Source.
> >
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.n
et/marketplace
> >
>
>
>
>
> ______________________________________________________________
> ______________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
> http://tools.search.yahoo.com/newsearch/category.php?category=
shopping
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/