Revert changes on the valid and invalid orders count and amount

This commit is contained in:
vishalsingh.qlo325
2024-05-29 10:18:58 +05:30
parent c055ec50be
commit 87e4042005
2 changed files with 3 additions and 14 deletions

View File

@@ -656,13 +656,8 @@ class AdminCustomerThreadsControllerCore extends AdminController
$total_ok = 0;
$orders_ok = array();
foreach ($orders as $key => $order) {
if ($order['valid']
|| strtotime($order['order_last_date']) >= strtotime(date('Y-m-d'))
) {
if ($order['valid']) {
$orders_ok[] = $order;
}
if ($order['total_paid_real']) {
$total_ok += $order['total_paid_real']/$order['conversion_rate'];
}