fixes bug #9386
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@74509 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
a618ef7efd
commit
3b8ed36ff1
|
@ -55,8 +55,8 @@ public class FiscalRdi implements Comparable<FiscalRdi> {
|
|||
this.credPres = credPres;
|
||||
this.icmsRec = icmsRec;
|
||||
}
|
||||
|
||||
public void initDados(){
|
||||
|
||||
public void initDados() {
|
||||
this.quantBilhetes = BigDecimal.ZERO;
|
||||
this.tarifa = BigDecimal.ZERO;
|
||||
this.seguro = BigDecimal.ZERO;
|
||||
|
@ -259,9 +259,11 @@ public class FiscalRdi implements Comparable<FiscalRdi> {
|
|||
public int compareTo(FiscalRdi o) {
|
||||
int result = this.estado.compareToIgnoreCase(o.estado);
|
||||
if (result == 0) {
|
||||
return this.tipoViagem.compareToIgnoreCase(o.tipoViagem);
|
||||
} else {
|
||||
return result;
|
||||
result = this.tipoViagem.compareToIgnoreCase(o.tipoViagem);
|
||||
}
|
||||
if (result == 0) {
|
||||
return o.tipoReceita.compareToIgnoreCase(this.tipoReceita);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue