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 (getBoletoId() == null) {
|
||||||
if (other.getBoletoId() != null)
|
if (other.getBoletoId() != null)
|
||||||
return false;
|
return false;
|
||||||
}
|
} else if (!getBoletoId().equals(other.getBoletoId()))
|
||||||
else if (!getBoletoId().equals(other.getBoletoId()))
|
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -382,28 +381,22 @@ public class BoletoComissao {
|
||||||
public String getSituacaoBilhete() {
|
public String getSituacaoBilhete() {
|
||||||
if (isOcd()) {
|
if (isOcd()) {
|
||||||
return "OCD";
|
return "OCD";
|
||||||
}
|
} else if ((isStatusCancelado()) && (isMotivocancelacionDevolvido() || isMotivocancelacionCancelado())
|
||||||
else if ((isStatusCancelado()) && (isMotivocancelacionDevolvido() || isMotivocancelacionCancelado())
|
|
||||||
&& StringUtils.isNotBlank(getDescmotivocancelacion())) {
|
&& StringUtils.isNotBlank(getDescmotivocancelacion())) {
|
||||||
return getDescmotivocancelacion();
|
return getDescmotivocancelacion();
|
||||||
}
|
} else if ((isStatusVendido() || isStatusCancelado())
|
||||||
else if ((isStatusVendido() || isStatusCancelado())
|
|
||||||
&& !isMotivocancelacionDevolvido() && !isMotivocancelacionCancelado()) {
|
&& !isMotivocancelacionDevolvido() && !isMotivocancelacionCancelado()) {
|
||||||
if (isStatusCancelado() && isMotivocancelacionTrocado()) {
|
if (isStatusCancelado() && isMotivocancelacionTrocado()) {
|
||||||
return "B. VENDIDO TROCADO";
|
return "B. VENDIDO TROCADO";
|
||||||
}
|
} else if (isStatusVendido() && isMotivocancelacionTransferido()) {
|
||||||
else if (isStatusVendido() && isMotivocancelacionTransferido()) {
|
|
||||||
return "B. VENDIDO TRANSFERIDO";
|
return "B. VENDIDO TRANSFERIDO";
|
||||||
}
|
}
|
||||||
}
|
} else if (isStatusTroca()) {
|
||||||
else if (isStatusTroca()) {
|
|
||||||
if (isVendaBilheteTroca(getTipoVenta()) || isVendaGap(getTipoVenta())) {
|
if (isVendaBilheteTroca(getTipoVenta()) || isVendaGap(getTipoVenta())) {
|
||||||
return "B. DA TROCA";
|
return "B. DA TROCA";
|
||||||
}
|
} else if (isVendaBilheteTransferencia(getTipoVenta()) || isVendaGap(getTipoVenta())) {
|
||||||
else if (isVendaBilheteTransferencia(getTipoVenta()) || isVendaGap(getTipoVenta())) {
|
|
||||||
return "B. DA TRANSFERENCIA";
|
return "B. DA TRANSFERENCIA";
|
||||||
}
|
} else if (isVendaBilheteConfirmaAberto(getTipoVenta())) {
|
||||||
else if (isVendaBilheteConfirmaAberto(getTipoVenta())) {
|
|
||||||
return "CONFIRMAÇÃO ABERTO";
|
return "CONFIRMAÇÃO ABERTO";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -674,7 +667,7 @@ public class BoletoComissao {
|
||||||
|
|
||||||
/** ABA BILHETE DEVOLVIDO */
|
/** ABA BILHETE DEVOLVIDO */
|
||||||
public boolean isBilheteAbertoDevolvido() {
|
public boolean isBilheteAbertoDevolvido() {
|
||||||
return (isVendaBilheteConfirmaAberto(getTipoVenta())||isVendaBilheteAberto(tipoVenta)) && isStatusCancelado() && isMotivocancelacionDevolvido();
|
return (isVendaBilheteConfirmaAberto(getTipoVenta()) || isVendaBilheteAberto(tipoVenta)) && isStatusCancelado() && isMotivocancelacionDevolvido();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ABA BILHETE DEVOLVIDO */
|
/** ABA BILHETE DEVOLVIDO */
|
||||||
|
@ -689,7 +682,7 @@ public class BoletoComissao {
|
||||||
|
|
||||||
/** ABA BILHETE DEVOLVIDO */
|
/** ABA BILHETE DEVOLVIDO */
|
||||||
public boolean isBilheteAbertoDevolvidoComOcd() {
|
public boolean isBilheteAbertoDevolvidoComOcd() {
|
||||||
return isVendaBilheteConfirmaAberto(getTipoVenta()) && isStatusCancelado() && isMotivocancelacionGeracaoOcd();
|
return (isVendaBilheteConfirmaAberto(getTipoVenta()) || isVendaBilheteAberto(tipoVenta)) && isStatusCancelado() && isMotivocancelacionGeracaoOcd();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ABA BILHETE DEVOLVIDO */
|
/** ABA BILHETE DEVOLVIDO */
|
||||||
|
@ -975,10 +968,10 @@ public class BoletoComissao {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOrderExigeConferencia() {
|
public String getOrderExigeConferencia() {
|
||||||
if(isExigeConferenciaAba() || isExigeConferencia() || isExigeConferenciaBoletoDevolvido()) {
|
if (isExigeConferenciaAba() || isExigeConferencia() || isExigeConferenciaBoletoDevolvido()) {
|
||||||
if(!isConferido()) {
|
if (!isConferido()) {
|
||||||
return "A";
|
return "A";
|
||||||
} else if (isConferido()){
|
} else if (isConferido()) {
|
||||||
return "B";
|
return "B";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue