/**
  * Returns one item from Inventory matching the serialnr
  * that was requested from Ajax call
  *
  * @param Request          $request (Ajax)
  *
  * @return json array
  */
 public function getInventoryBySerialnr(Request $request)
 {
     $serialnr = $request->input('query');
     $result = Inventory::findBySerialnr($serialnr);
     return json_encode($result);
 }