|
|
@@ -146,6 +146,11 @@ class OrderPackage extends Model
|
|
|
return $this->hasOne('App\PaperBox', 'id', 'paper_box_id');
|
|
|
}
|
|
|
|
|
|
+ public function workOrder(): HasOne
|
|
|
+ {
|
|
|
+ return $this->hasOne(WorkOrder::class, 'order_id', 'order_id');
|
|
|
+ }
|
|
|
+
|
|
|
public function measuringMachine(): HasOne
|
|
|
{
|
|
|
return $this->hasOne('App\MeasuringMachine', 'id', 'measuring_machine_id');
|