added column snames in model file of process order
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user