gleimar 2012-12-20 14:05:07 +00:00
parent f42902b3e1
commit bd134882a0
2 changed files with 32 additions and 9 deletions

View File

@ -63,6 +63,13 @@ public class CategoriaDescuento implements Serializable {
private List<CategoriaPeriodo> categoriaPeriodoList;
@Column(name = "INDIMPRIMEBOLETO")
private Boolean indImprimeBoleto;
@Column(name = "INDCUOTA")
private Boolean indCuota;
@Column(name = "INDCUOTATRAMO")
private Boolean indCuotaTramo;
@Column(name = "TIEMPOCUOTA")
@Temporal(TemporalType.TIMESTAMP)
private Date tiempoCuota;
public CategoriaDescuento() {
}
@ -173,6 +180,7 @@ public class CategoriaDescuento implements Serializable {
this.indImprimeBoleto = indImprimeBoleto;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
@ -203,4 +211,28 @@ public class CategoriaDescuento implements Serializable {
public String toString() {
return "com.rjconsultores.ventaboletos.entidad.CategoriaDescuento[categoriadescuentoId=" + categoriadescuentoId + "]";
}
public Boolean getIndCuota() {
return indCuota;
}
public void setIndCuota(Boolean indCuota) {
this.indCuota = indCuota;
}
public Boolean getIndCuotaTramo() {
return indCuotaTramo;
}
public void setIndCuotaTramo(Boolean indCuotaTramo) {
this.indCuotaTramo = indCuotaTramo;
}
public Date getTiempoCuota() {
return tiempoCuota;
}
public void setTiempoCuota(Date tiempoCuota) {
this.tiempoCuota = tiempoCuota;
}
}

View File

@ -92,15 +92,6 @@ public class TramoRutaServiceImpl implements TramoRutaService {
this.validarGenerarTramosRutas(rutaTramoVO);
//Validação retirada
//no Brasil pode existir rutas com o mesmo nome (Ida e Volta por exemplo legalmente tem o mesmo nome)
// Fabio e Xande
// List<Ruta> lsRutaExiste = rutaService.buscar(rutaTramoVO.getDescRuta(), rutaTramoVO.getClaseServicio(), rutaTramoVO.getSolicitaNombrePasajero());
//
// if (!lsRutaExiste.isEmpty()) {
// throw new BusinessException("MSG.Registro.Existe");
// }
// Genero los tramos y tramos servicios de la combinacion que no existen
// Aqui si genera tambien los tramos de la secuencia
for (SecuenciaRutaTramoVO s : rutaTramoVO.getLsCombinacionRutaTramoVO()) {