Bug 474079 - deleting an Account does not delete the internal "Opening Balances" Account
Summary: deleting an Account does not delete the internal "Opening Balances" Account
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.3
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-03 05:29 UTC by KB.claim
Modified: 2023-09-03 05:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
failure shown by consistency check (17.61 KB, image/png)
2023-09-03 05:29 UTC, KB.claim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description KB.claim 2023-09-03 05:29:01 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. for reproduction - Create an account in a foreign currency you are not using at all in your database, e.g. XAU (i.e. other than your usual currency), set an opening balance
2. delete the XAU account - requires to delete the opening transaction first
3. delete all transactions in the XAU currency (if any)
4. delete all price entries for the XAU currency (at least one entry must be there for the account opening)


OBSERVED RESULT
a. Currency cannot be deleted from tools->Currency
b. consistency check failure - it will tell you there exists an "opening balances" account - this must be an internal account as this is nowhere to be seen and cannot be edited.

EXPECTED RESULT
account deleting will remove the internal opening balances account as well, but does not.

SOFTWARE/OS VERSIONS
Windows: 11
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 KB.claim 2023-09-03 05:29:55 UTC
Created attachment 161352 [details]
failure shown by consistency check