Subversion Repositories SmartDukaan

Rev

Rev 35971 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35971 Rev 36008
Line 400... Line 400...
400
            foi.setDoa(
400
            foi.setDoa(
401
                    foi.getBrand().equals("Nokia") && foi.getCost() < 4990 && buyDate.isAfter(curDate.minusYears(1)));
401
                    foi.getBrand().equals("Nokia") && foi.getCost() < 4990 && buyDate.isAfter(curDate.minusYears(1)));
402
    }
402
    }
403
 
403
 
404
    private boolean markDefective(FofoOrder fofoOrder) {
404
    private boolean markDefective(FofoOrder fofoOrder) {
-
 
405
 
405
        return fofoOrder.getCreateTimestamp().truncatedTo(ChronoUnit.DAYS).plusDays(180)
406
        return fofoOrder.getCreateTimestamp().truncatedTo(ChronoUnit.DAYS).plusDays(180)
406
                .isAfter(LocalDateTime.now().truncatedTo(ChronoUnit.DAYS));
407
                .isAfter(LocalDateTime.now().truncatedTo(ChronoUnit.DAYS));
407
 
408
 
408
    }
409
    }
409
 
410