Added coil packingrelation in item model file #1006

Merged
jothi merged 1 commits from ranjith-dev into master 2026-09-10 12:00:47 +00:00

View File

@@ -17,6 +17,7 @@ class Item extends Model
'description',
'hourly_quantity',
'uom',
// 'type',
];
public function plant()
@@ -118,4 +119,9 @@ class Item extends Model
{
return $this->hasMany(PanelGrMaster::class, 'item_id', 'id');
}
public function coilPacking()
{
return $this->hasMany(CoilPacking::class, 'item_id', 'id');
}
}