Skip to content

Commit

Permalink
[gnc-ofx-import.cpp] if OFX corrects a transaction, show correction
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Apr 13, 2024
1 parent 1eedc78 commit 5f604a4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gnucash/import-export/ofx/gnc-ofx-import.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 5f604a4

Please sign in to comment.