fixes bug #7612
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@57201 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
f27184d716
commit
db8e31f577
|
@ -727,6 +727,10 @@ public class ConferenciaComissaoHibernateDAO extends GenericHibernateDAO<Confere
|
||||||
boletoComissao.setFormapagos(new HashSet<FormapagoVO>());
|
boletoComissao.setFormapagos(new HashSet<FormapagoVO>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(boletoComissao.getNumFolioSistema() != null && (boletoComissao.getNumFolioSistema().equals("210703") || boletoComissao.getNumFolioSistema().equals("216049"))) {
|
||||||
|
log.info("");
|
||||||
|
}
|
||||||
|
|
||||||
if(lsBoletoComissao.contains(boletoComissao)) {
|
if(lsBoletoComissao.contains(boletoComissao)) {
|
||||||
BoletoComissao aux = lsBoletoComissao.get(lsBoletoComissao.indexOf(boletoComissao));
|
BoletoComissao aux = lsBoletoComissao.get(lsBoletoComissao.indexOf(boletoComissao));
|
||||||
aux.setComempcategoriaId(boletoComissao.getComempcategoriaId() != null ? boletoComissao.getComempcategoriaId() : aux.getComempcategoriaId());
|
aux.setComempcategoriaId(boletoComissao.getComempcategoriaId() != null ? boletoComissao.getComempcategoriaId() : aux.getComempcategoriaId());
|
||||||
|
|
|
@ -457,21 +457,14 @@ public class ConferenciaComissaoServiceImpl implements ConferenciaComissaoServic
|
||||||
}
|
}
|
||||||
|
|
||||||
if(boletoComissao.isStatusVendido() || boletoComissao.isStatusTroca()) {
|
if(boletoComissao.isStatusVendido() || boletoComissao.isStatusTroca()) {
|
||||||
log.info("+"+formapagoBoleto.getImporteFormatado());
|
|
||||||
formapago.add(formapagoBoleto.getImporte());
|
formapago.add(formapagoBoleto.getImporte());
|
||||||
log.info("Tipo: "+formapago.getDescpago()+" Valor atual: "+formapago.getImporteFormatado());
|
|
||||||
} else if(boletoComissao.isStatusCancelado() &&
|
} else if(boletoComissao.isStatusCancelado() &&
|
||||||
(boletoComissao.isMotivocancelacionCancelado() || boletoComissao.isMotivocancelacionDevolvido() || boletoComissao.isMotivocancelacionTrocado())) {
|
(boletoComissao.isMotivocancelacionCancelado() || boletoComissao.isMotivocancelacionDevolvido() || boletoComissao.isMotivocancelacionTrocado())) {
|
||||||
log.info("-"+formapagoBoleto.getImporteFormatado());
|
|
||||||
formapago.subtract(formapagoBoleto.getImporte());
|
formapago.subtract(formapagoBoleto.getImporte());
|
||||||
log.info("Tipo: "+formapago.getDescpago()+" Valor atual: "+formapago.getImporteFormatado());
|
|
||||||
} else {
|
|
||||||
log.info("Nao encontrado"+boletoComissao.getMotivoCancelacionId());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
log.info("----");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (EventosFinanceirosVO eventosFinanceiros : lsEventosFinanceiros) {
|
for (EventosFinanceirosVO eventosFinanceiros : lsEventosFinanceiros) {
|
||||||
|
@ -483,13 +476,9 @@ public class ConferenciaComissaoServiceImpl implements ConferenciaComissaoServic
|
||||||
}
|
}
|
||||||
|
|
||||||
if(eventosFinanceiros.isCredito()) {
|
if(eventosFinanceiros.isCredito()) {
|
||||||
log.info("+"+eventosFinanceiros.getImpingreso());
|
|
||||||
formapagoEventoFinanceiro.add(eventosFinanceiros.getImpingreso());
|
formapagoEventoFinanceiro.add(eventosFinanceiros.getImpingreso());
|
||||||
log.info("Tipo: "+formapagoEventoFinanceiro.getDescpago()+" Valor atual: "+formapagoEventoFinanceiro.getImporteFormatado());
|
|
||||||
} else if(eventosFinanceiros.isDebito()) {
|
} else if(eventosFinanceiros.isDebito()) {
|
||||||
log.info("-"+eventosFinanceiros.getImpingreso());
|
|
||||||
formapagoEventoFinanceiro.subtract(eventosFinanceiros.getImpingreso());
|
formapagoEventoFinanceiro.subtract(eventosFinanceiros.getImpingreso());
|
||||||
log.info("Tipo: "+formapagoEventoFinanceiro.getDescpago()+" Valor atual: "+formapagoEventoFinanceiro.getImporteFormatado());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
resumoComissao.setTotalFormapago(totalFormapagos);
|
resumoComissao.setTotalFormapago(totalFormapagos);
|
||||||
|
|
|
@ -575,12 +575,16 @@ public class BoletoComissao {
|
||||||
(isVendaBilheteNormal(getTipoVenta()) && isStatusVendido() && isMotivocancelacionCancelado()) || // Venda cancelada
|
(isVendaBilheteNormal(getTipoVenta()) && isStatusVendido() && isMotivocancelacionCancelado()) || // Venda cancelada
|
||||||
(isVendaBilheteNormal(getTipoVenta()) && isStatusVendido() && isMotivocancelacionDevolvido()) || // Venda devolvida
|
(isVendaBilheteNormal(getTipoVenta()) && isStatusVendido() && isMotivocancelacionDevolvido()) || // Venda devolvida
|
||||||
(isVendaBilheteNormal(getTipoVenta()) && isStatusVendido() && isMotivocancelacionAgrupamento()) || // Agrupamento de corrida
|
(isVendaBilheteNormal(getTipoVenta()) && isStatusVendido() && isMotivocancelacionAgrupamento()) || // Agrupamento de corrida
|
||||||
|
(isVendaBilheteNormal(getTipoVenta()) && isStatusVendido() && isMotivocancelacionCheckin()) || // Venda normal Checkin
|
||||||
|
(isVendaBilheteTroca(getTipoVenta()) && isStatusTroca() && isMotivocancelacionCheckin()) || // Venda troca Checkin
|
||||||
|
(isVendaBilheteTransferencia(getTipoVenta()) && isStatusTroca() && isMotivocancelacionCheckin()) || // Venda transferencia Checkin
|
||||||
(isVendaBilheteTroca(getTipoVenta()) && isStatusTroca() && isSemMotivocancelacion()) || // Novo bilhete da troca
|
(isVendaBilheteTroca(getTipoVenta()) && isStatusTroca() && isSemMotivocancelacion()) || // Novo bilhete da troca
|
||||||
(isVendaBilheteTroca(getTipoVenta()) && isStatusVendido() && isSemMotivocancelacion()) || // Novo bilhete de agrupamento de corrida
|
(isVendaBilheteTroca(getTipoVenta()) && isStatusVendido() && isSemMotivocancelacion()) || // Novo bilhete de agrupamento de corrida
|
||||||
(isVendaBilheteTroca(getTipoVenta()) && isStatusTroca() && isMotivocancelacionDevolvido()) || // Novo bilhete da troca devolvido
|
(isVendaBilheteTroca(getTipoVenta()) && isStatusTroca() && isMotivocancelacionDevolvido()) || // Novo bilhete da troca devolvido
|
||||||
(isVendaBilheteTransferencia(getTipoVenta()) && isStatusTroca() && isMotivocancelacionCancelado()) || // Novo bilhete transferido devolvido
|
(isVendaBilheteTransferencia(getTipoVenta()) && isStatusTroca() && isMotivocancelacionCancelado()) || // Novo bilhete transferido devolvido
|
||||||
(isVendaBilheteTroca(getTipoVenta()) && isStatusTroca() && isMotivocancelacionDevolvido()) || // Novo bilhete da troca cancelado
|
(isVendaBilheteTroca(getTipoVenta()) && isStatusTroca() && isMotivocancelacionDevolvido()) || // Novo bilhete da troca cancelado
|
||||||
(isVendaBilheteTransferencia(getTipoVenta()) && isStatusTroca() && isMotivocancelacionCancelado()); // Novo bilhete transferido cancelado
|
(isVendaBilheteTransferencia(getTipoVenta()) && isStatusTroca() && isMotivocancelacionCancelado()) || // Novo bilhete transferido cancelado
|
||||||
|
(isVendaBilheteTransferencia(getTipoVenta()) && isStatusEntregue() && isSemMotivocancelacion()); // bilhete transferido entregue
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ABA BILHETE DEVOLVIDO */
|
/** ABA BILHETE DEVOLVIDO */
|
||||||
|
@ -590,7 +594,7 @@ public class BoletoComissao {
|
||||||
|
|
||||||
/** ABA BILHETE VENDIDO */
|
/** ABA BILHETE VENDIDO */
|
||||||
public boolean isBilheteNormalChekin() {
|
public boolean isBilheteNormalChekin() {
|
||||||
return isVendaBilheteCheckin(getTipoVenta()) && isStatusVendido() && isMotivocancelacionCheckin();
|
return isVendaBilheteCheckin(getTipoVenta()) && isStatusVendido();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ABA BILHETE VENDIDO */
|
/** ABA BILHETE VENDIDO */
|
||||||
|
|
Loading…
Reference in New Issue