Discounts apply incorrectly to extras

Hi,

This is how it should work by default. Discounts are applied to the total amount of the order.