ranjith-dev #258

Merged
jothi merged 6 commits from ranjith-dev into master 2026-01-28 09:41:05 +00:00
Showing only changes of commit 77ba58e100 - Show all commits

View File

@@ -12,6 +12,7 @@ class ProcessOrder extends Model
protected $fillable = [
'plant_id',
'line_id',
'item_id',
'process_order',
'coil_number',
@@ -19,6 +20,8 @@ class ProcessOrder extends Model
'received_quantity',
'sfg_number',
'machine_name',
'scrap_quantity',
'rework_status',
'created_at',
'created_by',
'updated_by',
@@ -30,7 +33,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');
}