fixes bug #7995
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@62174 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
6a50abb93d
commit
02e940f183
|
@ -296,8 +296,7 @@ public class BoletoComissao {
|
|||
if (getBoletoId() == null) {
|
||||
if (other.getBoletoId() != null)
|
||||
return false;
|
||||
}
|
||||
else if (!getBoletoId().equals(other.getBoletoId()))
|
||||
} else if (!getBoletoId().equals(other.getBoletoId()))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
@ -382,28 +381,22 @@ public class BoletoComissao {
|
|||
public String getSituacaoBilhete() {
|
||||
if (isOcd()) {
|
||||
return "OCD";
|
||||
}
|
||||
else if ((isStatusCancelado()) && (isMotivocancelacionDevolvido() || isMotivocancelacionCancelado())
|
||||
} else if ((isStatusCancelado()) && (isMotivocancelacionDevolvido() || isMotivocancelacionCancelado())
|
||||
&& StringUtils.isNotBlank(getDescmotivocancelacion())) {
|
||||
return getDescmotivocancelacion();
|
||||
}
|
||||
else if ((isStatusVendido() || isStatusCancelado())
|
||||
} else if ((isStatusVendido() || isStatusCancelado())
|
||||
&& !isMotivocancelacionDevolvido() && !isMotivocancelacionCancelado()) {
|
||||
if (isStatusCancelado() && isMotivocancelacionTrocado()) {
|
||||
return "B. VENDIDO TROCADO";
|
||||
}
|
||||
else if (isStatusVendido() && isMotivocancelacionTransferido()) {
|
||||
} else if (isStatusVendido() && isMotivocancelacionTransferido()) {
|
||||
return "B. VENDIDO TRANSFERIDO";
|
||||
}
|
||||
}
|
||||
else if (isStatusTroca()) {
|
||||
} else if (isStatusTroca()) {
|
||||
if (isVendaBilheteTroca(getTipoVenta()) || isVendaGap(getTipoVenta())) {
|
||||
return "B. DA TROCA";
|
||||
}
|
||||
else if (isVendaBilheteTransferencia(getTipoVenta()) || isVendaGap(getTipoVenta())) {
|
||||
} else if (isVendaBilheteTransferencia(getTipoVenta()) || isVendaGap(getTipoVenta())) {
|
||||
return "B. DA TRANSFERENCIA";
|
||||
}
|
||||
else if (isVendaBilheteConfirmaAberto(getTipoVenta())) {
|
||||
} else if (isVendaBilheteConfirmaAberto(getTipoVenta())) {
|
||||
return "CONFIRMAÇÃO ABERTO";
|
||||
}
|
||||
}
|
||||
|
@ -689,7 +682,7 @@ public class BoletoComissao {
|
|||
|
||||
/** ABA BILHETE DEVOLVIDO */
|
||||
public boolean isBilheteAbertoDevolvidoComOcd() {
|
||||
return isVendaBilheteConfirmaAberto(getTipoVenta()) && isStatusCancelado() && isMotivocancelacionGeracaoOcd();
|
||||
return (isVendaBilheteConfirmaAberto(getTipoVenta()) || isVendaBilheteAberto(tipoVenta)) && isStatusCancelado() && isMotivocancelacionGeracaoOcd();
|
||||
}
|
||||
|
||||
/** ABA BILHETE DEVOLVIDO */
|
||||
|
|
Loading…
Reference in New Issue