Added panel box validations method in panel gr master model file
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
This commit is contained in:
@@ -31,4 +31,11 @@ class PanelGrMaster extends Model
|
||||
{
|
||||
return $this->belongsTo(Item::class);
|
||||
}
|
||||
|
||||
public function panelBoxValidations()
|
||||
{
|
||||
return $this->hasMany(PanelBoxValidation::class, 'plant_id', 'plant_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