Bug 406243

Summary: Skrooge does not import share operations in QIF file correctly
Product: [Applications] skrooge Reporter: skierpage <info>
Component: generalAssignee: Stephane MANKOWSKI <stephane>
Status: RESOLVED FIXED    
Severity: normal CC: stephane
Priority: NOR    
Version First Reported In: 2.18.0   
Target Milestone: 25.1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description skierpage 2019-04-05 08:13:29 UTC
SUMMARY
I recorded some charitable donations of stock in Quicken. When I export these transactions as .QIF and import into Skrooge they appear as increases in dollar amounts instead of reduction in that stock.

STEPS TO REPRODUCE
As above

OBSERVED RESULT
The QIF record:

^
!Type:Security
NACME CORP
SACMW
TStock
^
...
^
D12/ 8'17
NShrsOut
YACME CORP
Q6
Mcharitable stock donation to YoMama

is imported into Skrooge as the operation
Date: 12/8/2017
Amount: +6.00 $
Comment: charitable stock donation to YoMama

Note the Y field indicating the stock is lost, and it shows up as an increase in the dollar balance, not a reduction in the stock quantity.

Similarly share purchase or transfer appears in the QIF file as

^
D7/22' 4
NShrsIn
YACME CORP
Q800
Cc
MACME CORP

but this appears as a +800 $ operation, not as an increase in ACME shares

EXPECTED RESULT

These should appear as increases and reductions in the shares on hand.
The compact share names (ACMW) do appear in the field after "Amount" for an operation, so Skrooge knows about the shares but doesn't seem to handle these QIF transactions properly.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.55.0
Qt Version: 5.11.3

ADDITIONAL INFORMATION

I'm not sure where to see my stock holdings.
Comment 1 Stephane MANKOWSKI 2019-04-06 06:53:35 UTC
Git commit 8f333105590226e33ad12317a5683cf371d1ed6f by Stephane MANKOWSKI.
Committed on 06/04/2019 at 06:53.
Pushed by smankowski into branch 'master'.

Skrooge does not import share operations in QIF file correctly

M  +1    -0    CHANGELOG
M  +5    -1    plugins/import/skrooge_import_qif/skgimportpluginqif.cpp
A  +20   -0    tests/input/skgtestimportqif2/406243.qif
M  +21   -0    tests/skgbankmodelertest/skgtestimportqif2.cpp

https://commits.kde.org/skrooge/8f333105590226e33ad12317a5683cf371d1ed6f