Discount before subtotal and after tax

Hi.

In budgets and invoices the general discount is applied after taxes. That is wrong!.

A discount should be applied after the subtotal, and then, then calculate the taxes. This must be fixed for future versions.

See this thread: Invoice Calculation - Please help us!
Discussed multiple times already.