Merge pull request 'Added wiremasterpacking in plant and item model' (#616) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #616
This commit was merged in pull request #616.
This commit is contained in:
@@ -79,6 +79,11 @@ class Item extends Model
|
|||||||
return $this->hasMany(RequestCharacteristic::class, 'item_id', 'id');
|
return $this->hasMany(RequestCharacteristic::class, 'item_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function wireMasterPacking()
|
||||||
|
{
|
||||||
|
return $this->hasMany(WireMasterPacking::class, 'item_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function productionCharacteristics()
|
public function productionCharacteristics()
|
||||||
{
|
{
|
||||||
return $this->hasMany(ProductionCharacteristic::class, 'item_id', 'id');
|
return $this->hasMany(ProductionCharacteristic::class, 'item_id', 'id');
|
||||||
|
|||||||
@@ -109,6 +109,11 @@ class Plant extends Model
|
|||||||
return $this->hasMany(ProcessOrder::class, 'plant_id', 'id');
|
return $this->hasMany(ProcessOrder::class, 'plant_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function wireMasterPacking()
|
||||||
|
{
|
||||||
|
return $this->hasMany(WireMasterPacking::class, 'plant_id', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
public function productionOrder()
|
public function productionOrder()
|
||||||
{
|
{
|
||||||
return $this->hasMany(ProductionOrder::class, 'plant_id', 'id');
|
return $this->hasMany(ProductionOrder::class, 'plant_id', 'id');
|
||||||
|
|||||||
Reference in New Issue
Block a user