// fix bug on Payment addition
This commit is contained in:
1 parent
992ce1cc00
commit
c2e9720872
3 files changed
+9
-4
No files matched your search
@@ -1365,7 +1365,8 @@ class OrderCore extends ObjectModel
|
||||
else
|
||||
$this->total_paid_real += Tools::ps_round(Tools::convertPrice($order_payment->amount, $order_payment->id_currency, false), 2);
|
||||
|
||||
return $order_payment->add() && $this->update();
|
||||
// We put autodate parameter of add method to true if date_add field is null
|
||||
return $order_payment->add(is_null($order_payment->date_add)) && $this->update();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user