fixes bug #8826
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@67520 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
f18069638c
commit
820838bbe4
|
@ -562,7 +562,7 @@ public class ConferenciaComissaoServiceImpl implements ConferenciaComissaoServic
|
|||
private void carregarTotalFormapago(ResumoComissao resumoComissao, List<BoletoComissao> boletoComissaos, List<EventosFinanceirosVO> lsEventosFinanceiros) {
|
||||
List<FormapagoVO> totalFormapagos = new ArrayList<FormapagoVO>();
|
||||
for (BoletoComissao boletoComissao : boletoComissaos) {
|
||||
if (boletoComissao.isTotalizarFormapago()) {
|
||||
if (boletoComissao.isTotalizarTipovenda() && !boletoComissao.isNaoSomarBilhete()) {
|
||||
for (FormapagoVO formapagoBoleto : boletoComissao.getFormapagos()) {
|
||||
FormapagoVO formapago;
|
||||
if (totalFormapagos.contains(formapagoBoleto)) {
|
||||
|
@ -574,8 +574,12 @@ public class ConferenciaComissaoServiceImpl implements ConferenciaComissaoServic
|
|||
|
||||
if (boletoComissao.isAbaBilheteVendido() || boletoComissao.isAbaGapVendido() || boletoComissao.isAbaBilheteManual()) {
|
||||
formapago.add(formapagoBoleto.getImporte());
|
||||
} else if ((boletoComissao.isAbaBilheteCancelado() || boletoComissao.isAbaBilheteDevolvido() || boletoComissao.isAbaGapCancelado() || boletoComissao.isAbaGapDevolvido())) {
|
||||
} else if (boletoComissao.isAbaBilheteCancelado() || boletoComissao.isAbaGapCancelado()) {
|
||||
formapago.subtract(formapagoBoleto.getImporte());
|
||||
} else if(boletoComissao.isAbaBilheteDevolvido() || boletoComissao.isAbaGapDevolvido()) {
|
||||
if(boletoComissao.isMotivocancelacionTrocado() || boletoComissao.isMotivocancelacionDevolvido()) {
|
||||
formapago.subtract(formapagoBoleto.getImporte());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -785,7 +785,7 @@ public class BoletoComissao {
|
|||
return totalizar;
|
||||
}
|
||||
|
||||
private boolean isTotalizarTipovenda() {
|
||||
public boolean isTotalizarTipovenda() {
|
||||
return isAbaBilheteManual() ||
|
||||
isAbaBilheteVendido() ||
|
||||
isAbaBilheteCancelado() ||
|
||||
|
|
Loading…
Reference in New Issue