Hi Kim I understand the part about creating the custom properties file. What I am not clear on is what are the possible properties/values that can be set in that file.
For e.g. before I changed the following properties to get a certain rounding result (no decimal displayed, .50 and up rounds up, less than .50 rounds down): AccountingRules.RoundingRule=CEILING AccountingRules.DigitsAfterDecimal=0 AccountingRules.AmountToBeRoundedTo=1 I know it picked up my properties file because I had added Sunday as a working day, which in the default one is not listed. And this worked before, when the default properties file did not have the following (the latest version of the default properties file I see some other properties like): AccountingRules.CurrencyCode=INR AccountingRules.DigitsAfterDecimal=1 AccountingRules.DigitsBeforeDecimal=7 AccountingRules.DigitsAfterDecimalForInterest=5 AccountingRules.DigitsBeforeDecimalForInterest=10 AccountingRules.MaxInterest=999 AccountingRules.MinInterest=0 When I created a custom properties file and added the following additions to it, it is not rounding properly now AccountingRules.RoundingRule=CEILING AccountingRules.DigitsAfterDecimal=0 AccountingRules.AmountToBeRoundedTo=1 So my question is what are the properties that I need to define in my custom properties file in order to affect rounding? Also, what are the different values accepted, for e.g. FiscalCalendarRules.ScheduleTypeForMeetingOnHoliday=same_day Other than same_day what else can I set? Hope this clarifies it. >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On >Behalf Of Kimloan Ho >Sent: Thursday, January 24, 2008 2:47 AM >To: Developer >Subject: SPAM-LOW: Re: [Mifos-developer] Rounding Rules Questions > >Hi Soham, >The default properties file is for common Mifos users. >You need to create the custom properties file and for your own >setting. New entries are added but there is no changes to the >old entries at all. I think there needs to be a code change >for Mifos to work as you expect and the properties file set up >is not sufficient. But does it behave the same way as last >time or different? Thank you. > >kim >--- Soham Dhakal <[EMAIL PROTECTED]> wrote: > >> I checked out the latest default.properties and see the following >> lines >> >> AccountingRules.CurrencyCode=INR >> AccountingRules.DigitsAfterDecimal=1 >> AccountingRules.DigitsBeforeDecimal=7 >> AccountingRules.DigitsAfterDecimalForInterest=5 >> AccountingRules.DigitsBeforeDecimalForInterest=10 >> AccountingRules.MaxInterest=999 >> AccountingRules.MinInterest=0 >> >> However based on previous conversation I was expecting to see >> something like >> >> AccountingRules.RoundingRule=CEILING >> AccountingRules.DigitsAfterDecimal=0 >> AccountingRules.AmountToBeRoundedTo=1 >> >> >> Has something changed? Now when I created a custom.properties (and >> added to the resource) added the above lines it does not round as I >> would expect. >> >> >> >> >-----Original Message----- >> >From: [EMAIL PROTECTED] >> >> >>[mailto:[EMAIL PROTECTED] >> On >> >Behalf Of Adam Monsen >> >Sent: Thursday, January 17, 2008 2:04 AM >> >To: Mifos Developer Mailing List >> >Subject: SPAM-LOW: Re: [Mifos-developer] Rounding >> Rules Questions >> > >> >On Wed, 2008-01-16 at 11:56 -0800, Kimloan Ho >> wrote: >> >> Hi Soham, >> >> I would like to correct the error I made when I >> sent you the file, >> >> which is the application.default.properties >> should never be changed >> >> and if you want to set new values you should do >> it in the >> >> application.custom.properties. Thank you, Van and >> Adam, for >> >reminding >> >> me of this. Sorry about that, Soham. >> >> So depends on what revision of the source code >> you have you >> >should get >> >> the application.default.properties that goes with >> it and you >> >can make >> >> a copy of it, rename it to >> application.custom.properties and >> >put your >> >> new values in. We will look into what you report >> and see why that >> >> happens. Thank you. >> > >> >Just wanted to make a clarification... >> > >> >The application-wide configuration file is called >> >applicationConfiguration.default.properties. The >> copy for >> >custom settings should be called >> >applicationConfiguration.custom.properties. >> >applicationConfiguration.custom.properties need >> only contain >> >the particular key/value pairs you wish to override >> in the >> >default config. >> > >> >I believe >> applicationConfiguration.custom.properties can be >> >placed anywhere in your classpath. If you normally >> build from >> >source, placing this file in the same directory as >> >applicationConfiguration.default.properties will >> cause the >> >built war to include the file, which works. >> > >> >However, a better option (for Tomcat users) is >> simply to place >> >the file in CATALINA_HOME/shared/classes/. I >> haven't tried >> >this but it should work (Soham or Kim, would you >> mind trying >> >this?). I'm not sure where it should be placed for >> other >> >application servers. >> > >> >-- >> >Adam Monsen >> > >> > >> >>--------------------------------------------------------------- >> >---------- >> >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/ >> >> >> >--------------------------------------------------------------- >---------- >> 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/ >> > > > > >_______________________________________________________________ >_____________________ >Never miss a thing. Make Yahoo your home page. >http://www.yahoo.com/r/hs > >--------------------------------------------------------------- >---------- >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/ ------------------------------------------------------------------------- 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/
