// fix bug on Payment addition

This commit is contained in:
aFolletete
2011-12-12 16:51:47 +00:00
parent ad5426d6b8
commit 9b417ab764
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();
}
/**