Preventing sales of discontinued inventory