How to create a discount field