fixes bug#11765
dev:thiago qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@83909 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
94a6372353
commit
164b52cfe0
|
@ -585,7 +585,7 @@ public class CalculoComissaoServiceImpl implements CalculoComissaoService {
|
|||
IndStatusBoleto statusBoleto = IndStatusBoleto.valueOf(rcc.getIndstatusboleto());
|
||||
boolean isSaidaCaixa = rcc.getMotivoCancelacionId() != null;
|
||||
boolean isEntregaPassagem = statusBoleto.equals(IndStatusBoleto.E) && (rcc.getMotivoCancelacionId() == null);
|
||||
if(rcc.isMotivocancelacionTransferido() || rcc.isMotivocancelacionQuitacaoOcd()) {
|
||||
if(rcc.isMotivocancelacionTransferido() || rcc.isMotivocancelacionQuitacaoOcd() || rcc.isDiferencaTrocaGeracaoOcd()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -1065,5 +1065,14 @@ public class BoletoComissao {
|
|||
public void setConferidoEntrega(Boolean conferidoEntrega) {
|
||||
this.conferidoEntrega = conferidoEntrega;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retorna TRUE se o motivo de cancelamento for uma geração de OCD e a forma de pagamento for Geração de OCD
|
||||
* @return
|
||||
*/
|
||||
public boolean isDiferencaTrocaGeracaoOcd() {
|
||||
return isMotivocancelacionGeracaoOcd() &&
|
||||
getFormapagoId() != null && getFormapagoId() == Constantes.FORMA_PAGO_GERACAO_OCD.intValue();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue