ranjith-dev #1367
@@ -115,6 +115,14 @@ class TestingLineVisualizationController extends Controller
|
|||||||
], 404);
|
], 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$jobAgaPlant = TestingLineVisualization::first();
|
||||||
|
if (! $jobAgaPlant) {
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => 'Reports not found in testing line visualization table!',
|
||||||
|
], 404);
|
||||||
|
}
|
||||||
|
|
||||||
$jobAgaPlant = TestingLineVisualization::where('plant_id', $plantId)->first();
|
$jobAgaPlant = TestingLineVisualization::where('plant_id', $plantId)->first();
|
||||||
if (! $jobAgaPlant) {
|
if (! $jobAgaPlant) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
|
|||||||
@@ -222,6 +222,11 @@ class Plant extends Model
|
|||||||
return $this->hasMany(BeforeTestReading::class, 'plant_id', 'id');
|
return $this->hasMany(BeforeTestReading::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testingLineVisualizations()
|
||||||
|
{
|
||||||
|
return $this->hasMany(TestingLineVisualization::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function asrsItemValidations()
|
public function asrsItemValidations()
|
||||||
{
|
{
|
||||||
return $this->hasMany(AsrsItemValidation::class, 'plant_id', 'id');
|
return $this->hasMany(AsrsItemValidation::class, 'plant_id', 'id');
|
||||||
|
|||||||
Reference in New Issue
Block a user