Se quitó la validación de robo
This commit is contained in:
parent
ca5b1ad8ed
commit
3dee92ab1e
@ -95,7 +95,7 @@ public function vehicleInscription(VehicleStoreRequest $request)
|
||||
$ownerData = $this->padronEstatalService->extraerDatosPropietario($datosCompletosRaw);
|
||||
|
||||
// Obtener NIV de los datos del vehículo para verificar robo
|
||||
$niv = $vehicleData['niv'];
|
||||
/* $niv = $vehicleData['niv'];
|
||||
|
||||
// Verificar robo (API Repuve Nacional)
|
||||
$resultadoRobo = $this->checkIfStolen($niv, $placa);
|
||||
@ -112,7 +112,7 @@ public function vehicleInscription(VehicleStoreRequest $request)
|
||||
'detalle_robo' => $resultadoRobo,
|
||||
'message' => 'El vehículo reporta robo. No se puede continuar con la inscripción.',
|
||||
]);
|
||||
}
|
||||
} */
|
||||
|
||||
// Crear propietario
|
||||
$owner = Owner::updateOrCreate(
|
||||
|
||||
@ -128,14 +128,14 @@ public function tagSubstitution(Request $request)
|
||||
}
|
||||
|
||||
// Verificar robo del vehículo
|
||||
$isStolen = $this->checkIfStolen($vehicle->niv);
|
||||
/* $isStolen = $this->checkIfStolen($vehicle->niv);
|
||||
|
||||
if ($isStolen) {
|
||||
return ApiResponse::FORBIDDEN->response([
|
||||
'message' => 'El vehículo reporta robo. No se puede continuar con la sustitución.',
|
||||
'niv' => $vehicle->niv,
|
||||
]);
|
||||
}
|
||||
} */
|
||||
|
||||
DB::beginTransaction();
|
||||
|
||||
@ -224,7 +224,7 @@ public function vehicleUpdate(VehicleUpdateRequest $request)
|
||||
$tagNumber = $request->input('tag_number');
|
||||
$niv = $request->input('niv');
|
||||
|
||||
$isStolen = $this->checkIfStolen($niv);
|
||||
/* $isStolen = $this->checkIfStolen($niv);
|
||||
|
||||
if ($isStolen) {
|
||||
return ApiResponse::FORBIDDEN->response([
|
||||
@ -232,7 +232,7 @@ public function vehicleUpdate(VehicleUpdateRequest $request)
|
||||
'stolen' => true,
|
||||
'message' => 'El vehículo reporta robo. No se puede continuar con la actualización.',
|
||||
]);
|
||||
}
|
||||
} */
|
||||
|
||||
$record = Record::with(['vehicle.owner', 'vehicle.tag', 'files', 'error'])
|
||||
->where('folio', $folio)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user