Merge pull request #9905 from atm-maxime/fix_currency_change
Fix changing currency in a doc was recalculating amounts in company currency #9801
This commit is contained in:
commit
2c8b7a4a3d
1 changed files with 1 additions and 1 deletions
|
|
@ -1778,7 +1778,7 @@ abstract class CommonObject
|
|||
$this->multicurrency_code = $code;
|
||||
|
||||
list($fk_multicurrency, $rate) = MultiCurrency::getIdAndTxFromCode($this->db, $code);
|
||||
if ($rate) $this->setMulticurrencyRate($rate);
|
||||
if ($rate) $this->setMulticurrencyRate($rate,2);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue