[kmymoney] [Bug 403885] Buying / selling investments interest / fees round to 2 decimal places even when currency is to 6 decimal places

Thomas Baumgart bugzilla_noreply at kde.org
Sun Feb 3 18:01:04 GMT 2019


https://bugs.kde.org/show_bug.cgi?id=403885

--- Comment #4 from Thomas Baumgart <tbaumgart at kde.org> ---
Created attachment 117811
  --> https://bugs.kde.org/attachment.cgi?id=117811&action=edit
Patched test file

Looks like you did not create the test file with today's git master and that is
(still) causing the problem.

I added a fix provided on Jan 19 to the source repo in this commit:

  
https://cgit.kde.org/kmymoney.git/commit/?id=e38492cbc059796addb5a62861e75b851b2428e0

Unfortunately, your test file is older:

  <CREATION_DATE date="2019-01-13"/>

The fix creates the XPD currency with the necessary SAF setting. The first line
below comes from your test file. The second one is from the file I patched
(just added that bunch of zeroes as per the instructions in the commit
message).

69c69
<   <CURRENCY pp="4" symbol="XPD" type="3" saf="100" rounding-method="7"
id="XPD" scf="1000000" name="Palladium"/>
---
>   <CURRENCY pp="4" symbol="XPD" type="3" saf="1000000" rounding-method="7" id="XPD" scf="1000000" name="Palladium"/>

I attach the modified file here as well. Opening this, you should
instantaneously see correct results. Let me check if I can come up with a more
automated solution.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list