From f7b3ea9ed11d913131836fd4e412a8f869684c24 Mon Sep 17 00:00:00 2001 From: Daniel Cortes Date: Tue, 5 Feb 2019 17:32:12 -0300 Subject: [PATCH] Solucionado bug en el que al generar un informe nuevo, se mantenia la informacion antigua en el map, esto se producia porque se reutilizaba el objeto que habia generado el informe anterior --- .gitignore | 1 + .../libro_de_ventas/SQLiteInformeLibroDeVentasContentDAO.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5945bd4..b2c03ce 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ lib .idea dist/local-release/data dist/local-release/logs +dist/local-release/informes dist/mackena-release dist/rodriguez-release diff --git a/src/danielcortes/xyz/models/informes/libro_de_ventas/SQLiteInformeLibroDeVentasContentDAO.java b/src/danielcortes/xyz/models/informes/libro_de_ventas/SQLiteInformeLibroDeVentasContentDAO.java index 86d40fe..0276608 100644 --- a/src/danielcortes/xyz/models/informes/libro_de_ventas/SQLiteInformeLibroDeVentasContentDAO.java +++ b/src/danielcortes/xyz/models/informes/libro_de_ventas/SQLiteInformeLibroDeVentasContentDAO.java @@ -69,11 +69,11 @@ public class SQLiteInformeLibroDeVentasContentDAO extends InformeLibroDeVentasCo public SQLiteInformeLibroDeVentasContentDAO() { this.connectionHolder = new SQLiteConnectionHolder(); - this.map = new HashMap<>(); } @Override public Collection getInformeMensual(LocalDate date) { + this.map = new HashMap<>(); try (Connection conn = connectionHolder.getConnection()) { String queryTotales = "select " +