//small fix on total_paid_real
This commit is contained in:
@@ -239,7 +239,14 @@ class OrderHistoryCore extends ObjectModel
|
|||||||
$payment->payment_method = $payment_method->displayName;
|
$payment->payment_method = $payment_method->displayName;
|
||||||
else
|
else
|
||||||
$payment->payment_method = null;
|
$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->conversion_rate = 1;
|
||||||
$payment->save();
|
$payment->save();
|
||||||
Db::getInstance()->execute('
|
Db::getInstance()->execute('
|
||||||
|
|||||||
Reference in New Issue
Block a user