From 13d729cd93c6c19f7fc36aef6a29dad1d27c4ef6 Mon Sep 17 00:00:00 2001 From: amit sharma Date: Fri, 6 Nov 2026 10:48:22 +0530 Subject: [PATCH] Issue: Admin Can Select the Same Date for Both the From Date and To Date in Reports --- .../themes/default/template/form_date_range_picker.tpl | 9 ++------- composer.json | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/admin-dev/themes/default/template/form_date_range_picker.tpl b/admin-dev/themes/default/template/form_date_range_picker.tpl index c54dd8ef5..7ec1a25b6 100644 --- a/admin-dev/themes/default/template/form_date_range_picker.tpl +++ b/admin-dev/themes/default/template/form_date_range_picker.tpl @@ -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); } }, }); diff --git a/composer.json b/composer.json index 5cf809aee..a05f55952 100644 --- a/composer.json +++ b/composer.json @@ -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",