Changing the security of a transaction does not update balance

Authored by tbaumgart on Oct 13 2019, 10:55 AM.

Description

Changing the security of a transaction does not update balance

When the security of an investment transaction (e.g. buy) is changed
from security A to security B, the balance of security A does not get
updated. This causes to display false values.

This change fixes the problem by first removing the split referencing
security A from the list of transactions and then updating the balance.

BUG: 411015
FIXED-IN: 5.0.8

Details

Committed
tbaumgartOct 13 2019, 10:55 AM
Parents
R261:cc79f5061d4a: Include config-kmymoney.h where necessary
Branches
Unknown
Tags
Unknown