diff --git a/public/reprocess-may.php b/public/reprocess-may.php deleted file mode 100644 index 7e128038f..000000000 --- a/public/reprocess-may.php +++ /dev/null @@ -1,54 +0,0 @@ -make(Illuminate\Contracts\Console\Kernel::class); - $kernel->bootstrap(); - - // 1. Find Paul Rei Paas - $employee = \App\Models\Employee::where('biometric_emp_id', '2068')->first(); - if (!$employee) { - throw new \Exception("Employee Paul Rei Paas (2068) not found."); - } - - $userId = $employee->user_id; - echo "Employee: User ID $userId\n"; - - // Reprocess all records in March, April, and May 2026 - $records = \App\Models\AttendanceRecord::where('employee_id', $userId) - ->whereBetween('date', ['2026-03-01', '2026-05-31']) - ->get(); - - echo "Found " . $records->count() . " records.\n"; - - $updatedCount = 0; - foreach ($records as $record) { - $oldStatus = $record->status; - $record->processAttendance(); - $newStatus = $record->status; - if ($oldStatus !== $newStatus) { - echo "Date: " . $record->date . " | Updated from $oldStatus to $newStatus\n"; - $updatedCount++; - } - } - - echo "\nCompleted. Updated $updatedCount records.\n"; - -} catch (\Exception $e) { - echo "ERROR: " . $e->getMessage() . "\n"; -}