public function postPut(PartReturnRequest $request, $workOrderId, $inventoryId, $stockId)
    {
        if ($this->processor->postPut($request, $workOrderId, $inventoryId, $stockId)) {
            flash()->success('Success!', 'Successfully returned parts to the inventory.');

            return redirect()->route('maintenance.work-orders.parts.index', [$workOrderId]);
        } else {
            flash()->error('Error!', 'There was an issue returning parts into the inventory. Please try again.');

            return redirect()->route('maintenance.work-orders.parts.stocks.put', [$workOrderId]);
        }
    }
public function postPut(PartReturnRequest $request, $workOrderId, $inventoryId, $stockId)
    {
        if ($this->processor->postPut($request, $workOrderId, $inventoryId, $stockId)) {
            flash()->success('Success!', 'Successfully returned parts to the inventory.');

            return redirect()->route('maintenance.work-orders.parts.index', [$workOrderId]);
        } else {
            flash()->error('Error!', 'There was an issue returning parts into the inventory. Please try again.');

            return redirect()->route('maintenance.work-orders.parts.stocks.put', [$workOrderId]);
        }
    }
public function postPut ( PartReturnRequest $ request , $ workOrderId , $ inventoryId , $ stockId ) { if ( $ this -> processor -> postPut ( $ request , $ workOrderId , $ inventoryId , $ stockId ) ) { flash ( ) -> success ( 'Success!' , 'Successfully returned parts to the inventory.' ) ; return redirect ( ) -> route ( 'maintenance.work-orders.parts.index' , [ $ workOrderId ] ) ; } else { flash ( ) -> error ( 'Error!' , 'There was an issue returning parts into the inventory. Please try again.' ) ; return redirect ( ) -> route ( 'maintenance.work-orders.parts.stocks.put' , [ $ workOrderId ] ) ; } }
Processes returning parts back into the inventory.

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

@return \Illuminate\Http\RedirectResponse
Processes returning parts back into the inventory .