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
This commit is contained in:
@@ -69,11 +69,11 @@ public class SQLiteInformeLibroDeVentasContentDAO extends InformeLibroDeVentasCo
|
||||
|
||||
public SQLiteInformeLibroDeVentasContentDAO() {
|
||||
this.connectionHolder = new SQLiteConnectionHolder();
|
||||
this.map = new HashMap<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<InformeLibroDeVentasContent> getInformeMensual(LocalDate date) {
|
||||
this.map = new HashMap<>();
|
||||
try (Connection conn = connectionHolder.getConnection()) {
|
||||
String queryTotales =
|
||||
"select " +
|
||||
|
||||
Reference in New Issue
Block a user