mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX #14443
This commit is contained in:
parent
477c3e719d
commit
815269db9c
|
|
@ -548,7 +548,7 @@ class MultiCurrency extends CommonObject
|
|||
*
|
||||
* @param int $fk_facture id of facture
|
||||
* @param double $amount amount to convert
|
||||
* @param string $way dolibarr mean the amount is in dolibarr currency
|
||||
* @param string $way 'dolibarr' mean the amount is in dolibarr currency
|
||||
* @param string $table facture or facture_fourn
|
||||
* @return double amount converted
|
||||
*/
|
||||
|
|
@ -558,8 +558,8 @@ class MultiCurrency extends CommonObject
|
|||
|
||||
if ($multicurrency_tx)
|
||||
{
|
||||
if ($way == 'dolibarr') return $amount * $multicurrency_tx;
|
||||
else return $amount / $multicurrency_tx;
|
||||
if ($way == 'dolibarr') return price2num($amount * $multicurrency_tx, 'MU');
|
||||
else return price2num($amount / $multicurrency_tx, 'MU');
|
||||
} else return $amount;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user