Block using % discount code on sale items

Right now you can use your discount code on top of a sale items reducing the price even more, but I would like to prevent that in some cases..
Is it possible to block this when creating a % discount code so it can 't be used on a sale item?
It could be optional so if it's only a small discount like 5% it can be combine with the sale percentage.
1 person likes
this idea