diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index a1f50959aa4902732180e6dd9336ed325200585e..82749f4949f7f72adc35c2c5b682853741716fe3 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -138,7 +138,7 @@ if (empty($reshook)) if (! empty($multicurrency_amounts[$cursorfacid])) $atleastonepaymentnotnull++; $result=$tmpinvoice->fetch($cursorfacid); if ($result <= 0) dol_print_error($db); - $multicurrency_amountsresttopay[$cursorfacid]=price2num($tmpinvoice->total_ttc - $tmpinvoice->getSommePaiement(1)); + $multicurrency_amountsresttopay[$cursorfacid]=price2num($tmpinvoice->multicurrency_total_ttc - $tmpinvoice->getSommePaiement(1)); if ($multicurrency_amounts[$cursorfacid]) { // Check amount