You can set the conditions under which the discount will apply.
To do this, in the pricing component, click on the Add condition button.
Set all the values of the fields and price options for which you want to give a discount.
In our case, we will set the Self-delivery checkbox.
See the example in action: