Bug 252574

Summary: Editing Reinvest-Dividend entry causes
Product: [Applications] kmymoney Reporter: JantarMantar <paresh_adhia>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: 4.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description JantarMantar 2010-09-27 19:42:26 UTC
Version:           4.5 (using KDE 4.5.1) 
OS:                Linux

When editing an existing "Reinvest Dividend" entry, the total amount is copied to the Interest bucket thus doubling the transaction amount.

Reproducible: Always

Steps to Reproduce:
For an investment, 
1. Add an "Reinvest Dividend" type transaction. 
2. Just as an example, add 10 as number of shares, 1 as price/share. 
3. Assign a tax category.
4. Press enter to create the entry.
5. Click Edit to begin modification.
6. Change number of shares to 11.
7. Total amount changes from 10 to 21.


Actual Results:  
The transaction gets incorrect total amount of 21.

Expected Results:  
The transaction should be updated to total amount of 11.