commented logic in panel box
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 19s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 25s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 24s
Laravel Larastan / larastan (pull_request) Failing after 5m35s
Laravel Pint / pint (pull_request) Successful in 5m23s

This commit is contained in:
dhanabalan
2026-11-30 15:34:30 +05:30
parent 8b22d55122
commit 9377fd0010

View File

@@ -763,13 +763,13 @@ class PanelBoxValidationResource extends Resource
return;
}
$alreadyExists = PanelBoxValidation::where('serial_number', $serialNumber)
->where('plant_id', $plantId)
->where(function ($query) use ($pOrder, $inspecLotNo) {
$query->where('production_order', $pOrder)
->orWhere('inspection_lot_number', $inspecLotNo);
})
->first();
// $alreadyExists = PanelBoxValidation::where('serial_number', $serialNumber)
// ->where('plant_id', $plantId)
// ->where(function ($query) use ($pOrder, $inspecLotNo) {
// $query->where('production_order', $pOrder)
// ->orWhere('inspection_lot_number', $inspecLotNo);
// })
// ->first();
// if ($alreadyExists) {
// Notification::make()