Add mark philea

This commit is contained in:
Michael RICOIS 2018-01-11 16:22:25 +01:00
parent a66a711598
commit ee7ec89a87

View File

@ -408,7 +408,8 @@ if(($id_order = (int) Tools::getValue('id_order'))
// Send by LAPOSTE // Send by LAPOSTE
if($l = Db::getInstance()->ExecuteS(' if($l = Db::getInstance()->ExecuteS('
SELECT l.*, d.`product_name`, d.`product_reference`, d.`product_supplier_reference`, e.`firstname`, e.`lastname`, "laposte" AS `carrier` SELECT l.*, d.`product_name`, d.`product_reference`, d.`product_supplier_reference`,
e.`firstname`, e.`lastname`, "laposte" AS `carrier`, "0" as philea
FROM `'._DB_PREFIX_.'lapostews` l FROM `'._DB_PREFIX_.'lapostews` l
LEFT JOIN `'._DB_PREFIX_.'employee` e ON l.`id_employee` = e.`id_employee` LEFT JOIN `'._DB_PREFIX_.'employee` e ON l.`id_employee` = e.`id_employee`
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`
@ -421,7 +422,8 @@ if(($id_order = (int) Tools::getValue('id_order'))
// Send by EXAPAQ // Send by EXAPAQ
if($l = Db::getInstance()->ExecuteS(' if($l = Db::getInstance()->ExecuteS('
SELECT l.*, d.`product_name`, d.`product_reference`, d.`product_supplier_reference`, e.`firstname`, e.`lastname`, "exapaq" AS `carrier` SELECT l.*, d.`product_name`, d.`product_reference`, d.`product_supplier_reference`,
e.`firstname`, e.`lastname`, "exapaq" AS `carrier`, "0" as philea
FROM `'._DB_PREFIX_.'exapaqws` l FROM `'._DB_PREFIX_.'exapaqws` l
LEFT JOIN `'._DB_PREFIX_.'employee` e ON l.`id_employee` = e.`id_employee` LEFT JOIN `'._DB_PREFIX_.'employee` e ON l.`id_employee` = e.`id_employee`
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`
@ -434,7 +436,8 @@ if(($id_order = (int) Tools::getValue('id_order'))
// Send by MONDIAL RELAY // Send by MONDIAL RELAY
if($l = Db::getInstance()->ExecuteS(' if($l = Db::getInstance()->ExecuteS('
SELECT l.*, d.`product_name`, d.`product_reference`, d.`product_supplier_reference`, e.`firstname`, e.`lastname`, "mondialrelay" AS `carrier` SELECT l.*, d.`product_name`, d.`product_reference`, d.`product_supplier_reference`,
e.`firstname`, e.`lastname`, "mondialrelay" AS `carrier`, "0" as philea
FROM `'._DB_PREFIX_.'mondialrelay_parcel` l FROM `'._DB_PREFIX_.'mondialrelay_parcel` l
LEFT JOIN `'._DB_PREFIX_.'employee` e ON l.`id_employee` = e.`id_employee` LEFT JOIN `'._DB_PREFIX_.'employee` e ON l.`id_employee` = e.`id_employee`
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`
@ -447,7 +450,8 @@ if(($id_order = (int) Tools::getValue('id_order'))
// Send by DROPSHIPPING // Send by DROPSHIPPING
if($l = Db::getInstance()->ExecuteS(' if($l = Db::getInstance()->ExecuteS('
SELECT l.*, d.`product_name`, d.`product_reference`, d.`product_supplier_reference`, "Dropshipping" as firstname SELECT l.*, d.`product_name`, d.`product_reference`, d.`product_supplier_reference`,
"Dropshipping" as firstname, "1" as philea
FROM `'._DB_PREFIX_.'ant_dropshipping_parcel` l FROM `'._DB_PREFIX_.'ant_dropshipping_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`
WHERE l.`id_order_detail` IN ('.implode(', ', $id_order_details).') WHERE l.`id_order_detail` IN ('.implode(', ', $id_order_details).')
@ -459,7 +463,8 @@ if(($id_order = (int) Tools::getValue('id_order'))
// Send by PHILEA // Send by 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, c.`name` as carrier SELECT l.*, d.`product_name`, d.`product_reference`, d.`product_supplier_reference`, "Philea" as firstname,
c.`name` as carrier, "1" as philea
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_.'orders` o ON o.`id_order` = d.`id_order`