From 4dd10cbf71eb298ed0b8b2d3a8a66624854fb3de Mon Sep 17 00:00:00 2001 From: bruno Date: Tue, 17 Sep 2013 14:16:59 +0000 Subject: [PATCH] =?UTF-8?q?-=20Limpa=20o=20cache=20de=20configura=C3=A7?= =?UTF-8?q?=C3=A3o=20de=20imposto=20a=20cada=20execu=C3=A7=C3=A3o=20de=20r?= =?UTF-8?q?elat=C3=B3rio.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@30987 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../relatorios/impl/RelatorioReceitaDiariaAgencia.java | 1 + .../ventaboletos/relatorios/impl/RelatorioTaxasLinha.java | 1 + .../ventaboletos/relatorios/negocio/CalculoImposto.java | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioReceitaDiariaAgencia.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioReceitaDiariaAgencia.java index ecc4dbaaf..a6a4881b1 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioReceitaDiariaAgencia.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioReceitaDiariaAgencia.java @@ -33,6 +33,7 @@ public class RelatorioReceitaDiariaAgencia extends Relatorio { super(parametros, conexao); + CalculoImposto.limpaCache(); this.mapCacheConfigComissao = new HashMap>(); this.setCustomDataSource(new ArrayDataSource(this) { diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioTaxasLinha.java b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioTaxasLinha.java index bc0f41b52..3c352b1b3 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioTaxasLinha.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/impl/RelatorioTaxasLinha.java @@ -30,6 +30,7 @@ public class RelatorioTaxasLinha extends Relatorio { */ public RelatorioTaxasLinha(Map parametros, Connection conexao) throws Exception { super(parametros, conexao); + CalculoImposto.limpaCache(); this.setCustomDataSource(new DataSource(this) { diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/negocio/CalculoImposto.java b/src/java/com/rjconsultores/ventaboletos/relatorios/negocio/CalculoImposto.java index 736fb21fa..b2101e16f 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/negocio/CalculoImposto.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/negocio/CalculoImposto.java @@ -20,6 +20,10 @@ import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; public class CalculoImposto { static Map> mapCacheConfigImposto = new HashMap>(); + + public static void limpaCache(){ + mapCacheConfigImposto = new HashMap>(); + } public static BigDecimal getValorImpostoRelatorioReceitaDiaria(Connection conexao, Integer estadoId, Integer empresaId, String indInterestadual, BigDecimal tarifa, BigDecimal seguro, BigDecimal embarque, BigDecimal pedagio, BigDecimal bagagem, Boolean indBaseTarifa, Boolean indBaseSeguro, Boolean indBaseEmbarque, Boolean indBasePedagio, Boolean indBaseBagagem) throws Exception { HashMap configImposto = new HashMap();