On 23 Sau, 16:00, Cédric Krier <[email protected]> wrote: > Sorry but it is correct because if you get a line like this: > > Line1: unitprice=0.1260, quantity=5, subtotal=0.63 > > vat_21_base=0.63, VAT_21%=0.13 >
In this case, it is correct, because vat_21_base=0.63 and 21% of this is 0.1323, but 21% of 0.65 is not 0.13. Of course these incorrect amounts are very small, and they can be ignored. But the main purpose should be to have the correct invoice without questionable amounts. I don't want to have a customer who thinks that I don't know how to count :) > The way, we implemented, is to have the same value if we compute with 1 > or 5 lines. > > But of course, it is impossible to have an implementation that will > always work the best for every cases. > > Morevover, your example is a case that should never happen in real life. > Sure, my example is not real, but it was just the easiest way to show the problem. -- Giedrius Slavinskas UAB Inovera +370.672.41216 | [email protected] | www.inovera.lt -- [email protected] mailing list
