Bug 798869 - Transaction Import MAP

Reverted and reapplied commit b86eb96476
in order to reference the proper bug report related to the fix.
This commit is contained in:
Geert Janssens 2023-04-27 13:58:41 +02:00
parent a7f02401e9
commit 49e34b5e03

View File

@ -301,7 +301,11 @@ gnc_import_TransInfo_set_last_split_info (GNCImportTransInfo *info,
info->lsplit_amount = lsplit->amount; info->lsplit_amount = lsplit->amount;
info->lsplit_amount_selected_manually = true; info->lsplit_amount_selected_manually = true;
} }
info->dest_acc = lsplit->account; /* Bayesian matching may have already set a candidate destination
* account. However if the csv data also provides one, the one from the
* csv data is preferred. */
if (lsplit->account)
info->dest_acc = lsplit->account;
info->lsplit_rec_state = lsplit->rec_state; info->lsplit_rec_state = lsplit->rec_state;
info->lsplit_rec_date = lsplit->rec_date; info->lsplit_rec_date = lsplit->rec_date;
} }