Issue: Admin Can Select the Same Date for Both the From Date and To Date in Reports
This commit is contained in:
@@ -50,9 +50,8 @@
|
||||
let dateFrom = $('form#calendar_form .datepicker#datepickerFrom').val().trim();
|
||||
let dateTo = $('form#calendar_form .datepicker#datepickerTo').val().trim();
|
||||
|
||||
if (dateFrom >= dateTo) {
|
||||
if (dateFrom > dateTo) {
|
||||
let objDateToMin = $.datepicker.parseDate('yy-mm-dd', dateFrom);
|
||||
objDateToMin.setDate(objDateToMin.getDate() + 1);
|
||||
|
||||
$('form#calendar_form .datepicker#datepickerTo').datepicker('option', 'minDate', objDateToMin);
|
||||
$('form#calendar_form .datepicker#datepickerTo').val($.datepicker.formatDate('yy-mm-dd', objDateToMin));
|
||||
@@ -70,14 +69,10 @@
|
||||
|
||||
if (typeof dateFrom != 'undefined' && dateFrom != '') {
|
||||
let objDateToMin = $.datepicker.parseDate('yy-mm-dd', dateFrom);
|
||||
objDateToMin.setDate(objDateToMin.getDate() + 1);
|
||||
|
||||
$('form#calendar_form .datepicker#datepickerTo').datepicker('option', 'minDate', objDateToMin);
|
||||
} else {
|
||||
let objDateToMin = new Date();
|
||||
objDateToMin.setDate(objDateToMin.getDate() + 1);
|
||||
|
||||
$('form#calendar_form .datepicker#datepickerTo').datepicker('option', 'minDate', objDateToMin);
|
||||
$('form#calendar_form .datepicker#datepickerTo').datepicker('option', 'minDate', null);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "qloapps/qloapps",
|
||||
"description": "QloApps is an Open-source and Free hotel reservation system and booking engine. With the help of QloApps, you can launch your hotel booking website without any cost and take & manage online bookings.",
|
||||
"description": "QloApps is an Open-source and Free hotel reservation system. With the help of QloApps, you can launch your hotel booking website without any cost and take & manage online bookings.",
|
||||
"type": "project",
|
||||
"homepage": "https://qloapps.com",
|
||||
"license": "OSL-3.0",
|
||||
|
||||
Reference in New Issue
Block a user