carla 2012-11-01 19:58:01 +00:00
parent b6d9bd90a0
commit 2de3bd064a
1 changed files with 8 additions and 2 deletions

View File

@ -372,6 +372,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
if(puntoVenta.getAgenciaId().getInstiFinanceiraId()!= null){
cmbBanco.setText(puntoVenta.getAgenciaId().getInstiFinanceiraId().getCodigo());
txtNomeBanco.setText(puntoVenta.getAgenciaId().getInstiFinanceiraId().getNome());
}
if(puntoVenta.getAgenciaId().getPessoa() != null){
@ -379,7 +380,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
}
if(puntoVenta.getAgenciaId().getTipo() != null){
cmbPessoa.setText(puntoVenta.getAgenciaId().getTipo());
cmbTipoConta.setText(puntoVenta.getAgenciaId().getTipo());
}
}else{
@ -719,6 +720,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
if(cmbBanco.getSelectedItem()== null){
puntoVenta.setAgenciaId(null);
}else{
puntoVenta.getAgenciaId().setInstiFinanceiraId((InstiFinanceira) cmbBanco.getSelectedItem().getValue());
puntoVenta.getAgenciaId().setPessoa((String) cmbPessoa.getSelectedItem().getValue());
puntoVenta.getAgenciaId().setTipo((String) cmbTipoConta.getSelectedItem().getValue());
puntoVenta.getAgenciaId().setActivo(Boolean.TRUE);
puntoVenta.getAgenciaId().setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
puntoVenta.getAgenciaId().setFecmodif(Calendar.getInstance().getTime());
@ -732,7 +736,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
puntoVenta.getTitularId().setFecmodif(Calendar.getInstance().getTime());
}
if((txtIss.getValue().equals(""))&&(txtRoyaties.getValue().equals(""))){
if((txtIss.getValue().equals(""))&&(txtRoyaties.getValue().equals("")) && (txtExcessoAlta.getValue().equals(""))
&&(txtExcessoBaixa.getValue().equals(""))&&(txtPassagemBaixa.getValue().equals(""))
&&(txtPassagemAlta.getValue().equals(""))&&(txtSeguroBaixa.getValue().equals("")) ){
puntoVenta.setComissaoId(null);
}else{
puntoVenta.getComissaoId().setEnviarrecibo(checkRecibo.isChecked());