Fixed: Dates validations issue while checking conditions for Allow backdate order from Back-office

This commit is contained in:
Sumit Panwar
2024-10-04 12:41:53 +05:30
parent c3c6c17ed8
commit 6ec8aa0d8e

View File

@@ -3981,7 +3981,7 @@ class AdminOrdersControllerCore extends AdminController
/*By Webkul Code is added to add order information In our table while adding product in the process order edit from order detail page.*/
$date_from = date('Y-m-d H:i:s', strtotime($product_informations['date_from']));
$date_to = date('Y-m-d H:i:s', strtotime($product_informations['date_to']));
$curr_date = date('Y-m-d H:i:s');
$curr_date = date('Y-m-d');
$occupancy = Tools::getValue('occupancy');
/*Validations*/
if ($date_from == '') {