Bug 462366

Summary: The currency conversion rate for EUR/XPF is wrong
Product: [Applications] kmymoney Reporter: Alexandre Bonneau <alexandre.bonneau>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED NOT A BUG    
Severity: major    
Priority: NOR    
Version: 5.1.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alexandre Bonneau 2022-11-28 20:51:58 UTC
SUMMARY
The currency conversion rate for EUR/XPF is wrong, leading to hugely wrong dashboards and reports


STEPS TO REPRODUCE
1. You have an account with the total amount 680.056 XPF
2. In the value calculated in Euro is calculated to 81.152.267,14 € (this is wrong)

The fixed ratio between EUR and XPF is equal to 1000/8,38 ~= 119,3317422.

OBSERVED RESULT & EXPECTED RESULT
When you have 680.056 XPF, you should do 680.056 / 119,33 ~= 5.698,86928€.
Currently Kmymoney does the inverse using 680.056 * 119,33  = 81.152.267,14 €.
Comment 1 Jack 2022-11-28 22:05:10 UTC
I doubt very much that KMM is multiplying instead of dividing.  It is more likely that the exchange rate has been set incorrectly, to the inverse of the correct rate..  Do you know where your exchange rate came from?  Did you download it or enter it manually?  If you open the price editor and find the price pair for those two currencies, what does it show?
Comment 2 Alexandre Bonneau 2022-11-29 00:43:24 UTC
Ok, my bad, it seems I have entered the 1000/8,38 ratio in both EUR -> XPF and XPF -> EUR ratio.
This is fixed now.
Thanks for the hint.