FIX get remain to pay with rounding decimals

This commit is contained in:
VESSILLER 2020-03-25 11:53:47 +01:00
parent 04a875f43b
commit c516a54f78

View File

@ -103,7 +103,7 @@ abstract class CommonInvoice extends CommonObject
$alreadypaid+=$this->getSommePaiement($multicurrency);
$alreadypaid+=$this->getSumDepositsUsed($multicurrency);
$alreadypaid+=$this->getSumCreditNotesUsed($multicurrency);
return $this->total_ttc - $alreadypaid;
return price2num($this->total_ttc, 'MT') - price2num($alreadypaid, 'MT');
}
/**