validation for stock and nonstock items in purchase cycle