firegento/firegento-pdf — pull request #25 by quafzi (2013-02-11 11:19:56+00:00)
Title: When you invoice an order containing some discount, you get wrong tax percentages in totals

Discount was ignored when calculating tax percentages.

Example:
There is one item with net row sum of €12.49, a tax rate of _19%_ and a discount of €0.62.
Everything is alright in article list, but the totals show a wrong tax rate due to the ignored discount:

* subtotal: 12.49
* discount: 0.62
* tax _18%_: 2.25