Files
sirpremiumv2/app/Http/Livewire
LizandroandClaude Sonnet 4.6 b4624db056 fix: account lookup now uses real availability logic (servicio_id + pantallas)
- Replace tarifa_id+estado='ocupado' query with the same logic used in
  ShowServicios: filter by servicio_id, date range, historiales_count
- Full-account plans (pantallas == completa): look for estado='pendiente'
  accounts without assigned profiles
- Partial plans (screen sharing): look for estado='activo' accounts
  with remaining slots (historiales_count <= pantallas_servicio - pantallas)
- Wrap purchase in DB::transaction to avoid race conditions
- Remove incorrect cuenta->update(['estado' => 'ocupado']) — availability
  is now tracked via historial_cuentas count, not a flag
- Use effective price (Preferencial override) for saldo deduction

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-14 13:46:36 +00:00
..
up
2026-04-25 15:04:50 -05:00
2025-02-27 15:19:52 -05:00
2023-11-07 22:43:10 +00:00
2025-04-04 20:11:51 -05:00
2023-11-07 22:43:10 +00:00
2025-04-04 20:11:51 -05:00
up
2026-06-18 13:04:07 -05:00
2023-11-07 22:43:10 +00:00
2023-11-07 22:43:10 +00:00
2025-04-04 20:11:51 -05:00
2023-11-07 22:43:10 +00:00
up
2026-04-18 14:08:14 -05:00
2023-11-07 22:43:10 +00:00
2023-11-07 22:43:10 +00:00
2023-11-07 22:43:10 +00:00
2023-11-07 22:43:10 +00:00
2023-11-07 22:43:10 +00:00
up
2025-10-18 10:43:02 -05:00
2025-07-31 15:19:22 -07:00
2025-04-04 20:11:51 -05:00
2025-04-04 20:11:51 -05:00
2025-04-04 20:11:51 -05:00
2023-11-07 22:43:10 +00:00
2023-11-07 22:43:10 +00:00
up
2026-06-05 10:12:46 -05:00
up
2025-09-02 22:32:49 -05:00
up
2026-04-18 14:13:24 -05:00
up
2026-04-21 18:14:04 -05:00
up
2026-04-21 18:32:01 -05:00
2024-10-02 17:42:08 -05:00
2025-08-22 10:09:23 -07:00
2026-06-18 11:06:49 -05:00
2026-06-18 11:06:49 -05:00
2023-11-07 22:43:10 +00:00
2025-02-27 15:19:52 -05:00
2026-06-05 10:17:07 -05:00
2023-11-07 22:43:10 +00:00
2023-11-07 22:43:10 +00:00