app/Processors/WorkOrder/WorkOrderPartStockProcessor.php
public function postPut(PartReturnRequest $request, $workOrderId, $itemId, $stockId)
    {
        $workOrder = $this->workOrder->findOrFail($workOrderId);

        // Even though the inventory item isn't necessary here, we'll
        // find it anyway so we can check for the requests validity
        // and ensure the specified stock is actually attached to
        // the one requested.
        $item = $this->inventory->findOrFail($itemId);

        $item->stocks()->findOrFail($stockId);

        $stock = $workOrder->parts()->findOrFail($stockId);

        return $this->dispatch(new Put($request, $workOrder, $stock));
    }
public function postPut(PartReturnRequest $request, $workOrderId, $itemId, $stockId)
    {
        $workOrder = $this->workOrder->findOrFail($workOrderId);

        // Even though the inventory item isn't necessary here, we'll
        // find it anyway so we can check for the requests validity
        // and ensure the specified stock is actually attached to
        // the one requested.
        $item = $this->inventory->findOrFail($itemId);

        $item->stocks()->findOrFail($stockId);

        $stock = $workOrder->parts()->findOrFail($stockId);

        return $this->dispatch(new Put($request, $workOrder, $stock));
    }
Processes returning stock from the work order back into the specified inventory.

@param PartReturnRequest $request
@param int|string        $workOrderId
@param int|string        $itemId
@param int|string        $stockId

@throws \Stevebauman\Inventory\Exceptions\InvalidQuantityException

@return bool