Skip to content
Snippets Groups Projects
Commit bc2c7944 authored by philippe-opendsi's avatar philippe-opendsi
Browse files

FIX : Display invalid message when save payment in invoice currency

Display Payment higher than to pay
parent 3131ef7b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment