From bc2c794484976ab424113ab029317a0251002c6f Mon Sep 17 00:00:00 2001 From: philippe-opendsi Date: Sat, 10 Dec 2016 19:57:11 +0100 Subject: [PATCH] FIX : Display invalid message when save payment in invoice currency Display Payment higher than to pay --- htdocs/compta/paiement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index a1f50959aa4..82749f4949f 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