Merge 'origin/develop' into gli-838

This commit is contained in:
Shreesh Arora
2022-12-27 15:58:35 +05:30
604 changed files with 40717 additions and 14343 deletions

View File

@@ -1747,6 +1747,10 @@ class OrderCore extends ObjectModel
$this->total_paid_real += Tools::ps_round(Tools::convertPrice($order_payment->amount, $order_payment->id_currency, false), 2);
}
if (!validate::isPrice($this->total_paid_real)) {
return false;
}
// We put autodate parameter of add method to true if date_add field is null
$res = $order_payment->add(is_null($order_payment->date_add)) && $this->update();