Added production order in plant and item model #569

Merged
jothi merged 1 commits from ranjith-dev into master 2026-05-07 04:49:25 +00:00
2 changed files with 10 additions and 0 deletions

View File

@@ -54,6 +54,11 @@ class Item extends Model
return $this->hasMany(ProcessOrder::class);
}
public function productionOrders()
{
return $this->hasMany(ProductionOrder::class);
}
public function productCharacteristicsMasters()
{
return $this->hasMany(ProductCharacteristicsMaster::class);

View File

@@ -108,6 +108,11 @@ class Plant extends Model
return $this->hasMany(ProcessOrder::class, 'plant_id', 'id');
}
public function productionOrder()
{
return $this->hasMany(ProductionOrder::class, 'plant_id', 'id');
}
public function productCharacteristicsMasters()
{
return $this->hasMany(ProductCharacteristicsMaster::class, 'plant_id', 'id');