Subversion Repositories SmartDukaan

Rev

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

Rev 33441 Rev 33736
Line 179... Line 179...
179
 
179
 
180
	public boolean isWithinRange(LocalDateTime testDate) {
180
	public boolean isWithinRange(LocalDateTime testDate) {
181
		if(startDate==null) return true;
181
		if(startDate==null) return true;
182
		return !(testDate.isBefore(startDate) || testDate.isAfter(endDate));
182
		return !(testDate.isBefore(startDate) || testDate.isAfter(endDate));
183
	}
183
	}
-
 
184
 
-
 
185
 
-
 
186
	public LocalDateTime getBillingEndDate() {
-
 
187
		return this.endDate.plusDays(90);
-
 
188
	}
-
 
189
 
-
 
190
	public LocalDateTime getBillingStartDate() {
-
 
191
		return this.startDate.minusDays(30);
-
 
192
	}
184
    
193
    
185
    
194
    
186
    
195
    
187
    
196
    
188
}
197
}