when coding the extended stock class you need to know how many available on farm in the stock class you are selling or purchasing. not easy to flag if you have entered the wrong class and there are no stock in that range.