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.
This commit is contained in:
jean 2020-05-08 08:44:23 -07:00
parent 79286d92d5
commit a143d59b7c

View File

@ -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 */