Even if you remove all transactions associated with a security, you can't delete the security from KMM until every stock price quote has been deleted. While it's possible to do this manually, it's a bit tedious, and it's also non-obvious. Suggest adding a feature where the user is allowed to delete a security once all transactions have been removed, and is prompted, "Investment price quotes exist. Do you still want to delete this security? All price quotes will also be deleted." The user could then cancel or delete. Reproducible: Always Steps to Reproduce: 1. Create a investment 2. Add some prices or grab them via online quoting services 3. Create some transactions for the investment 4. Delete all transactions 5. Attempt to delete security Actual Results: 6. Deletion not allowed Expected Results: 6. Prompt user: "Investment price quotes exist. Do you still want to delete this security? All price quotes will also be deleted." 7. Delete or cancel as per user
Git commit 3546febfef8ddd8a865044d3a5150b83d06e4f9b by Łukasz Wojniłowicz. Committed on 25/03/2017 at 07:21. Pushed by wojnilowicz into branch 'master'. Delete prices during deleting security FIXED-IN:5.0 Differential Revision: https://phabricator.kde.org/D4943 Signed-off-by: Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> M +36 -6 kmymoney/views/kinvestmentview.cpp https://commits.kde.org/kmymoney/3546febfef8ddd8a865044d3a5150b83d06e4f9b
*** Bug 316223 has been marked as a duplicate of this bug. ***