generated a view for discount in a restaurant