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){
|
||||
|
||||
Reference in New Issue
Block a user