Fix decimals in payments of supplier invoices
This commit is contained in:
parent
5710bcd38a
commit
7e31c8f38f
@ -128,10 +128,9 @@ class PaiementFourn extends Paiement
|
|||||||
$this->total = 0;
|
$this->total = 0;
|
||||||
foreach ($this->amounts as $key => $value)
|
foreach ($this->amounts as $key => $value)
|
||||||
{
|
{
|
||||||
$value = price2num($value);
|
$newvalue = price2num($value, 'MT');
|
||||||
$val = round($value, 2);
|
$this->amounts[$key] = $newvalue;
|
||||||
$this->amounts[$key] = $val;
|
$this->total += $newvalue;
|
||||||
$this->total += $val;
|
|
||||||
}
|
}
|
||||||
$this->total = price2num($this->total);
|
$this->total = price2num($this->total);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user