Solucionado bug que no generaba el ultimo dia del mes :3
This commit is contained in:
@@ -162,7 +162,7 @@ public class SQLiteCajaDAO extends CajaDAO {
|
||||
@Override
|
||||
public void createCajasForMonth(LocalDate month) {
|
||||
LocalDate date = month.withDayOfMonth(1);
|
||||
LocalDate endDate = date.withDayOfMonth(date.lengthOfMonth());
|
||||
LocalDate endDate = date.withDayOfMonth(date.lengthOfMonth()).plusDays(1);
|
||||
|
||||
while(date.isBefore(endDate)) {
|
||||
if(this.findByFecha(date) != null){
|
||||
|
||||
@@ -57,6 +57,7 @@ public class SQLiteInformeMensualContentDAO extends InformeMensualContentDAO {
|
||||
ps.setString(1, date.withDayOfMonth(1).toString());
|
||||
ps.setString(2, date.withDayOfMonth(date.lengthOfMonth()).toString());
|
||||
|
||||
|
||||
ResultSet rs = ps.executeQuery();
|
||||
while (rs.next()) {
|
||||
InformeMensualContent informeMensualContent = new InformeMensualContent();
|
||||
|
||||
Reference in New Issue
Block a user