Skip to content

Commit

Permalink
2003-03-06 Christian Stimming <stimming@tuhh.de>
Browse files Browse the repository at this point in the history
	* src/import-export/hbci/dialog-hbcitrans.c: Include a latest
	change in OpenHBCI: Use bank code from HBCI account instead of
	HBCI bank, if the available openhbci version supports it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8043 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
cstim committed Mar 6, 2003
1 parent 9b176de commit 6e14383
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2003-03-06 Christian Stimming <stimming@tuhh.de>

* src/import-export/hbci/dialog-hbcitrans.c: Include a latest
change in OpenHBCI: Use bank code from HBCI account instead of
HBCI bank, if the available openhbci version supports it.

2003-03-03 Derek Atkins <derek@ihtfp.com>

* src/business/business-core/business-core.scm: don't export
Expand Down
11 changes: 11 additions & 0 deletions src/import-export/hbci/dialog-hbcitrans.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <gnome.h>
#include <openhbci/bank.h>
#include <openhbci/outboxaccjobs.h>
#include <openhbci.h>

#include "dialog-utils.h"
#include "gnc-ui.h"
Expand Down Expand Up @@ -210,8 +211,18 @@ gnc_hbci_trans (GtkWidget *parent,
/* Fill in the user-entered values */
trans = HBCI_Transaction_new();

#if (OPENHBCI_VERSION_MAJOR>0) || (OPENHBCI_VERSION_MINOR>9) || (OPENHBCI_VERSION_PATCHLEVEL>8)
/* OpenHBCI newer than 0.9.8: use account's bankCode values
* instead of the bank's ones since this is what some banks
* require. */
HBCI_Transaction_setOurCountryCode (trans,
HBCI_Account_countryCode (h_acc));
HBCI_Transaction_setOurBankCode (trans,
HBCI_Account_instituteCode (h_acc));
#else
HBCI_Transaction_setOurCountryCode (trans, HBCI_Bank_countryCode (bank));
HBCI_Transaction_setOurBankCode (trans, HBCI_Bank_bankCode (bank));
#endif
HBCI_Transaction_setOurAccountId (trans, HBCI_Account_accountId (h_acc));
HBCI_Transaction_setOurSuffix (trans, HBCI_Account_accountSuffix (h_acc));

Expand Down

0 comments on commit 6e14383

Please sign in to comment.