99.99 are nice prices ;)
But seriously, we use decimal numbers where we can, but it's possible to
get rounding errors, anyway you probably will have to rewrite
calculation BUT, there's good news, it shouldn't be to hard.
First of all price of item stored is _assumed_ to be price netto, and
adjustment are calculated upon that, what you can do, is just ignore vat
charge when calculating order total.
Order.class_eval do
def charge_total
charges.reload.reject{|c| c.secondary_type == "TaxCharge"}.total
end
end
second thing to do is to change vat calcuator to treat prices as brutto
not netto (as it's assumed right now), here's the pastie, you actually
just need to change 3 lines, but they are inside different methods, so
whole file is here(we probably should abstract it out):
I don't guarantee it'll work flawlessly
Good luck
--
Marcin Raczkowski
---------------------------------------
Rails Dog LLC
5335 Wisconsin Avenue NW
Suite 440
Washington, DC 20015
voice: (301)560-2000
---------------------------------------