When you apply a discount code the discount is applied to all the items in your order that are eligible, so when you return items you will be refunded at the discounted price paid on production of a valid receipt but a new promotion code will not be given.