Added sticker master relation in panel gr master model file
This commit is contained in:
@@ -32,10 +32,8 @@ class PanelGrMaster extends Model
|
|||||||
return $this->belongsTo(Item::class);
|
return $this->belongsTo(Item::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function panelBoxValidations()
|
public function stickerMaster()
|
||||||
{
|
{
|
||||||
return $this->hasMany(PanelBoxValidation::class, 'plant_id', 'plant_id')
|
return $this->belongsTo(StickerMaster::class, 'sticker_master_id');
|
||||||
->whereColumn('production_order', 'panel_gr_masters.document_number')
|
|
||||||
->whereColumn('inspection_lot_number', 'panel_gr_masters.inspection_lot_number');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user