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