Add Device column
This commit is contained in:
parent
30dab6bcdf
commit
0098aaf50a
@ -452,7 +452,12 @@ $refundreasons = array(
|
||||
if(count($slips) > 0) {
|
||||
foreach($slips as $slip) {
|
||||
$order = Db::getInstance()->getRow('
|
||||
SELECT o.*, c.*, c.`date_add` as subscribe, v.`version`
|
||||
SELECT o.*, c.*, c.`date_add` as subscribe, v.`version`,
|
||||
(CASE o.`appli`
|
||||
WHEN 0 THEN "DESKTOP"
|
||||
WHEN 1 THEN "APPLICATION"
|
||||
WHEN 2 THEN "MOBILE"
|
||||
END) AS device
|
||||
FROM `'._DB_PREFIX_.'orders` o
|
||||
LEFT JOIN `'._DB_PREFIX_.'customer` c
|
||||
ON o.`id_customer` = c.`id_customer`
|
||||
@ -462,14 +467,14 @@ if(count($slips) > 0) {
|
||||
o.id_order = '.$slip['id_order'].'
|
||||
');
|
||||
|
||||
$multi = Db::getInstance()->getValue('
|
||||
SELECT COUNT(DISTINCT `id_sale`)
|
||||
FROM `'._DB_PREFIX_.'product_ps_cache`
|
||||
WHERE `id_product` IN (
|
||||
SELECT `product_id` FROM `'._DB_PREFIX_.'order_detail`
|
||||
WHERE `id_order` = '.(int) $order['id_order'].'
|
||||
)
|
||||
') == 1? 'S': 'M';
|
||||
$multi = Db::getInstance()->getValue('
|
||||
SELECT COUNT(DISTINCT `id_sale`)
|
||||
FROM `'._DB_PREFIX_.'product_ps_cache`
|
||||
WHERE `id_product` IN (
|
||||
SELECT `product_id` FROM `'._DB_PREFIX_.'order_detail`
|
||||
WHERE `id_order` = '.(int) $order['id_order'].'
|
||||
)
|
||||
') == 1? 'S': 'M';
|
||||
|
||||
$address = Db::getInstance()->ExecuteS('
|
||||
SELECT a.*, c.`id_zone`
|
||||
|
Loading…
Reference in New Issue
Block a user