diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/sendaAmigo/EditarClienteController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/sendaAmigo/EditarClienteController.java index 47c5cd6d2..4606a3e2f 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/sendaAmigo/EditarClienteController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/sendaAmigo/EditarClienteController.java @@ -562,14 +562,22 @@ public class EditarClienteController extends MyGenericForwardComposer { } public void onChange$txtNumRfc(Event ev) throws InterruptedException { - if (usaCPFComoFidelidade - && cmbTipoIdentificacion.getSelectedItem() != null + if (cmbTipoIdentificacion.getSelectedItem() != null && cmbTipoIdentificacion.getSelectedItem().getValue().toString().equals(CPF)) { txtNumFidelidade.setText(txtNumRfc.getText()); } else { txtNumFidelidade.setText(""); } } + + public void onChange$txtNumRfc2(Event ev) throws InterruptedException { + if ( cmbTipoIdentificacion2.getSelectedItem() != null + && cmbTipoIdentificacion2.getSelectedItem().getValue().toString().equals(CPF)) { + txtNumFidelidade.setText(txtNumRfc2.getText()); + } else { + txtNumFidelidade.setText(""); + } + } public void onClick$btnApagarCurso(Event ev) throws InterruptedException {