added column snames in model file of process order
This commit is contained in:
@@ -14,6 +14,9 @@ class ProcessOrder extends Model
|
||||
"plant_id",
|
||||
"item_id",
|
||||
"process_order",
|
||||
"coil_number",
|
||||
"order_quantity",
|
||||
"received_quantity",
|
||||
"created_at",
|
||||
"created_by",
|
||||
"updated_by",
|
||||
@@ -25,9 +28,9 @@ class ProcessOrder extends Model
|
||||
return $this->belongsTo(Plant::class);
|
||||
}
|
||||
|
||||
public function item(): BelongsTo
|
||||
public function item()
|
||||
{
|
||||
return $this->belongsTo(Item::class);
|
||||
return $this->belongsTo(Item::class, 'item_id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user