Added production order in plant and item model #569
@@ -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);
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user