ranjith-dev #1367

Merged
jothi merged 2 commits from ranjith-dev into master 2026-11-03 05:53:05 +00:00
2 changed files with 13 additions and 0 deletions
Showing only changes of commit a826dc4785 - Show all commits

View File

@@ -115,6 +115,14 @@ class TestingLineVisualizationController extends Controller
], 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();
if (! $jobAgaPlant) {
return response()->json([

View File

@@ -222,6 +222,11 @@ class Plant extends Model
return $this->hasMany(BeforeTestReading::class, 'plant_id', 'id');
}
public function testingLineVisualizations()
{
return $this->hasMany(TestingLineVisualization::class, 'plant_id', 'id');
}
public function asrsItemValidations()
{
return $this->hasMany(AsrsItemValidation::class, 'plant_id', 'id');