Wrong calculation order

Hi, I’ve tried all posted solutions and haven’t been able to solve the discount order issue. I need the discount to be calculated before the tax is applied, but no matter what I change it won’t have an effect. It even shows after the tax when creating new quotes.

Have anyone found a working solution to this. Also is this an error or is how it’s intended in the first place, because if it is, it would be great to have a setting to use it one way or another.