Discount bug fixed

Discounts were not being processed.