Calculate invoice discount before invoice tax

See Allow users to modify the tax and item calculation order