FIXES BUG #6491
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@48225 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
211dc006d7
commit
68c84809e3
|
@ -130,14 +130,24 @@ public class CalcularPeajeHibernateDAO extends GenericHibernateDAO<String, Strin
|
|||
BigDecimal pedagioPuro = pvo.getImportePeaje();
|
||||
BigDecimal pedagioCalculado = BigDecimal.valueOf(0);
|
||||
if(orgao.getOrgaoConcedenteId() == 21){ // 21 = artesp
|
||||
if(pedagioPuro == null || indice == null ){
|
||||
if(qtdEixos == null || cantAsientos == null ){
|
||||
int[] x ={-1,r.getRutaId()};
|
||||
return x;}
|
||||
return x;}else{
|
||||
if(indice == null){
|
||||
int[] x ={-2,orgao.getOrgaoConcedenteId()};
|
||||
return x;
|
||||
}
|
||||
}
|
||||
pedagioCalculado = BigDecimal.valueOf(((pedagioPuro.doubleValue() * qtdEixos) / indice.doubleValue()));
|
||||
}else if(orgao.getOrgaoConcedenteId() == 3){// 3 = antt
|
||||
if(pedagioPuro == null || indice == null ){
|
||||
if(qtdEixos == null || cantAsientos == null ){
|
||||
int[] x ={-1,r.getRutaId()};
|
||||
return x;}
|
||||
return x;}else{
|
||||
if(indice == null){
|
||||
int[] x ={-2,orgao.getOrgaoConcedenteId()};
|
||||
return x;
|
||||
}
|
||||
}
|
||||
pedagioCalculado = BigDecimal.valueOf(((pedagioPuro.doubleValue() * qtdEixos) / ( indice.doubleValue() * cantAsientos)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue