Merge pull request 'ranjith-dev' (#209) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s

Reviewed-on: #209
This commit was merged in pull request #209.
This commit is contained in:
2026-09-20 04:58:39 +00:00

View File

@@ -12,17 +12,21 @@ class ProcessOrder extends Model
protected $fillable = [
'plant_id',
'line_id',
'item_id',
'process_order',
'coil_number',
'order_quantity',
'received_quantity',
'updated_order_quantity',
'sfg_number',
'machine_name',
'scrap_quantity',
'rework_status',
'created_at',
'created_by',
'updated_by',
'updated_at',
'updated_by',
];
public function plant(): BelongsTo
@@ -30,7 +34,12 @@ class ProcessOrder extends Model
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');
}