Subversion Repositories SmartDukaan

Rev

Rev 34765 | Rev 34895 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34765 Rev 34892
Line 92... Line 92...
92
        return this.getSettledOn() == null && this.getDueDate().toLocalDate().isBefore(LocalDate.now()) &&
92
        return this.getSettledOn() == null && this.getDueDate().toLocalDate().isBefore(LocalDate.now()) &&
93
                !this.getDueDate().plusDays(15).toLocalDate().isBefore(LocalDate.now());
93
                !this.getDueDate().plusDays(15).toLocalDate().isBefore(LocalDate.now());
94
    }
94
    }
95
 
95
 
96
    public boolean isDefault() {
96
    public boolean isDefault() {
97
        return this.isDefault(LocalDate.now());
97
        return canBeSettled() && this.isDefault(LocalDate.now());
98
    }
98
    }
99
 
99
 
100
    public boolean isDefault(LocalDate onDate) {
100
    public boolean isDefault(LocalDate onDate) {
101
        return this.getSettledOn() == null && this.getDueDate().plusDays(15).toLocalDate().isBefore(onDate);
101
        return this.getSettledOn() == null && this.getDueDate().plusDays(15).toLocalDate().isBefore(onDate);
102
    }
102
    }