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',
|
||||
'description',
|
||||
'hourly_quantity',
|
||||
'uom',
|
||||
];
|
||||
|
||||
public function plant(): BelongsTo
|
||||
@@ -26,4 +27,9 @@ class Item extends Model
|
||||
{
|
||||
return $this->hasMany(StickerMaster::class, 'item_id', 'id');
|
||||
}
|
||||
|
||||
public function productionQuantities()
|
||||
{
|
||||
return $this->hasMany(ProductionQuantity::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user