fix+polish: restaurar filtro DATE en DELETE rips, fallback PHP_INT_MAX en guardar_toma, pulir chip Otro (number/min/pre-carga), limpiar interval resumen
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
18c683ed9b
commit
1d8e461b3e
@@ -393,7 +393,7 @@ try {
|
||||
|
||||
// Consumir el cache: solo eliminar, no reinsertar, para que no recargue en una segunda visita
|
||||
$pdo->prepare(
|
||||
"DELETE FROM rips_examenes_pendientes WHERE numero_documento = ?"
|
||||
"DELETE FROM rips_examenes_pendientes WHERE numero_documento = ? AND DATE(created_at) = CURDATE()"
|
||||
)->execute([$numDoc]);
|
||||
|
||||
} catch (\Throwable $eRips) {
|
||||
|
||||
@@ -97,7 +97,7 @@ foreach ($esquema as $campo) {
|
||||
$horaFija = sprintf('%02d:%02d:00', $h, $min);
|
||||
} elseif (stripos($separadorLabel, 'Otro') !== false) {
|
||||
$otroVal = trim((string)($datosMerge['_otro_hora'] ?? ''));
|
||||
if (is_numeric($otroVal)) $minutos = (int)$otroVal;
|
||||
$minutos = is_numeric($otroVal) ? (int)$otroVal : PHP_INT_MAX;
|
||||
}
|
||||
}
|
||||
$firmasCampos[] = ['id' => $campo['id'], 'minutos' => $minutos, 'hora_fija' => $horaFija];
|
||||
|
||||
Reference in New Issue
Block a user