Summary: | When matching an assigned and unassigned transaction, KMM may leave the resulting category empty | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Dawid Wróbel <me> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 5.1.1 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Other | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=442354 | ||
Latest Commit: | https://invent.kde.org/office/kmymoney/commit/02e3797990c5451b8ee7ecf094cc76c62f0d3cf6 | Version Fixed In: | 5.1.2 |
Sentry Crash Report: |
Description
Dawid Wróbel
2021-04-08 15:42:13 UTC
Actually, my bad: you actually have to select the assigned first, and then the unassigned transaction for the match to work as expected. The other way round is broken. This is because TransactionMatcher::match() uses the first transaction selected as a base. Git commit 2526004d3ff6f80f014102fe76244190f5c44d7f by Thomas Baumgart. Committed on 17/04/2021 at 09:27. Pushed by tbaumgart into branch 'improve_merging'. Improve transaction merging Transaction merging does not provide any visual feedback to the user. This can lead to unwanted results. This mostly happeqns, when the user selected transactions appear in an unexpected order to the matching function and the category assignment disappears for no obvious reason. The logic has been enhanced to check if an imported transaction which usually does not have a category assigned shall replace an existing transaction that has a category assignment. In this case, the selected transactions are exchanged so that the category assignment does not disappear. In case both transactions have more than one split, the user is asked for confirmation of the operation. FIXED-IN: 5.1.2 M +1 -1 kmymoney/dialogs/kmergetransactionsdlg.cpp M +56 -53 kmymoney/views/kgloballedgerview_p.h https://invent.kde.org/office/kmymoney/commit/2526004d3ff6f80f014102fe76244190f5c44d7f Git commit 49e4e13a546a5b6bdfbbbcef65bdb59cc54ae4ab by Thomas Baumgart. Committed on 23/04/2021 at 05:25. Pushed by tbaumgart into branch '5.1'. Improve transaction merging Transaction merging does not provide any visual feedback to the user. This can lead to unwanted results. This mostly happeqns, when the user selected transactions appear in an unexpected order to the matching function and the category assignment disappears for no obvious reason. The logic has been enhanced to check if an imported transaction which usually does not have a category assigned shall replace an existing transaction that has a category assignment. In this case, the selected transactions are exchanged so that the category assignment does not disappear. In case both transactions have more than one split, the user is asked for confirmation of the operation. FIXED-IN: 5.1.2 M +5 -1 kmymoney/dialogs/kmergetransactionsdlg.cpp M +56 -53 kmymoney/views/kgloballedgerview_p.h https://invent.kde.org/office/kmymoney/commit/49e4e13a546a5b6bdfbbbcef65bdb59cc54ae4ab Git commit 02e3797990c5451b8ee7ecf094cc76c62f0d3cf6 by Thomas Baumgart. Committed on 23/04/2021 at 15:30. Pushed by tbaumgart into branch 'master'. Improve transaction merging Transaction merging does not provide any visual feedback to the user. This can lead to unwanted results. This mostly happeqns, when the user selected transactions appear in an unexpected order to the matching function and the category assignment disappears for no obvious reason. The logic has been enhanced to check if an imported transaction which usually does not have a category assigned shall replace an existing transaction that has a category assignment. In this case, the selected transactions are exchanged so that the category assignment does not disappear. In case both transactions have more than one split, the user is asked for confirmation of the operation. FIXED-IN: 5.1.2 (cherry picked from commit 49e4e13a546a5b6bdfbbbcef65bdb59cc54ae4ab) M +5 -1 kmymoney/oldregister/kmergetransactionsdlg.cpp M +55 -52 kmymoney/views/kgloballedgerview_p.h https://invent.kde.org/office/kmymoney/commit/02e3797990c5451b8ee7ecf094cc76c62f0d3cf6 |