Invoice with "nested" taxation.

Derek Atkins derek at ihtfp.com
Sat Feb 11 14:11:49 EST 2017


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
-- 
       Derek Atkins                 617-623-3745
       derek at ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant



More information about the gnucash-user mailing list