From 07209a41834f65f8c521bd73254448d7c5fa8b34 Mon Sep 17 00:00:00 2001 From: Marco Gallegos Date: Mon, 8 Sep 2025 20:26:53 -0600 Subject: [PATCH] fix: Remove duplicate anticipo comment prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 0e9b5f7..801fed3 100644 --- a/app.js +++ b/app.js @@ -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();