1
0
forked from poc/pds

Added three column sin process model file

This commit is contained in:
dhanabalan
2026-01-28 15:10:45 +05:30
parent 845b912508
commit 77ba58e100

View File

@@ -12,6 +12,7 @@ class ProcessOrder extends Model
protected $fillable = [ protected $fillable = [
'plant_id', 'plant_id',
'line_id',
'item_id', 'item_id',
'process_order', 'process_order',
'coil_number', 'coil_number',
@@ -19,6 +20,8 @@ class ProcessOrder extends Model
'received_quantity', 'received_quantity',
'sfg_number', 'sfg_number',
'machine_name', 'machine_name',
'scrap_quantity',
'rework_status',
'created_at', 'created_at',
'created_by', 'created_by',
'updated_by', 'updated_by',
@@ -30,7 +33,12 @@ class ProcessOrder extends Model
return $this->belongsTo(Plant::class); return $this->belongsTo(Plant::class);
} }
public function item() public function line(): BelongsTo
{
return $this->belongsTo(Line::class);
}
public function item(): BelongsTo
{ {
return $this->belongsTo(Item::class, 'item_id'); return $this->belongsTo(Item::class, 'item_id');
} }