From a143d59b7c9984d532c4db15c0f7438cb18dd3ac Mon Sep 17 00:00:00 2001 From: jean Date: Fri, 8 May 2020 08:44:23 -0700 Subject: [PATCH] Bug 797737 - Import matching can match an imported transaction to an existing, previously matched transaction A simple fix that skips transactions that have an online_id in the matching process. This fixes the issue, and also speeds up the import. --- gnucash/import-export/import-backend.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnucash/import-export/import-backend.c b/gnucash/import-export/import-backend.c index 888b913b2f..747cf29cd7 100644 --- a/gnucash/import-export/import-backend.c +++ b/gnucash/import-export/import-backend.c @@ -627,6 +627,10 @@ static void split_find_match (GNCImportTransInfo * trans_info, Transaction *new_trans = gnc_import_TransInfo_get_trans (trans_info); Split *new_trans_fsplit = gnc_import_TransInfo_get_fsplit (trans_info); + // Do not consider transactions that have been previously matched. + if (gnc_import_split_has_online_id (split)) + return; + /* Matching heuristics */ /* Amount heuristics */