[SALGEN-1783735979061-1a4yf3] Request received: jobIds=52,51,50,49 invoicePeriodStart=2026-07-06 invoicePeriodEnd=2026-07-12
[SALGEN-1783735979061-1a4yf3] Normalized invoice period: start=2026-07-06 end=2026-07-12
[SALGEN-1783735979061-1a4yf3] Auth context: userId=1 roleId=1
[SALGEN-1783735979061-1a4yf3] Database query interface acquired
[SALGEN-1783735979061-1a4yf3] Validating Job ID: 52
[SALGEN-1783735979061-1a4yf3] [SALGEN-1783735979061-1a4yf3] Validating Job ID: 52 (started)
[SALGEN-1783735979061-1a4yf3] Job validation passed jobId=52 (took 10ms)
[SALGEN-1783735979061-1a4yf3] Validating Job ID: 51
[SALGEN-1783735979061-1a4yf3] [SALGEN-1783735979061-1a4yf3] Validating Job ID: 51 (started)
[SALGEN-1783735979061-1a4yf3] Job validation passed jobId=51 (took 8ms)
[SALGEN-1783735979061-1a4yf3] Validating Job ID: 50
[SALGEN-1783735979061-1a4yf3] [SALGEN-1783735979061-1a4yf3] Validating Job ID: 50 (started)
[SALGEN-1783735979061-1a4yf3] Job validation passed jobId=50 (took 40ms)
[SALGEN-1783735979061-1a4yf3] Validating Job ID: 49
[SALGEN-1783735979061-1a4yf3] [SALGEN-1783735979061-1a4yf3] Validating Job ID: 49 (started)
[SALGEN-1783735979061-1a4yf3] Job validation passed jobId=49 (took 95ms)
[SALGEN-1783735979061-1a4yf3] Validation completed. validJobIds=52,51,50,49 totalValid=4

