Merge branch 'ticket-14485-UpdatePhilea' into develop
This commit is contained in:
commit
a55c33204d
@ -443,9 +443,11 @@ if(($id_order = (int) Tools::getValue('id_order'))
|
|||||||
* @Override Philea
|
* @Override Philea
|
||||||
*/
|
*/
|
||||||
if($l = Db::getInstance()->ExecuteS('
|
if($l = Db::getInstance()->ExecuteS('
|
||||||
SELECT l.*, d.`product_name`, d.`product_reference`, d.`product_supplier_reference`, "Philea" as firstname
|
SELECT l.*, d.`product_name`, d.`product_reference`, d.`product_supplier_reference`, "Philea" as firstname, c.`name` as carrier
|
||||||
FROM `'._DB_PREFIX_.'philea_parcel` l
|
FROM `'._DB_PREFIX_.'philea_parcel` l
|
||||||
LEFT JOIN `'._DB_PREFIX_.'order_detail` d ON d.`id_order_detail` = l.`id_order_detail`
|
LEFT JOIN `'._DB_PREFIX_.'order_detail` d ON d.`id_order_detail` = l.`id_order_detail`
|
||||||
|
LEFT JOIN `'._DB_PREFIX_.'orders` o ON o.`id_order` = d.`id_order`
|
||||||
|
LEFT JOIN `'._DB_PREFIX_.'carrier` c ON c.`id_carrier` = o.`id_carrier`
|
||||||
WHERE l.`id_order_detail` IN ('.implode(', ', $id_order_details).')
|
WHERE l.`id_order_detail` IN ('.implode(', ', $id_order_details).')
|
||||||
AND l.`quantity` > 0
|
AND l.`quantity` > 0
|
||||||
ORDER BY l.`date_add` DESC
|
ORDER BY l.`date_add` DESC
|
||||||
|
Loading…
Reference in New Issue
Block a user