wilian 2017-01-03 18:45:43 +00:00
parent a4c8faf203
commit c994bb9470
2 changed files with 43 additions and 8 deletions

View File

@ -63,4 +63,6 @@ public class Constantes {
public static final int INTERVALO_FECHAMENTO_MENSAL = 30;
public static final int LIMITE_EVENTO_EXTRA_EDITAVEL = 99000;//TipoEventoExtra com id >= 99000 não são editáveis.
public static final String DESCONTO_COMPONENTE_PRECO = "DESCONTO_COMPONENTE_PRECO";
}

View File

@ -27,12 +27,6 @@ import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.annotation.Transactional;
import com.rjconsultores.ventaboletos.enums.HorarioLiberacaoVendaPassagem;
@ -121,6 +115,12 @@ public class CategoriaDescuento implements Serializable {
@Column(name = "HORARIOLIBERACAOVENDAPESSAGEM")
private HorarioLiberacaoVendaPassagem horarioLiberacaoVendaPassagem;
@Column(name = "TIPODESCCOMPPRECO")
private Integer tipodesccomppreco;
@Column(name = "DESCCOMPPRECO")
private BigDecimal desccomppreco;
public enum DisponibilidadeFeriado {
// Declaração dos enum
GERARSEMPRE("SEMPRE", "S"),
@ -147,6 +147,23 @@ public class CategoriaDescuento implements Serializable {
}
}
public enum TipoDescontoComponentePreco {
DESCONTO_COMPONENTE_PRECO_PERC(1),
DESCONTO_COMPONENTE_PRECO_VALOR(2);
public final Integer valor;
public Integer getValor() {
return valor;
}
private TipoDescontoComponentePreco(Integer valor) {
this.valor = valor;
}
}
public CategoriaDescuento() {
}
@ -501,4 +518,20 @@ public class CategoriaDescuento implements Serializable {
this.horarioLiberacaoVendaPassagem = horarioLiberacaoVendaPassagem;
}
public Integer getTipodesccomppreco() {
return tipodesccomppreco;
}
public void setTipodesccomppreco(Integer tipodesccomppreco) {
this.tipodesccomppreco = tipodesccomppreco;
}
public BigDecimal getDesccomppreco() {
return desccomppreco;
}
public void setDesccomppreco(BigDecimal desccomppreco) {
this.desccomppreco = desccomppreco;
}
}