From a8bd7a781c51f4b72af56a8415722de734ab0d52 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 18 Aug 2026 15:28:58 +0530 Subject: [PATCH] Added order by id logic in panel box validation --- .../Pages/CreatePanelBoxValidation.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Filament/Resources/PanelBoxValidationResource/Pages/CreatePanelBoxValidation.php b/app/Filament/Resources/PanelBoxValidationResource/Pages/CreatePanelBoxValidation.php index ef4f49d..02de7c7 100644 --- a/app/Filament/Resources/PanelBoxValidationResource/Pages/CreatePanelBoxValidation.php +++ b/app/Filament/Resources/PanelBoxValidationResource/Pages/CreatePanelBoxValidation.php @@ -98,6 +98,7 @@ class CreatePanelBoxValidation extends CreateRecord { $this->existingRecords = ProductCharacteristicsMaster::where('plant_id', $plantId) ->where('category', $categoryName) ->where('line_id', $lineId) + ->orderBy('id', 'asc') ->get(); return $this->existingRecords->isNotEmpty();