Invoice with "nested" taxation.

Fabio Coatti fabio.coatti at gmail.com
Sat Feb 11 15:14:40 EST 2017


In fact, that was my thought, but something did not add up correctly... then,  
I deleted all tax tables and restarted from scratch, and the numbers are now 
ok. I'm pretty much baffled, the only thing I can think of is that I used the 
wrong table. Anyway, now it is ok; many thanks!

In data sabato 11 febbraio 2017 20:11:49 CET, Derek Atkins ha scritto:
> Hi,
> 
> On Sat, February 11, 2017 1:43 pm, Fred Bone wrote:
> > On 11 February 2017 at 17:53, Fabio Coatti said:
> [snip]
> 
> >> Then, when describing the taxes, the printout should be something like
> >> this: TaxOne: C = 4%A+4%B (so far so good, no problems) TaxTwo: D =
> >> 22%A+22%B+22%C (ouch! it needs the value C) TaxThree: E = -(20%A+20%B)
> >> (ok, no problem also here)
> 
> So why can't you define:
> 
> D = 0.22A + 0.22B + 0.22(0.04A + 0.04B)
>   = 0.22A + 0.22B + 0.0088A + 0.0088B
>   = 0.2288A + 0.2288B
> 
> Voila!
> 
> [snip]
> 
> >> Is there a way to accomplish the computation and print the layout shown
> >> above? If not, I can try to modify the code itself, in this case a
> >> suggestion on how to start would be great.
> 
> Yes.  It's called "Algebra"  :-)
> 
> > What are the rounding rules? Why does the obvious way to compute TaxTwo
> > directly from A and B not work?
> > 
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
> 
> -derek


-- 
Fabio


More information about the gnucash-user mailing list