Posted by
Jacques Le Roux on
Oct 01, 2005; 5:29pm
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Users-VAT-and-rounding-tp135121p135142.html
This thread is surely very interesting. Thank you all for your commitment.
I can't help for the moment but I believe also that Tarlika's proposition
("plug-in" archictecture as previously mentioned by Jacopo) needs to be
seriously thought about.
Jacques
PS : "thought abou"t.is that proper english ?
----- Original Message -----
From: "T E Schmitz" <
[hidden email]>
To: "OFBiz Users / Usage Discussion" <
[hidden email]>
Sent: Saturday, October 01, 2005 3:20 PM
Subject: Re: [OFBiz] Users - VAT and rounding
> David,
> I am glad you brought this topic up again although I will not be getting
> the benefit of the changes, not in the short term anyway. I need a
> solution now and I just fudged OFBiz to get a quick VAT solution.
>
> David Garrett wrote:
> > Tarlika,
> >
> > OK I agree.
> >
> > I was looking for what I thought were simple solutions. That being
sticking
> > to what I understand as the Ofbiz structure based around the net price.
>
> I do not know OFBiz all that well - we are in the process of setting up
> our first OFBiz site. But it might not be as difficult as you think to
> switch to a gross price logic. The price is just what is stored - the
> interpretation is in the algorithm. I only changed very few sources for
> my fudge.
> To get a clean solution, Jacopo suggested to implement the various
> calculations as a service. David will be the best one to identify the
> location of all these calculations.
>
> The greatest difficulty to me seems though changing the data types. It
> is a major flaw that floating point arithmetic is being used for the
> calculations. Changing the data types throughout will be a major act I
> presume.
>
> From what little I know about that corner of OFBiz, I think that the
> tax calculation must be separated from the orderAdjustments.
>
> > I am still thinking my best short-term solution may be to work with high
> > precision net prices.
>
> When I fiddled with the tax, I quickly gave up on the idea of precision
> because of the use of float and because tax is intertwined with the
> other orderAdjustments.
>
> > Tarlika, have you implemented a VAT solution that I may be able to use
as a
> > model for my required implementation?
>
> As I said above, I just amended a few sources; our system is not
> completely finished but I believe that I have addressed everything I
> needed for VAT - hopefully. It really is just a fiddle - just something
> quick. Of course, I'll be happy to let you know what I've done. I can go
> through my amendments on Monday.
>
> --
>
>
> Regards/Gruß,
>
> Tarlika Elisabeth Schmitz
>
> _______________________________________________
> Users mailing list
>
[hidden email]
>
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users