Bug 339774

Summary: OFX download results in negative dividend
Product: [Applications] kmymoney Reporter: george
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: onet.cristian
Priority: NOR Keywords: triaged
Version: git (master)   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screen shot showing negative amount for dividend
Imported transaction

Description george 2014-10-08 00:20:26 UTC
After an OFX download I am trying to reconcile a Brokerage account.  
I am finding that in some cases dividend transactions are being entered with the wrong sign.  What is strange is that only some of the transactions are affected.
For this transaction:
          <INCOME>
            <INVTRAN>
              <FITID>14656805818901220140707
              <DTTRADE>20140707000000.000[-4:EDT]
              <MEMO>DIVIDEND RECEIVED
            </INVTRAN>
            <SECID>
              <UNIQUEID>132061300
              <UNIQUEIDTYPE>CUSIP
            </SECID>
            <INCOMETYPE>DIV
            <TOTAL>+00000000000034.5800
            <SUBACCTSEC>CASH
            <SUBACCTFUND>CASH
            <CURRENCY>
              <CURRATE>1.00
              <CURSYM>USD
            </CURRENCY>
          </INCOME>
the result is correct, but for these:
         <INCOME>
            <INVTRAN>
              <FITID>14656805820001320140718
              <DTTRADE>20140718000000.000[-4:EDT]
              <MEMO>DIVIDEND RECEIVED
            </INVTRAN>
            <SECID>
              <UNIQUEID>780287108
              <UNIQUEIDTYPE>CUSIP
            </SECID>
            <INCOMETYPE>DIV
            <TOTAL>+00000000000021.0000
            <SUBACCTSEC>CASH
            <SUBACCTFUND>CASH
            <CURRENCY>
              <CURRATE>1.00
              <CURSYM>USD
            </CURRENCY>
          </INCOME>
          <INCOME>
            <INVTRAN>
              <FITID>14656805821301220140731
              <DTTRADE>20140731000000.000[-4:EDT]
              <MEMO>DIVIDEND RECEIVED
            </INVTRAN>
            <SECID>
              <UNIQUEID>316067107
              <UNIQUEIDTYPE>CUSIP
            </SECID>
            <INCOMETYPE>DIV
            <TOTAL>+00000000000000.0600
            <SUBACCTSEC>CASH
            <SUBACCTFUND>CASH
            <CURRENCY>
              <CURRATE>1.00
              <CURSYM>USD
            </CURRENCY>
          </INCOME>
the result is negative.  I will attach a screen snapshot of one of the failing tranactions.  I also notice that most dividend transactions on "Fidelity Cash Reserves" turn out correct.



Reproducible: Always

Steps to Reproduce:
1. to reproduce I deleted the transaction and then did the OFX download again.
2.
3.

Actual Results:  
The same as shown in the screen snapshot.

Expected Results:  
A positive amount should have been entered.
Comment 1 george 2014-10-08 00:23:44 UTC
Created attachment 89028 [details]
screen shot showing negative amount for dividend

The amount shows negative in the sub-window at the bottom.
Comment 2 Cristian Oneț 2014-10-08 04:57:04 UTC
This could be caused by the fix for BUG 333522.
Comment 3 Cristian Oneț 2014-10-19 08:36:40 UTC
Created attachment 89195 [details]
Imported transaction

I've imported the attached transaction an it seems to be working as expected. Could you try again, and if it's still happening could you post a test kmy file and a test ofx file. Now I needed to add your transaction in another OFX file to get it imported.
Comment 4 Cristian Oneț 2014-10-19 08:37:19 UTC
Could you check the attached screenshot and try again with git master?
Comment 5 Cristian Oneț 2014-10-19 08:37:42 UTC
Maybe related to BUG 339192.
Comment 6 Andrew Crouthamel 2018-09-25 03:56:16 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Andrew Crouthamel 2018-10-27 03:31:05 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!