From 5f604a47c454957020411df0fce6752c4f585483 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Mon, 8 Apr 2024 20:26:37 +0800 Subject: [PATCH] [gnc-ofx-import.cpp] if OFX corrects a transaction, show correction --- gnucash/import-export/ofx/gnc-ofx-import.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnucash/import-export/ofx/gnc-ofx-import.cpp b/gnucash/import-export/ofx/gnc-ofx-import.cpp index dcdaf1544ce..56cdeb4de6e 100644 --- a/gnucash/import-export/ofx/gnc-ofx-import.cpp +++ b/gnucash/import-export/ofx/gnc-ofx-import.cpp @@ -514,6 +514,19 @@ fill_transaction_notes(Transaction *transaction, OfxTransactionData *data) PERR("WRITEME: GnuCash ofx_proc_transaction(): WARNING: This transaction corrected a previous transaction, but we created a new one instead!\n"); notes += "|This corrects transaction #"; notes += sanitize_string (data->fi_id_corrected); + notes += " via a "; + switch (data->fi_id_correction_action) + { + case FiIdCorrectionAction::REPLACE: + notes += "REPLACE"; + break; + case FiIdCorrectionAction::DELETE: + notes += "DELETE"; + break; + default: + notes += "UKNOWN"; + break; + } notes += " but GnuCash didn't process the correction!"; } xaccTransSetNotes (transaction, notes.c_str());