diff --git a/app/Filament/Resources/RequestCharacteristicResource.php b/app/Filament/Resources/RequestCharacteristicResource.php index 79cde89..2cb0915 100644 --- a/app/Filament/Resources/RequestCharacteristicResource.php +++ b/app/Filament/Resources/RequestCharacteristicResource.php @@ -832,8 +832,8 @@ class RequestCharacteristicResource extends Resource $prefix = "WF-{$year}{$month}{$date}-"; $lastWorkflow = RequestCharacteristic::where('work_flow_id', 'like', "{$prefix}%") + // ->where('plant_id', $plantId) // ->where('machine_id', $MachineId) - ->where('work_flow_id', 'like', "{$prefix}%") ->orderByDesc('work_flow_id') ->first();