2003-02-01 Benoit Gr�goire <bock@step.polymtl.ca>

* src/import-export/gnc-ofx-import.c: No longer assume that transaction with type OFX_OTHER are investement transactions.  Fixes bug reported by Rik harris.
	* src/import-export/import-main-matcher.c: Fix unrelated display bug with balanced (typically investement) transactions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7921 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Benoit Grégoire 2003-02-02 14:26:01 +00:00
parent 93fd3bff82
commit 7f35622cd2
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-02-01 Benoit Grégoire <bock@step.polymtl.ca>
* src/import-export/gnc-ofx-import.c: No longer assume that transaction with type OFX_OTHER are investement transactions. Fixes bug reported by Rik harris.
* src/import-export/import-main-matcher.c: Fix unrelated display bug with balanced (typically investement) transactions.
2003-02-02 Christian Stimming <stimming@tuhh.de>
* configure.in: Disable error-on-warning by default because this

View File

@ -688,6 +688,9 @@ refresh_clist_row (GNCImportMainMatcher *gui,
text[DOWNLOADED_CLIST_ACTION_INFO] =
g_strdup("WRITEME, this is an unknown action");
}
gtk_clist_set_text (GTK_CLIST (gui->clist), row_number,
DOWNLOADED_CLIST_ACTION_INFO,
text[DOWNLOADED_CLIST_ACTION_INFO]);
/* Set the pixmaps */
if(gnc_import_TransInfo_get_action(info)==GNCImport_ADD)

View File

@ -368,7 +368,7 @@ int ofx_proc_transaction_cb(struct OfxTransactionData data)
xaccTransSetCurrency(transaction,currency);
if(data.amount_valid==true)
{
if(data.transactiontype!=OFX_OTHER)
if(data.invtransactiontype_valid==false)
{
/*************Process a normal transaction ***************************/
DEBUG("Adding split; Ordinary banking transaction, money flows from or into the source account");
@ -619,6 +619,10 @@ int ofx_proc_account_cb(struct OfxAccountData data)
default_type=CREDIT;
account_type_name = g_strdup_printf(_("Unknown OFX credit card account"));
break;
case OFX_INVESTMENT :
default_type=BANK;
account_type_name = g_strdup_printf(_("Unknown OFX investment account"));
break;
default: PERR("WRITEME: ofx_proc_account() This is an unknown account type!");
}
}