gnucash maint: Bug 798208 - management fee transactions are ignored on OFX import
John Ralls
jralls at code.gnucash.org
Wed Sep 22 19:13:55 EDT 2021
Updated via https://github.com/Gnucash/gnucash/commit/3cf9f85e (commit)
from https://github.com/Gnucash/gnucash/commit/8ea52ae2 (commit)
commit 3cf9f85ea34690ff233529aba45f11918f706980
Author: John Ralls <jralls at ceridwen.us>
Date: Wed Sep 22 16:07:49 2021 -0700
Bug 798208 - management fee transactions are ignored on OFX import
Treat INVBANKTRAN like BANKTRAN.
diff --git a/gnucash/import-export/ofx/gnc-ofx-import.c b/gnucash/import-export/ofx/gnc-ofx-import.c
index 64c5cf435..f75952345 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
Summary of changes:
gnucash/import-export/ofx/gnc-ofx-import.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list