Added uom column into items model and hasMany relation to productionQuantities
This commit is contained in:
@@ -15,6 +15,7 @@ class Item extends Model
|
|||||||
'code',
|
'code',
|
||||||
'description',
|
'description',
|
||||||
'hourly_quantity',
|
'hourly_quantity',
|
||||||
|
'uom',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function plant(): BelongsTo
|
public function plant(): BelongsTo
|
||||||
@@ -26,4 +27,9 @@ class Item extends Model
|
|||||||
{
|
{
|
||||||
return $this->hasMany(StickerMaster::class, 'item_id', 'id');
|
return $this->hasMany(StickerMaster::class, 'item_id', 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function productionQuantities()
|
||||||
|
{
|
||||||
|
return $this->hasMany(ProductionQuantity::class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user