Understanding stock and inventory control