Bug 798208 - management fee transactions are ignored on OFX import

Treat INVBANKTRAN like BANKTRAN.
This commit is contained in:
John Ralls 2021-09-22 16:07:49 -07:00
parent 8ea52ae212
commit 3cf9f85ea3

View File

@ -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