From 3cf9f85ea34690ff233529aba45f11918f706980 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Wed, 22 Sep 2021 16:07:49 -0700 Subject: [PATCH] Bug 798208 - management fee transactions are ignored on OFX import Treat INVBANKTRAN like BANKTRAN. --- gnucash/import-export/ofx/gnc-ofx-import.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnucash/import-export/ofx/gnc-ofx-import.c b/gnucash/import-export/ofx/gnc-ofx-import.c index 64c5cf4355..f759523450 100644 --- a/gnucash/import-export/ofx/gnc-ofx-import.c +++ b/gnucash/import-export/ofx/gnc-ofx-import.c @@ -586,7 +586,8 @@ int ofx_proc_transaction_cb(struct OfxTransactionData data, void *user_data) xaccTransSetCurrency(transaction, currency); if (data.amount_valid) { - if (!data.invtransactiontype_valid) + if (!data.invtransactiontype_valid || + data.invtransactiontype == OFX_INVBANKTRAN) { double amount = data.amount; #ifdef HAVE_LIBOFX_VERSION_0_10