On Sun, Jun 8, 2008 at 5:05 AM, herman vierendeels <[EMAIL PROTECTED]> wrote: > I am following LedgerSmb because my son runs a (very) small firm > which uses this open-source software. > I have already contributed some very tiny,minor patches. > (Submitter username tshvr) > > I was going to spend some time on the > rounding-rules in LedgerSmb. > > I believe that for the moment these rules are hardcoded. > And spread out about a dozen source files. > Or they are derived from the number of decimal places in another number.
Form::round_amount() is the place to start. However, to track decimal places, maybe, look at Form::parse_amount(). This might be the most elegant place to start a patch. Basically the issue is that we use Math::Bigfloat types for handling high precision numbers. We would need to store a precision somewhere there for extra precision decimal places. > > I would like to integrate these rules in db-tables. > So that one can have different rounding-rules per account/customer/vendor. I would want to see a proposal for why this would be necessary and the best way to do it. Per currency or per country rules sound better. > > I join this observation to this thread because it's about > contributing developer's time, developer's plans. Thanks, it is appreciated. Best Wishes, Chris Travers > > Herman Vierendeels > Ternat > > > > > > 2008/6/6 Joshua D. Drake <[EMAIL PROTECTED]>: >> >> Chris Travers wrote: >> > On Thu, Jun 5, 2008 at 7:48 AM, Ed W <[EMAIL PROTECTED]> wrote: >> >> Jeff Kowalczyk wrote: >> >>> On Thu, 05 Jun 2008 08:01:05 +0100, Ed W wrote: >> >> >> Seconded - although it seems fairly likely that if we can just see a >> >> few >> >> serious sponsors then we can assume that 1.3 is achievable and >> >> development will start on 1.4? >> >> >> >> Are you prepared to put a rough figure down at this stage? >> >> >> > >> > One thing I would suggest is that 1.3 is not likely to be accellerated >> > due to more money at the moment. We are already working at maximum >> > capacity to get it ready. Once we get that branched off, though, help >> >> Actually, CMD has one more developer with cycles that we can put on >> this. I was actually hoping to utilize him for UI cleanups but haven't >> had the time to start talking to people about the sponsorships. He is >> John Worsley and he is the co-author of the Oreilly PostgreSQL book. >> >> Sincerely, >> >> Joshua D. Drake >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> Ledger-smb-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Ledger-smb-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel > > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Ledger-smb-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel
