mirror of
https://github.com/marcogll/ap_pos.git
synced 2026-01-13 13:15:16 +00:00
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:
6
app.js
6
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();
|
||||
|
||||
Reference in New Issue
Block a user