This commit is contained in:
Hillel Coren 2020-02-17 18:05:45 +02:00
parent 1c4a9a31a0
commit 1c554514d3
1 changed files with 3 additions and 3 deletions

View File

@ -599,7 +599,7 @@ class ReportResult {
if (dateRange == DateRange.custom) { if (dateRange == DateRange.custom) {
if (customStartDate.isNotEmpty && customEndDate.isNotEmpty) { if (customStartDate.isNotEmpty && customEndDate.isNotEmpty) {
if (!(startDate.compareTo(value) <= 0 && if (!(startDate.compareTo(value) <= 0 &&
endDate.compareTo(value) >= 0)) { endDate.compareTo(value) > 0)) {
return false; return false;
} }
} else if (customStartDate.isNotEmpty) { } else if (customStartDate.isNotEmpty) {
@ -607,12 +607,12 @@ class ReportResult {
return false; return false;
} }
} else if (customEndDate.isNotEmpty) { } else if (customEndDate.isNotEmpty) {
if (!(endDate.compareTo(value) >= 0)) { if (!(endDate.compareTo(value) > 0)) {
return false; return false;
} }
} }
} else { } else {
if (!(startDate.compareTo(value) <= 0 && endDate.compareTo(value) >= 0)) { if (!(startDate.compareTo(value) <= 0 && endDate.compareTo(value) > 0)) {
return false; return false;
} }
} }