// fix bug on Payment addition

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11148 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete
2011-12-12 16:51:47 +00:00
parent 2fa5744010
commit 0db603d498
3 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -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();
}
/**