From 115cc912c70711a17f2615460dc461407b051eb1 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 16 May 2026 17:14:26 +0530 Subject: [PATCH] Added wiremasterpacking in plant and item model --- app/Models/Item.php | 5 +++++ app/Models/Plant.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/app/Models/Item.php b/app/Models/Item.php index 360fee9..755080c 100644 --- a/app/Models/Item.php +++ b/app/Models/Item.php @@ -79,6 +79,11 @@ class Item extends Model return $this->hasMany(RequestCharacteristic::class, 'item_id', 'id'); } + public function wireMasterPacking() + { + return $this->hasMany(WireMasterPacking::class, 'item_id', 'id'); + } + public function productionCharacteristics() { return $this->hasMany(ProductionCharacteristic::class, 'item_id', 'id'); diff --git a/app/Models/Plant.php b/app/Models/Plant.php index c5c184f..e216092 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -109,6 +109,11 @@ class Plant extends Model return $this->hasMany(ProcessOrder::class, 'plant_id', 'id'); } + public function wireMasterPacking() + { + return $this->hasMany(WireMasterPacking::class, 'plant_id', 'id'); + } + public function productionOrder() { return $this->hasMany(ProductionOrder::class, 'plant_id', 'id');