[kmymoney] [Bug 408205] New: Merging payees results in error and data loss if payee is in matched transaction

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Sun Jun 2 07:42:46 BST 2019


https://bugs.kde.org/show_bug.cgi?id=408205

            Bug ID: 408205
           Summary: Merging payees results in error and data loss if payee
                    is in matched transaction
           Product: kmymoney
           Version: unspecified
          Platform: MS Windows
                OS: MS Windows
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: kmymoney-devel at kde.org
          Reporter: tusvik2 at gmail.com
  Target Milestone: ---

SUMMARY
If a payee is used in a matched transaction, the transaction is not visible
under the payee in the payee list after they are matched. If you try to merge
or delete a "ghost payee", you get an error:

Unable to remove payee(s)
Cannot remove payee that is still referenced to a transaction
C:\_\be855f17\kmymoney\kmymoney\mymoney\storage\mymoneystoragemgr.cpp:290

Then all matched transaction with that payee are lost.

STEPS TO REPRODUCE
1. Manually create payee-a and payee-b
2. Manually create 2 transactions, one with Pay to: payee-a and one to payee-b.
Same amount on both.
3. Match the two transactions. The matched transaction will be listed with
payee-b.
4. If you now look in the payee list, you see the transaction under payee-b. If
you look at payee-a, the transaction list is empty.
5. Merge payee-a and payee-b to payee-b. Then you get the error above, and the
the match transaction and sub transactions are deleted.
6. If you try to delete payee-a instead, then you get an error, but transaction
is not deleted as with merge.


OBSERVED RESULT
Payee not merged, transaction deleted. If a payee is used in a sub transaction
in a matched transaction, the transaction is not visible in under transactions
on the payee in the payee list. Now it's very dangerous to use the merge payee,
since if a payee is linked to a sub transaction, it will delete all related
transactions to that payee without any notifications. 

EXPECTED RESULT
When merging payees, it should also handle the sub transactions in a matched
transaction.
<PAIR key="kmm-matched-tx"......."SPLIT payee="P000004""

Matched transaction's sub transaction should be listed under that payee's
transaction tab. Or some other way to prevent "ghost" payees that can't be
deleted or merged, because they have unknown relations to matched sub
transactions. The only way to locate them is to go into the XML.

SOFTWARE/OS VERSIONS
Windows: 10 Pro x64
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.3

ADDITIONAL INFORMATION
KMyMoney Version 5.0.80-7611781f3

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list