Bug 444937 - CSV: when importing with more than one number in header, there's no warranty the actual number gets chosen
Summary: CSV: when importing with more than one number in header, there's no warranty ...
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: importer (show other bugs)
Version: 5.1.2
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-04 10:30 UTC by Dawid Wróbel
Modified: 2022-09-01 16:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dawid Wróbel 2021-11-04 10:30:29 UTC
SUMMARY
When importing a CSV file that has an account number in its header, in case there's another number there that happens to match another account, there's no guarantee the right account gets chosen.
Comment 1 Bug Janitor Service 2021-11-04 10:32:51 UTC
A possibly relevant merge request was started @ https://invent.kde.org/office/kmymoney/-/merge_requests/130
Comment 2 Dawid Wróbel 2022-09-01 16:13:20 UTC
Git commit d1337bc15695e30376189b70ac82b1aad1964c6a by Dawid Wróbel.
Committed on 01/09/2022 at 16:05.
Pushed by wrobelda into branch 'master'.

CSV: rewrite the findAccounts() logic to cover all edge cases

M  +51   -65   kmymoney/plugins/csv/import/core/csvimportercore.cpp

https://invent.kde.org/office/kmymoney/commit/d1337bc15695e30376189b70ac82b1aad1964c6a