Bug 492495 - Empty New Account after CSV Import
Summary: Empty New Account after CSV Import
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: 25.1.0
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-01 15:02 UTC by pat_h
Modified: 2025-10-13 17:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pat_h 2024-09-01 15:02:40 UTC
Hi,

after your support with the payer/payee search & replace trick using a property (thanks again for the help!), I have another issue with the CSV import.

The problem is that the account name is not part of the regular CSV field. Therefore, I have the field in the CSV import Regex configuration dialog set empty. Now Skrooge creates a new account at a new bank based on the filename of the CSV file. I added a Search & Replace rule to set the correct account on import, which works well.

However, after each import there is now a new account without any transactions. Obviously, deleting this account manually after each import is not the end of the world, but I wondered: Can I delete this account automatically after each import?

If that is not possible yet, would an option make sense to support that behavior?

Kind regards
Patrick
Comment 1 Stephane MANKOWSKI 2025-10-09 19:42:06 UTC
Git commit 1e4d08b4bd56b17d029d9cc45e62de932ece8316 by Stéphane MANKOWSKI.
Committed on 09/10/2025 at 19:41.
Pushed by smankowski into branch 'master'.

492495: Empty New Account after CSV Import

M  +1    -0    CHANGELOG
M  +1    -1    skgbankmodeler/skgdocumentbank.cpp
M  +26   -2    skgbankmodeler/skgimportexportmanager.cpp
A  +-    --    tests/input/skgtestimportcsv/492495.skg
M  +29   -1    tests/skgbankmodelertest/skgtestimportcsv.cpp

https://invent.kde.org/office/skrooge/-/commit/1e4d08b4bd56b17d029d9cc45e62de932ece8316
Comment 2 pat_h 2025-10-13 17:29:23 UTC
Looks great! Thanks a lot. I am looking forward to get this with the next version update.