MGO - Relatório de serviços (fixes bug #6117)
Tempo: 01 hora git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@42373 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
239ada0db0
commit
c3f0f1912a
|
@ -64,6 +64,18 @@ public class RelatorioCorridas extends Relatorio {
|
|||
corrida.setDataVenda((Date) rset.getObject("dataVenda"));
|
||||
corrida.setDataViaje((Date) rset.getObject("dataViaje"));
|
||||
|
||||
BigDecimal tassas = BigDecimal.ZERO;
|
||||
tassas = tassas.add(corrida.getImporteOutros() != null ? corrida.getImporteOutros() : BigDecimal.ZERO);
|
||||
tassas = tassas.add(corrida.getImportePedagio() != null ? corrida.getImportePedagio() : BigDecimal.ZERO);
|
||||
tassas = tassas.add(corrida.getImporteSeguro() != null ? corrida.getImporteSeguro() : BigDecimal.ZERO);
|
||||
tassas = tassas.add(corrida.getImporteTaxaEmbarque() != null ? corrida.getImporteTaxaEmbarque() : BigDecimal.ZERO);
|
||||
corrida.setPrecioTaxas(tassas);
|
||||
|
||||
BigDecimal precoTotal = BigDecimal.ZERO;
|
||||
precoTotal = precoTotal.add(corrida.getPrecioTaxas() != null ? corrida.getPrecioTaxas() : BigDecimal.ZERO);
|
||||
precoTotal = precoTotal.add(corrida.getPrecioPagado() != null ? corrida.getPrecioPagado() : BigDecimal.ZERO);
|
||||
corrida.setPreco(precoTotal);
|
||||
|
||||
ls.add(corrida);
|
||||
}
|
||||
|
||||
|
|
|
@ -89,12 +89,6 @@ public class RelatorioCorridasBean {
|
|||
}
|
||||
|
||||
public BigDecimal getPreco() {
|
||||
|
||||
BigDecimal precoTotal = BigDecimal.ZERO;
|
||||
precoTotal = precoTotal.add(this.precioTaxas != null ? this.precioTaxas : BigDecimal.ZERO);
|
||||
precoTotal = precoTotal.add(this.precioPagado != null ? this.precioPagado : BigDecimal.ZERO);
|
||||
this.preco = precoTotal;
|
||||
|
||||
return preco;
|
||||
}
|
||||
|
||||
|
@ -207,13 +201,6 @@ public class RelatorioCorridasBean {
|
|||
}
|
||||
|
||||
public BigDecimal getPrecioTaxas() {
|
||||
BigDecimal tassas = BigDecimal.ZERO;
|
||||
tassas = tassas.add(this.importeOutros != null ? this.importeOutros : BigDecimal.ZERO);
|
||||
tassas = tassas.add(this.importePedagio != null ? this.importePedagio : BigDecimal.ZERO);
|
||||
tassas = tassas.add(this.importeSeguro != null ? this.importeSeguro : BigDecimal.ZERO);
|
||||
tassas = tassas.add(this.importeTaxaEmbarque != null ? this.importeTaxaEmbarque : BigDecimal.ZERO);
|
||||
this.precioTaxas = tassas;
|
||||
|
||||
return precioTaxas;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue