[kmymoney] [Bug 420593] New: A sum of multiple rows selected is incorrect for securities with fraction > 100

Dawid Wróbel bugzilla_noreply at kde.org
Sat Apr 25 22:48:22 BST 2020


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

            Bug ID: 420593
           Summary: A sum of multiple rows selected is incorrect for
                    securities with fraction > 100
           Product: kmymoney
           Version: git (master)
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kmymoney-devel at kde.org
          Reporter: me at dawidwrobel.com
  Target Milestone: ---

SUMMARY
We assume a fraction of 100 for accounts created through "New account" wizard.
The ledger view then uses said fraction to display a sum if more than 1 row is
selected. If any of the securities are traded with a fraction > 100, the
calculated sum will be off.


STEPS TO REPRODUCE
1. Add securities with fraction > 100 to a brokerage account
2. Add some transactions
3. Select more than 1 transaction

OBSERVED RESULT
The sum is rounded to 2 decimal places and is inaccurate.

EXPECTED RESULT
The sum should not be rounded up and instead displayed using a all the decimal
places required.

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


More information about the KMyMoney-devel mailing list