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

            Bug ID: 502652
           Summary: Import of stocks with a separate fee results in a
                    calculation error
    Classification: Applications
           Product: kmymoney
           Version: unspecified
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: importer
          Assignee: kmymoney-devel@kde.org
          Reporter: k...@arrl.net
  Target Milestone: ---

SUMMARY
I imported a bunch of stock transactions but noticed the brokerage account
total was not correct. For any transaction where there was a fee associated
with the buy or sell the amount shown was incorrect. HOWEVER if I click on Edit
for the record, the amount changes to the correct amount.  In other cases
sometimes I need to subtract the fee from the total to calculate the share
price to four digits to arrive at the correct amount. In other cases I need to
add the fee to the total and divide by the number of shares to reach the
correct amount.

STEPS TO REPRODUCE
1. Import stock trades from a CSV file
2. Compare any transactions with a fee in addition to the trade
3. Notice the amount shown in the ledger is wrong. Click on edit the record and
the amount changes to the correct value.

OBSERVED RESULT
Record imports but total amount is wrong


EXPECTED RESULT
Import transactions and have totals be correct

SOFTWARE/OS VERSION
Windows: Windows 10 (I've also seen the same issue when running Kubuntu)
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 5+
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Some stocks have a tax in addition to a fee. Haven't seen any way to have this
captured during import so I manually add those records.

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

Reply via email to