//small fix on total_paid_real
This commit is contained in:
1 parent
8e2fee146d
commit
61d8ea6f70
1 file changed
+7
@@ -240,6 +240,13 @@ class OrderHistoryCore extends ObjectModel
|
||||
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('
|
||||
|
||||
Reference in new issue
Block a user