Hi Hynek,
Thanks! I wrote my answers on the github issue-tracker. As I wrote and
explained there, the taxes are being calculated right. In my example
it's just looking complicated because I have to calculate a 2%
discount of the total and then apply it (add it) "regresively" to the
products-discount, so it gets handled as a "discount" and appears on
the checkout-screens and payments, etc. etc. This, and the example
with the shipping-options, were just the best ways I found to achieve
all our customizations and at the same time to use as much as possible
from the core.
But, all in all, the examples are just examples and only showing a
little part of what kind of possible usage could be achieved with this
core-changes. They are not meant to be applied to the core, of course,
so the tax-calculation part, even if it was wrong in my example,
wouldn't have to be fixed ;-)
I think that, if we get this right, it could give us the possibility
to customize almost everything that has to do with payment and
shipping options without ever touching the core and having to override
anything, and the new signals would have a minimal impact on the core-
code.
Well, I hope my new comments and example-additions won't confuse you
even more ;-) and thanks again for looking into this. I'll be looking
forward for your next feedback!
Andrea