mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 798391 OFX import routine keeps prompting for accepted
With some OFX_INCOME or OFX_REINVEST transactions, the FITID field was not always being set.
This commit is contained in:
parent
9d07471a88
commit
0822d6f5a3
@ -873,6 +873,8 @@ int ofx_proc_transaction_cb(struct OfxTransactionData data, void *user_data)
|
|||||||
|
|
||||||
// Set split memo from ofx transaction name or memo
|
// Set split memo from ofx transaction name or memo
|
||||||
gnc_ofx_set_split_memo(&data, split);
|
gnc_ofx_set_split_memo(&data, split);
|
||||||
|
if (data.fi_id_valid)
|
||||||
|
gnc_import_set_split_online_id (split, sanitize_string (data.fi_id));
|
||||||
}
|
}
|
||||||
if (income_account != NULL &&
|
if (income_account != NULL &&
|
||||||
data.invtransactiontype == OFX_INCOME)
|
data.invtransactiontype == OFX_INCOME)
|
||||||
@ -889,6 +891,8 @@ int ofx_proc_transaction_cb(struct OfxTransactionData data, void *user_data)
|
|||||||
|
|
||||||
// Set split memo from ofx transaction name or memo
|
// Set split memo from ofx transaction name or memo
|
||||||
gnc_ofx_set_split_memo(&data, split);
|
gnc_ofx_set_split_memo(&data, split);
|
||||||
|
if (data.fi_id_valid)
|
||||||
|
gnc_import_set_split_online_id (split, sanitize_string (data.fi_id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -907,6 +911,8 @@ int ofx_proc_transaction_cb(struct OfxTransactionData data, void *user_data)
|
|||||||
|
|
||||||
// Set split memo from ofx transaction name or memo
|
// Set split memo from ofx transaction name or memo
|
||||||
gnc_ofx_set_split_memo(&data, split);
|
gnc_ofx_set_split_memo(&data, split);
|
||||||
|
if (data.fi_id_valid)
|
||||||
|
gnc_import_set_split_online_id (split, sanitize_string (data.fi_id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user