diff --git a/ChangeLog b/ChangeLog index a325438608..6f9cd38363 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,10 @@ NOTE: Might need similar fixed in qif-io-core? + * qif-merge-groups.scm: Limit matches against only the accounts in + the old group, so we don't match against ourselves. This should + limit the matches to only "reasonable" matches, and should fix #102463 + 2003-01-15 David Hampton * configure.in: Remove restriction on guile versions > 1.4. diff --git a/src/import-export/qif-import/qif-merge-groups.scm b/src/import-export/qif-import/qif-merge-groups.scm index 5bc6b53347..8bc7d8fb51 100644 --- a/src/import-export/qif-import/qif-merge-groups.scm +++ b/src/import-export/qif-import/qif-merge-groups.scm @@ -63,6 +63,11 @@ (gnc:progress-dialog-update progress-dialog))) (gnc:query-set-book query (gnc:group-get-book old-group)) + + ;; first, we want to find only transactions from the old group. + (gnc:query-add-account-match query + (gnc:group-get-subaccounts old-group) + 'guid-match-any 'query-and) ;; the date should be close to the same.. +/- a week. (let ((date (gnc:transaction-get-date-posted xtn)))