Created adjustItemStockDocument function.