Bug corrigido (fixes bug #5287)

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@35592 d1611594-4594-4d17-8e1d-87c2c4800839
master
lucas.taia 2014-05-23 15:06:22 +00:00
parent 2e30a68450
commit 0486f328a6
1 changed files with 8 additions and 5 deletions

View File

@ -810,10 +810,13 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
cmbPessoa.getValue();
cmbTipoConta.getValue();
cmbPosicao.getValue();
cmbPuntoVentaPadre.getValue(true);
if(puntoVenta.getPuntoVentaPadre() == null && !cmbPuntoVentaPadre.getValue().isEmpty()){
cmbPuntoVentaPadre.getValue(true);
}
// checar uma forma onde o proprio componente coloque como null o atributo
if (cmbPuntoVentaPadre.getSelectedItem() == null) {
if (cmbPuntoVentaPadre.getValue().isEmpty()) {
puntoVenta.setPuntoVentaPadre(null);
}
List<PuntoVenta> lsPuntoVenta = puntoVentaService.buscaPuntoVenta(txtNumPtoVta.getValue());