Posted by
Jacopo Cappellato on
URL: http://ofbiz.116.s1.nabble.com/Users-tax-functionality-tp138468p138471.html
David,
thanks for your comments: I'll study how the "calcTax" service actually
works.
However, since taxes are calculated in the order, I think that many of
the approx problems could happen when the order is shipped/invoiced with
more than one shipments.
For example, how an order header adjustment is splitted up when the
order is invoiced in two invoices?
Jacopo
David E. Jones wrote:
>
> Jacopo Cappellato wrote:
>> 3) in this way there could be approx errors (a sales tax amount
>> calculated as a percentage of an invoice total could be slightly
>> different from a sales tax amount calculated as the sum of the sales tax
>> amounts of each item); to solve this, in the createInvoiceForOrder
>> service, we could create an offsetting adjustment to fix the approx errors.
>
> There is stuff in place to avoid this right now. Tax adjustments for each line item are calculated to 3 decimal places, then added up, then rounded to 2 places for the tax total. Doing it this way is required in certain countries, like the UK.
>
> It doesn't totally eliminate any difference there might be, especially for a large number of order/invoice items, but it is closer.
>
> -David
>
>
> _______________________________________________
> Users mailing list
>
[hidden email]
>
http://lists.ofbiz.org/mailman/listinfo/users>
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users