Fix Stats > Stats page issues

This commit is contained in:
Abhishek Kumar
2023-04-05 16:22:15 +05:30
parent e3d4e5fafd
commit a92bebfcfb
2 changed files with 6 additions and 0 deletions

View File

@@ -152,6 +152,9 @@ class StatsBestCategories extends ModuleGrid
$date_between = $this->getDate();
$date_from = date('Y-m-d', strtotime($this->_employee->stats_date_from));
$date_to = date('Y-m-d', strtotime($this->_employee->stats_date_to));
if ($date_from == $date_to) {
$date_to = date('Y-m-d', strtotime('+1 day', strtotime($date_to)));
}
$id_lang = $this->getLang();
//If column 'order_detail.original_wholesale_price' does not exist, create it

View File

@@ -154,6 +154,9 @@ class StatsBestProducts extends ModuleGrid
$date_between = $this->getDate();
$date_from = date('Y-m-d', strtotime($this->_employee->stats_date_from));
$date_to = date('Y-m-d', strtotime($this->_employee->stats_date_to));
if ($date_from == $date_to) {
$date_to = date('Y-m-d', strtotime('+1 day', strtotime($date_to)));
}
$array_date_between = explode(' AND ', $date_between);
$id_lang = $this->getLang();