Utilities > Preferences > Sales > Discounts In the order from highest to lowest is how the discount will be applied to transactions.