This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Transfer between accounts with different currency

Tags: None
(comma "," separated)
zebulon
Registered Member
Posts
417
Karma
2
OS
I have an account in Euro and want to enter a transfer to another account in dollar. I already did this successfully once, but this time, the amount is always slightly off in one account or the other, depending on where I enter or modify the amount, even if I enter the "To amount" value rather than the exchange rate. How can I fix this?
zebulon
Registered Member
Posts
417
Karma
2
OS
Actually, the other transaction was also off. Since the amount was much smaller, I had not noticed at first.
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS
You should increase the price precision.

Go to Configure KMyMoney... -> General -> Price Precision


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
zebulon
Registered Member
Posts
417
Karma
2
OS
Thanks. I had to go up to seven digits. I am not entirely convinced this works as it should. Both amounts need only two decimals. When specifying the amounts, the conversion rate should not matter: it is implicit. Perhaps KMM internally always stores the exchange rate, even if the global amounts were specified?
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS
it stores both values, plus the price. that's why the price precision is needed.

It is not entirely optimal, we know, and we have plans to improve the multi currency support.
https://bugs.kde.org/show_bug.cgi?id=231192


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
zebulon
Registered Member
Posts
417
Karma
2
OS
Hei Ku wrote:It is not entirely optimal, we know, and we have plans to improve the multi currency support.
https://bugs.kde.org/show_bug.cgi?id=231192


This article describes multi-currency accounts. I'm fine with different single-currency accounts, as long as exchanges are accurate. Storing data in binary format is usually most compact and most accurate (I know, not portable).

The same issue exists with investments in 1/1000. You need high accuracy in price/share to get the proper total price. Yet, that latter only needs two decimals, and the former three. Here too, we need not know the required accuracy of the price/share, as it is implicit.
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS
Having worked on multi-currency reports for over 2 years, I assure that it sounds simple, but it is not. I wish it were, but I've spent too many nights hunting for 1-cent bugs.

That's why we are going to rework some of the multi-currency foundation when we have the time.


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]