ranjith-dev #784

Merged
jothi merged 2 commits from ranjith-dev into master 2026-06-20 09:58:32 +00:00
2 changed files with 20 additions and 0 deletions
Showing only changes of commit 2e6129970c - Show all commits

View File

@@ -49,6 +49,11 @@ class Plant extends Model
return $this->hasMany(StickerMaster::class, 'plant_id', 'id');
}
public function locators(): HasMany
{
return $this->hasMany(Locator::class, 'plant_id', 'id');
}
public function weightValidations(): HasMany
{
return $this->hasMany(WeightValidation::class, 'plant_id', 'id');
@@ -104,6 +109,11 @@ class Plant extends Model
return $this->hasMany(WorkGroupMaster::class, 'plant_id', 'id');
}
public function machines()
{
return $this->hasMany(Machine::class, 'plant_id', 'id');
}
public function processOrders()
{
return $this->hasMany(ProcessOrder::class, 'plant_id', 'id');
@@ -178,4 +188,9 @@ class Plant extends Model
{
return $this->hasMany(AsrsItemValidation::class, 'plant_id', 'id');
}
// public function locatorValidations()
// {
// return $this->hasMany(LocatorValidation::class, 'plant_id', 'id');
// }
}

View File

@@ -30,6 +30,11 @@ class WorkGroupMaster extends Model
return $this->hasMany(ProductCharacteristicsMaster::class);
}
public function machines()
{
return $this->hasMany(Machine::class, 'work_group_master_id');
}
// public function rejectReasons()
// {
// return $this->hasMany(RejectReason::class, 'work_group_master_id', 'id');