Fixed: precision issue on the order total paid in the back office

This commit is contained in:
vishalsingh.qlo325
2025-07-01 16:02:04 +05:30
parent 250ff04d5d
commit 7d496c00a9
2 changed files with 6 additions and 6 deletions

View File

@@ -1041,7 +1041,7 @@ class OrderInvoiceCore extends ObjectModel
*/
public function getRestPaid()
{
return round($this->total_paid_tax_incl + $this->getSiblingTotal() - $this->getTotalPaid(), 2);
return Tools::ps_round($this->total_paid_tax_incl + $this->getSiblingTotal() - $this->getTotalPaid(), _PS_PRICE_COMPUTE_PRECISION_);
}
/**