From d0ca92421fe015879242f2702bfa3e586fa102a2 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 6 Nov 2026 16:12:49 +0530 Subject: [PATCH] Added plant model --- app/Models/Plant.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 22661fe3..957089a5 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -232,10 +232,10 @@ class Plant extends Model return $this->hasMany(AsrsItemValidation::class, 'plant_id', 'id'); } - // public function locatorValidations() - // { - // return $this->hasMany(LocatorValidation::class, 'plant_id', 'id'); - // } + public function locatorValidations() + { + return $this->hasMany(LocatorValidation::class, 'plant_id', 'id'); + } public function characteristicApproverMaster() { @@ -266,4 +266,9 @@ class Plant extends Model { return $this->hasMany(ItemCharacteristic::class, 'plant_id', 'id'); } + + public function courierInwards() + { + return $this->hasMany(ItemCharacteristic::class, 'plant_id', 'id'); + } }