1
0
forked from poc/pds

added column snames in model file of process order

This commit is contained in:
dhanabalan
2025-11-17 13:58:48 +05:30
parent b940e0519c
commit 84398f8b45

View File

@@ -14,6 +14,9 @@ class ProcessOrder extends Model
"plant_id", "plant_id",
"item_id", "item_id",
"process_order", "process_order",
"coil_number",
"order_quantity",
"received_quantity",
"created_at", "created_at",
"created_by", "created_by",
"updated_by", "updated_by",
@@ -25,9 +28,9 @@ class ProcessOrder extends Model
return $this->belongsTo(Plant::class); return $this->belongsTo(Plant::class);
} }
public function item(): BelongsTo public function item()
{ {
return $this->belongsTo(Item::class); return $this->belongsTo(Item::class, 'item_id');
} }
} }