Bad Currency Conversion in Docs

Hello,

This is an error that happens when you enter the price in foreign currency in documents. If you enter the price in your company default currency Dolibarr will show you a correct unit price in devise, but if you enter the price in unit price devise the value in your company unit price will have a mistaken conversion.

I’ve been looking for the code but can’t find it.

Thank you!.

Pièces jointes :

what version of dolibarr you are using?

9.0.2

Been looking for the code but can’t find where Doli makes the calculation from U.P. Devise to U.P.

Found anything? Tested and found the same problem???

Does anybody know where is the code or function where Doli divides the value?, so I can change the formula. Please! :silly:

Solution posted in www.dolibarr.org/t/multi-currency-method/17558/1