fixed reports date range

This commit is contained in:
Frank John Begornia
2021-02-08 04:07:29 +08:00
parent acf9c2e931
commit 0013b2a025

View File

@@ -665,7 +665,7 @@
var min = $('#min').datepicker("getDate");
var max = $('#max').datepicker("getDate");
var startDate = new Date(data[9]);
var startDate = new Date(data[10]);
if (min == null && max == null) { return true; }
if (min == null && startDate <= max) { return true;}
if(max == null && startDate >= min) {return true;}