fixbug #6970
Correção de merge git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@52243 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
13e97253db
commit
dd50048d21
|
@ -160,7 +160,7 @@ public class TramoRutaServiceImpl implements TramoRutaService {
|
||||||
|
|
||||||
for (SecuenciaRutaTramoCoeficienteVO s : rutaTramoVO.getLsCombinacionRutaTramoVO()) {
|
for (SecuenciaRutaTramoCoeficienteVO s : rutaTramoVO.getLsCombinacionRutaTramoVO()) {
|
||||||
RutaCombinacion rutaCombinacion = new RutaCombinacion();
|
RutaCombinacion rutaCombinacion = new RutaCombinacion();
|
||||||
rutaCombinacion.setIndventa(Boolean.TRUE);
|
rutaCombinacion.setIndventa(s.getPermiteVenda());
|
||||||
rutaCombinacion.setRuta(ruta);
|
rutaCombinacion.setRuta(ruta);
|
||||||
rutaCombinacion.setTramo(tramoService.obtenerTramotPorOrigemDestinoVia(s.getOrigen(), s.getDestino(), s.getVia()));
|
rutaCombinacion.setTramo(tramoService.obtenerTramotPorOrigemDestinoVia(s.getOrigen(), s.getDestino(), s.getVia()));
|
||||||
|
|
||||||
|
@ -273,6 +273,7 @@ public class TramoRutaServiceImpl implements TramoRutaService {
|
||||||
|
|
||||||
secuenciaRutaTramoCoeficienteVO.setCoeficienteTarifa2(s.getCoeficienteTarifa2());
|
secuenciaRutaTramoCoeficienteVO.setCoeficienteTarifa2(s.getCoeficienteTarifa2());
|
||||||
secuenciaRutaTramoCoeficienteVO.setKmCoeficiente2(s.getKmCoeficiente2());
|
secuenciaRutaTramoCoeficienteVO.setKmCoeficiente2(s.getKmCoeficiente2());
|
||||||
|
secuenciaRutaTramoCoeficienteVO.setPermiteVenda(s.getPermiteVenda());
|
||||||
|
|
||||||
lsCombinacionRutaTramoRegresoVO.add(secuenciaRutaTramoCoeficienteVO);
|
lsCombinacionRutaTramoRegresoVO.add(secuenciaRutaTramoCoeficienteVO);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ public class SecuenciaRutaTramoCoeficienteVO {
|
||||||
private BigDecimal kmCoeficiente1;
|
private BigDecimal kmCoeficiente1;
|
||||||
private CoeficienteTarifa coeficienteTarifa2;
|
private CoeficienteTarifa coeficienteTarifa2;
|
||||||
private BigDecimal kmCoeficiente2;
|
private BigDecimal kmCoeficiente2;
|
||||||
|
private Boolean permiteVenda;
|
||||||
|
|
||||||
public SecuenciaRutaTramoCoeficienteVO(Parada origen, Parada destino, Via via, Integer secuencia, BigDecimal kmReal, HoraSistema tiempoRecorrido) {
|
public SecuenciaRutaTramoCoeficienteVO(Parada origen, Parada destino, Via via, Integer secuencia, BigDecimal kmReal, HoraSistema tiempoRecorrido) {
|
||||||
super();
|
super();
|
||||||
|
@ -195,4 +196,12 @@ public class SecuenciaRutaTramoCoeficienteVO {
|
||||||
this.kmCoeficiente2 = kmCoeficiente2;
|
this.kmCoeficiente2 = kmCoeficiente2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Boolean getPermiteVenda() {
|
||||||
|
return permiteVenda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPermiteVenda(Boolean permiteVenda) {
|
||||||
|
this.permiteVenda = permiteVenda;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue