diff --git a/classes/order/OrderHistory.php b/classes/order/OrderHistory.php index 088e93107..a8ec80f85 100644 --- a/classes/order/OrderHistory.php +++ b/classes/order/OrderHistory.php @@ -239,7 +239,14 @@ class OrderHistoryCore extends ObjectModel $payment->payment_method = $payment_method->displayName; else $payment->payment_method = null; - + + // Update total_paid_real value for backward compatibility reasons + if ($payment->id_currency == $order->id_currency) + $order->total_paid_real += $payment->amount; + else + $order->total_paid_real += Tools::ps_round(Tools::convertPrice($payment->amount, $payment->id_currency, false), 2); + $order->save(); + $payment->conversion_rate = 1; $payment->save(); Db::getInstance()->execute('