From bd29bbeb48a660c56e56ec52a9ddb9660aecfdb1 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 14 Sep 2026 15:25:45 +0530 Subject: [PATCH 1/2] Added relationship of production temp in plant model file --- app/Models/Plant.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 2017230..96de552 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -238,4 +238,9 @@ class Plant extends Model { return $this->hasMany(CoilPacking::class, 'plant_id', 'id'); } + + public function productionTemp() + { + return $this->hasMany(ProductionTemp::class, 'plant_id', 'id'); + } } -- 2.49.1 From e74e4a76dc163c0b54504b74d6dccdc39f1a6e2d Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 14 Sep 2026 15:26:29 +0530 Subject: [PATCH 2/2] Added relation of production temp in item model file --- app/Models/Item.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Item.php b/app/Models/Item.php index bfba54e..c23546e 100644 --- a/app/Models/Item.php +++ b/app/Models/Item.php @@ -129,4 +129,9 @@ class Item extends Model { return $this->hasMany(CoilPacking::class, 'item_id', 'id'); } + + public function productionTemp() + { + return $this->hasMany(ProductionTemp::class, 'item_id', 'id'); + } } -- 2.49.1