fix: Remove duplicate anticipo comment prompt

Remove browser prompt for anticipo comment and use form field instead to avoid requesting the same information twice.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Marco Gallegos
2025-09-08 20:26:53 -06:00
parent a12ac988eb
commit 07209a4183

6
app.js
View File

@@ -658,7 +658,11 @@ function procederConAnticipoManual(clienteNombre) {
return;
}
const comentario = prompt('Comentario/referencia del anticipo (opcional):') || 'Anticipo manual - no registrado previamente';
// Obtener comentario del campo en el formulario en lugar de usar prompt
const commentInput = document.getElementById('anticipo-comment');
const comentario = commentInput && commentInput.value.trim()
? commentInput.value.trim()
: 'Anticipo manual - no registrado previamente';
// Ocultar la confirmación
ocultarConfirmacionAnticipoManual();