Fixed discount enable/disable logic.
Fixed bug in discount re-enable logic.