fix(toma-progresiva): ordenar toma Otro por su hora real en lugar de ponerla al final
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
ecc582177c
commit
7f522a683e
@@ -280,7 +280,9 @@ if ($modoTurnero && $embebido && $_soloFirmaPro) {
|
||||
$_mpHoraFija = sprintf('%02d:%02d', $_h, $_m2);
|
||||
$_mpMin = PHP_INT_MAX; // sentinel: va después de todos los Minuto X
|
||||
} elseif (stripos($_mpLabel, 'Otro') !== false) {
|
||||
$_mpMin = PHP_INT_MAX; // sentinel: toma de hora libre
|
||||
// Si el usuario ingresó la hora de "Otro", usarla para ordenar cronológicamente
|
||||
$_otroValor = trim((string)($datosCliente['_otro_hora'] ?? ''));
|
||||
$_mpMin = is_numeric($_otroValor) ? (int)$_otroValor : PHP_INT_MAX;
|
||||
}
|
||||
} elseif ($_t === 'hora' && ($_mpMin !== null || $_mpHoraFija !== null)) {
|
||||
$_mpHora = $_c['id'] ?? null;
|
||||
|
||||
Reference in New Issue
Block a user