From 2a5e3d861b20820305bb2fbafb444db40b9cf09d Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Fri, 23 Jun 2017 12:27:50 +0200 Subject: [PATCH 1/2] fix label --- modules/ant_returnprocess/AdminAntReturnprocess.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ant_returnprocess/AdminAntReturnprocess.php b/modules/ant_returnprocess/AdminAntReturnprocess.php index 1859529c..df28ad8d 100644 --- a/modules/ant_returnprocess/AdminAntReturnprocess.php +++ b/modules/ant_returnprocess/AdminAntReturnprocess.php @@ -964,6 +964,7 @@ class AdminAntReturnprocess extends AdminTab
+
+ - +
- + '; + if($order->module && $order->module=="paypal"){ + $html.=' +
+
+ + + +
+
'; + } + $html.='
@@ -1581,6 +1664,7 @@ class AdminAntReturnprocess extends AdminTab
'; + $orderMessages = OrderMessage::getOrderMessages((int)($order->id_lang)); if(isset($thread)){ if($thread->id_order == $orderReturn->id_order) { $products = Db::getInstance()->ExecuteS(' @@ -1613,28 +1697,32 @@ class AdminAntReturnprocess extends AdminTab } } if($last_message){ - $html .='
Dernier Message '.($thread->id_order != $orderReturn->id_order?'
(Ne concerne pas cette commande)':'').'
'; + $html .='
+ Dernier Message '.($thread->id_order != $orderReturn->id_order?'
(Ne concerne pas cette commande)':'').' + +
'; $last_message['message'] = preg_replace('/(https?:\/\/[a-z0-9#%&_=\(\)\.\? \+\-@\/]{6,1000})([\s\n<])/Uui', '\1\2', html_entity_decode($last_message['message'], ENT_NOQUOTES, 'UTF-8')); if(!empty($last_message['employee_name'])) { $html .=' -
-

Bébé Boutik - ('.Tools::displayDate($last_message['date_add'], (int)($cookie->id_lang), true).')

+

Bébé Boutik - ('.Tools::displayDate($last_message['date_add'], (int)($cookie->id_lang), true).')

+

"'.$last_message['message'].'"

'; } else { $html .=' -
-

'.$customer->firstname.' '.$customer->lastname.' - ('.Tools::displayDate($last_message['date_add'], (int)($cookie->id_lang), true).')

+

'.$customer->firstname.' '.$customer->lastname.' - ('.Tools::displayDate($last_message['date_add'], (int)($cookie->id_lang), true).')

+

"'.$last_message['message'].'"

'; } - $orderMessages = OrderMessage::getOrderMessages((int)($last_message['id_lang'])); $html .='
Envoyer un message
@@ -1671,6 +1759,64 @@ class AdminAntReturnprocess extends AdminTab
+
+
+

Message pour cette Commande

+
+
+
+
+
+

Laissez un message à votre service client pour cette commande

'; + if($last_order_message){ + $html .=' +
+ Dernier un message + +
+

'.$last_order_message['firstname'].' '.$last_order_message['lastname'].' - ('.Tools::displayDate($last_order_message['date_add'], (int)($cookie->id_lang), true).')

+
+

+ "'.$last_order_message['message'].'" +

+
'; + } + $html .=' +
+
Laissez un message
+
+
+ +
+
+ +
+
+ +
+
+ + + + +
+
+
+
+
+
+
+
'; diff --git a/modules/paypal/paypal.php b/modules/paypal/paypal.php index d5ad53b5..22e99fcc 100755 --- a/modules/paypal/paypal.php +++ b/modules/paypal/paypal.php @@ -1110,6 +1110,10 @@ class PayPal extends PaymentModule return $new_message->add(); } + public function generateTotalRefund($id_order){ + $this->_doTotalRefund($id_order); + } + private function _doTotalRefund($id_order) { $paypal_order = PayPalOrder::getOrderById((int)$id_order);