1
0
forked from poc/pds

Added order by id logic in panel box validation

This commit is contained in:
dhanabalan
2026-08-18 15:28:58 +05:30
parent 5823a6b3d1
commit a8bd7a781c

View File

@@ -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();