Added columns in model files of Item and line and production plan and production quantity
This commit is contained in:
@@ -12,6 +12,7 @@ class Item extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'plant_id',
|
||||
'line_id',
|
||||
'category',
|
||||
'code',
|
||||
'description',
|
||||
@@ -19,11 +20,16 @@ class Item extends Model
|
||||
'uom',
|
||||
];
|
||||
|
||||
public function plant(): BelongsTo
|
||||
public function plant()
|
||||
{
|
||||
return $this->belongsTo(Plant::class);
|
||||
}
|
||||
|
||||
public function item()
|
||||
{
|
||||
return $this->belongsTo(Item::class, 'item_id', 'id');
|
||||
}
|
||||
|
||||
public function stickerMasters()
|
||||
{
|
||||
return $this->hasMany(StickerMaster::class, 'item_id', 'id');
|
||||
|
||||
Reference in New Issue
Block a user