diff --git a/app/Models/Item.php b/app/Models/Item.php index bfba54e861..c23546ed7a 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'); + } } diff --git a/app/Models/Plant.php b/app/Models/Plant.php index 201723022b..96de552768 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'); + } }