added discount type for percentage