========================================
SALARY GENERATION STARTED
========================================
Processing 4 job(s)
----------------------------------------
[SALGEN-1783735979061-1a4yf3] Transaction begin (took 81ms)
[SALGEN-1783735979061-1a4yf3] Loaded existing invoice sequences rows=2 (took 13ms)
[SALGEN-1783735979061-1a4yf3] Fetched wages jobId=52 rows=6 (took 7ms)
[SALGEN-1783735979061-1a4yf3] Fetched wages jobId=51 rows=6 (took 4ms)
[SALGEN-1783735979061-1a4yf3] Fetched wages jobId=50 rows=6 (took 75ms)
[SALGEN-1783735979061-1a4yf3] Fetched wages jobId=49 rows=6 (took 4ms)
[SALGEN-1783735979061-1a4yf3] Invoice header inserted employeeId=187 invno=INV-28/26-26001-321A-0002 (took 93ms)
[SALGEN-1783735979061-1a4yf3] Invoice created employeeId=187 invoiceId=3 invno=INV-28/26-26001-321A-0002 jobs=4 period=2026-07-06..2026-07-12
[SALGEN-1783735979061-1a4yf3] Invoice details inserted invoiceId=3 count=4 (took 16ms)
[SALGEN-1783735979061-1a4yf3] Employee invoice complete employeeId=187 invno=INV-28/26-26001-321A-0002 (took 124ms)
[SALGEN-1783735979061-1a4yf3] Invoice header inserted employeeId=191 invno=INV-28/26-26001-444A-0002 (took 3ms)
[SALGEN-1783735979061-1a4yf3] Invoice created employeeId=191 invoiceId=4 invno=INV-28/26-26001-444A-0002 jobs=4 period=2026-07-06..2026-07-12
[SALGEN-1783735979061-1a4yf3] Invoice details inserted invoiceId=4 count=4 (took 10ms)
[SALGEN-1783735979061-1a4yf3] Employee invoice complete employeeId=191 invno=INV-28/26-26001-444A-0002 (took 16ms)
[SALGEN-1783735979061-1a4yf3] Invoice header inserted employeeId=12 invno=INV-28/26-26012-313J-0001 (took 2ms)
[SALGEN-1783735979061-1a4yf3] Invoice created employeeId=12 invoiceId=5 invno=INV-28/26-26012-313J-0001 jobs=4 period=2026-07-06..2026-07-12
[SALGEN-1783735979061-1a4yf3] Invoice details inserted invoiceId=5 count=4 (took 11ms)
[SALGEN-1783735979061-1a4yf3] Employee invoice complete employeeId=12 invno=INV-28/26-26012-313J-0001 (took 17ms)
[SALGEN-1783735979061-1a4yf3] Invoice header inserted employeeId=33 invno=INV-28/26-26033-230G-0001 (took 3ms)
[SALGEN-1783735979061-1a4yf3] Invoice created employeeId=33 invoiceId=6 invno=INV-28/26-26033-230G-0001 jobs=4 period=2026-07-06..2026-07-12
[SALGEN-1783735979061-1a4yf3] Invoice details inserted invoiceId=6 count=4 (took 33ms)
[SALGEN-1783735979061-1a4yf3] Employee invoice complete employeeId=33 invno=INV-28/26-26033-230G-0001 (took 37ms)
[SALGEN-1783735979061-1a4yf3] Invoice header inserted employeeId=67 invno=INV-28/26-26067-454Z-0001 (took 4ms)
[SALGEN-1783735979061-1a4yf3] Invoice created employeeId=67 invoiceId=7 invno=INV-28/26-26067-454Z-0001 jobs=4 period=2026-07-06..2026-07-12
[SALGEN-1783735979061-1a4yf3] Invoice details inserted invoiceId=7 count=4 (took 11ms)
[SALGEN-1783735979061-1a4yf3] Employee invoice complete employeeId=67 invno=INV-28/26-26067-454Z-0001 (took 18ms)
[SALGEN-1783735979061-1a4yf3] Invoice header inserted employeeId=138 invno=INV-28/26-26138-762D-0001 (took 2ms)
[SALGEN-1783735979061-1a4yf3] Invoice created employeeId=138 invoiceId=8 invno=INV-28/26-26138-762D-0001 jobs=4 period=2026-07-06..2026-07-12
[SALGEN-1783735979061-1a4yf3] Invoice details inserted invoiceId=8 count=4 (took 11ms)
[SALGEN-1783735979061-1a4yf3] Employee invoice complete employeeId=138 invno=INV-28/26-26138-762D-0001 (took 16ms)
[SALGEN-1783735979061-1a4yf3] Transaction commit (took 1ms)
[SALGEN-1783735979061-1a4yf3] Job updated isInvoiced=1 jobId=52 (took 2ms)
[SALGEN-1783735979061-1a4yf3] Job updated isInvoiced=1 jobId=51 (took 2ms)
[SALGEN-1783735979061-1a4yf3] Job updated isInvoiced=1 jobId=50 (took 3ms)
[SALGEN-1783735979061-1a4yf3] Job updated isInvoiced=1 jobId=49 (took 2ms)
   ⚠️ No token for HIDAYAT WADI (employeeId=187)
   ⚠️ No token for VALENTIA (employeeId=191)
   ⚠️ No token for AHMAD FADIK BIN PAPOK (employeeId=12)
   ⚠️ No token for AINUR RAFIQ (employeeId=33)
   ⚠️ No token for AJAY SEKAR (employeeId=67)
   ⚠️ No token for ABID HASSAN BIN MAZLAN (employeeId=138)
   ⚠️ Skipping notifications: tokens=0, serviceReady=true

========================================
SALARY GENERATION COMPLETED
========================================
✅ Total Invoices Generated: 6
✅ Total Employees: 6
✅ Total Jobs Processed: 4

📋 Generated Invoice Summary:
┌────────────────────────────────────────────────────────────────────┐
│ Invoice Number     │ Employee Name          │ Jobs            │
├────────────────────────────────────────────────────────────────────┤
│ INV-28/26-26001-321A-0002 │ HIDAYAT WADI           │ 52, 51, 50, 49  │
│ INV-28/26-26001-444A-0002 │ VALENTIA               │ 52, 51, 50, 49  │
│ INV-28/26-26012-313J-0001 │ AHMAD FADIK BIN PAPOK  │ 52, 51, 50, 49  │
│ INV-28/26-26033-230G-0001 │ AINUR RAFIQ            │ 52, 51, 50, 49  │
│ INV-28/26-26067-454Z-0001 │ AJAY SEKAR             │ 52, 51, 50, 49  │
│ INV-28/26-26138-762D-0001 │ ABID HASSAN BIN MAZLAN │ 52, 51, 50, 49  │
└────────────────────────────────────────────────────────────────────┘

📁 Log file saved to: /home/vysar/valet.vysar.com/storage/logs/salary-generation-2026-07-11T02-12-59.log

[SALGEN-1783735979061-1a4yf3] Request completed successfully totalInvoices=6 totalEmployees=6 totalJobs=4 totalTimeMs=607
