You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: controllers/admin/AdminOrdersController.php
+4-37
Original file line number
Diff line number
Diff line change
@@ -60,18 +60,13 @@ public function __construct()
60
60
(a.total_paid - a.total_paid_real) AS `amount_due`, a.source AS order_source,
61
61
a.id_currency,
62
62
a.id_order AS id_pdf,
63
-
CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`,
64
-
osl.`name` AS `osname`,
65
-
os.`color`,
63
+
CONCAT(c.`firstname`, \'\', c.`lastname`) AS `customer`,
64
+
osl.`name` AS `osname`, os.`color`,
66
65
IF((SELECT so.id_order FROM `'._DB_PREFIX_.'orders` so WHERE so.id_customer = a.id_customer AND so.id_order < a.id_order LIMIT 1) > 0, 0, 1) as new,
67
-
country_lang.name as cname,
68
66
IF(a.valid, 1, 0) badge_success';
69
67
70
68
$this->_join = '
71
69
LEFT JOIN `'._DB_PREFIX_.'customer` c ON (c.`id_customer` = a.`id_customer`)
72
-
INNER JOIN `'._DB_PREFIX_.'address` address ON address.id_address = a.id_address_delivery
73
-
INNER JOIN `'._DB_PREFIX_.'country` country ON address.id_country = country.id_country
74
-
INNER JOIN `'._DB_PREFIX_.'country_lang` country_lang ON (country.`id_country` = country_lang.`id_country` AND country_lang.`id_lang` = '.(int) $this->context->language->id.')
75
70
LEFT JOIN `'._DB_PREFIX_.'order_state` os ON (os.`id_order_state` = a.`current_state`)
76
71
LEFT JOIN `'._DB_PREFIX_.'order_state_lang` osl ON (os.`id_order_state` = osl.`id_order_state` AND osl.`id_lang` = '.(int) $this->context->language->id.')';
77
72
$this->_orderBy = 'id_order';
@@ -164,35 +159,7 @@ public function __construct()
0 commit comments