fixes bug #8538
fixes bug #8503 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@65457 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
35b7d2efaa
commit
775afc17f8
|
@ -35,6 +35,7 @@ public class Constantes {
|
|||
public static Long TPV_CHECKIN_VIAGEM = new Long(41); // chekin boletos
|
||||
public static Long TPV_BOLETO_ABIERTO = new Long(9);
|
||||
public static Long TPV_CONFIRMA_ABIERTO = new Long(82);
|
||||
public static Long TPV_VENDA_BOLETO_ABERTO_MANUAL = new Long(39);
|
||||
|
||||
public static Long TPV_RESERVACION_POR_INTERNET = new Long(16);
|
||||
public static Long TPV_POR_INTERNET = new Long(12);
|
||||
|
|
|
@ -557,6 +557,10 @@ public class BoletoComissao {
|
|||
public boolean isVendaBilheteManual(Integer tipoVenta) {
|
||||
return tipoVenta == Constantes.TPV_MANUAL.intValue();
|
||||
}
|
||||
|
||||
public boolean isVendaBilheteAbertoManual(Integer tipoVenta) {
|
||||
return tipoVenta == Constantes.TPV_VENDA_BOLETO_ABERTO_MANUAL.intValue();
|
||||
}
|
||||
|
||||
public boolean isVendaBilheteAberto(Integer tipoVenta) {
|
||||
return tipoVenta == Constantes.TPV_BOLETO_ABIERTO.intValue();
|
||||
|
@ -618,6 +622,12 @@ public class BoletoComissao {
|
|||
return (isVendaBilheteManual(getTipoVentaOriginal()) && isStatusVendido() && isSemMotivocancelacion()) || // Venda sem alteracao
|
||||
(isVendaBilheteManual(getTipoVentaOriginal()) && isStatusVendido() && isMotivocancelacionTransferido()); // Venda transferida;
|
||||
}
|
||||
|
||||
/** ABA BILHETE MANUAL */
|
||||
public boolean isBilhetesAbertoManualVendido() {
|
||||
return (isVendaBilheteAbertoManual(getTipoVentaOriginal()) && isStatusVendido() && isSemMotivocancelacion()) || // Venda sem alteracao
|
||||
(isVendaBilheteAbertoManual(getTipoVentaOriginal()) && isStatusVendido() && isMotivocancelacionTransferido()); // Venda transferida;
|
||||
}
|
||||
|
||||
/** ABA BILHETE VENDIDO */
|
||||
public boolean isBilheteNormalVendido() {
|
||||
|
@ -970,7 +980,8 @@ public class BoletoComissao {
|
|||
|| isBilheteGapDevolvido()
|
||||
|| isBilheteGapVendido()
|
||||
|| isBilheteGapTrocadoCancelado()
|
||||
|| isBilheteGapTrocadoDevolvido();
|
||||
|| isBilheteGapTrocadoDevolvido()
|
||||
|| isBilhetesAbertoManualVendido();
|
||||
}
|
||||
|
||||
public String getOrderExigeConferencia() {
|
||||
|
@ -985,7 +996,8 @@ public class BoletoComissao {
|
|||
}
|
||||
|
||||
public boolean isAbaBilheteManual() {
|
||||
return isBilhetesManualVendido();
|
||||
return isBilhetesManualVendido() ||
|
||||
isBilhetesAbertoManualVendido();
|
||||
}
|
||||
|
||||
public boolean isAbaBilheteVendido() {
|
||||
|
|
Loading…
Reference in New Issue