Bug 444937

Summary: CSV: when importing with more than one number in header, there's no warranty the actual number gets chosen
Product: [Applications] kmymoney Reporter: Dawid Wróbel <me>
Component: importerAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.1.2   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:

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