Added columns in model files of Item and line and production plan and production quantity
This commit is contained in:
@@ -22,6 +22,7 @@ class ProductionQuantity extends Model
|
||||
'shift_id',
|
||||
'line_id',
|
||||
'item_id',
|
||||
'machine_id',
|
||||
'serial_number',
|
||||
'production_order',
|
||||
'operator_id',
|
||||
@@ -53,6 +54,11 @@ class ProductionQuantity extends Model
|
||||
return $this->belongsTo(Item::class);
|
||||
}
|
||||
|
||||
public function machine(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Machine::class);
|
||||
}
|
||||
|
||||
protected static function booted()
|
||||
{
|
||||
static::created(function ($productionQuantity) {
|
||||
|
||||
Reference in New Issue
Block a user