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

@ -807,13 +807,16 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
cmbColonia.getValue();
cmbCiudad.getValue();
cmbBanco.getValue();
cmbPessoa.getValue();
cmbPessoa.getValue();
cmbTipoConta.getValue();
cmbPosicao.getValue();
cmbPuntoVentaPadre.getValue(true);
cmbPosicao.getValue();
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());
@ -2102,7 +2105,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
public void onChange$cmbPuntoVentaPadre(Event ev) throws InterruptedException {
if (puntoVenta.getPuntoventaId() != null) {
List<PuntoVenta> lsPuntosSubordinados = puntoVentaService.buscarPuntoVentaSubordinados(puntoVenta);
if (!lsPuntosSubordinados.isEmpty()) {
StringBuilder sbPuntosSubordinados = new StringBuilder("\n");
for (PuntoVenta pv : lsPuntosSubordinados) {