Ask, reply and learn. Join the community of Akaunting.
Hello,
My problem is with the money conversion (from USD to another currency [LBP in my case])(../reports/expense_summary in this page for example).
For USD, the currency rate is set to "1", for LBP I try 2 numbers:
So why if the currency_rate > 1 the values are multiplied *, but if the currency_rate < 1 the values are divided ÷.
In which file the conversion method is placed, so I can change it?
Thank you.
Looks like the problem is still not resolved, as I see the similar problem.
I think I solve this problem by removing some code in this file ("vendor/akaunting/money/src/Money.php")
I change this (In "public function convert" at line 531):
if ($ratio < 1) {
return $this->divide($ratio, $roundingMode);
}
return $this->multiply($ratio, $roundingMode);
To this:
return $this->divide($ratio, $roundingMode);
Showing 1 to 3 of 3 discussions