r23329 - gnucash/trunk/src/import-export/aqbanking - Bug #710739: Fill in field for remote bank account information also for SEPA transfers.
Christian Stimming
cstim at code.gnucash.org
Fri Oct 25 15:02:21 EDT 2013
Author: cstim
Date: 2013-10-25 15:02:20 -0400 (Fri, 25 Oct 2013)
New Revision: 23329
Trac: http://svn.gnucash.org/trac/changeset/23329
Modified:
gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c
Log:
Bug #710739: Fill in field for remote bank account information also for SEPA transfers.
Modified: gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c 2013-10-25 15:25:25 UTC (rev 23328)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c 2013-10-25 19:02:20 UTC (rev 23329)
@@ -423,14 +423,23 @@
const gchar *ab_remote_bankcode =
AB_Transaction_GetRemoteBankCode(ab_trans);
- gchar *ab_other_accountid = g_strdup(ab_remote_accountnumber ? ab_remote_accountnumber : "");
- gchar *ab_other_bankcode = g_strdup(ab_remote_bankcode ? ab_remote_bankcode : "");
+ gchar *ab_other_accountid;
+ gchar *ab_other_bankcode;
gboolean have_accountid;
gboolean have_bankcode;
gchar *retval;
+ // For SEPA transactions, we need to ask for something different here
+ if (!ab_remote_accountnumber)
+ ab_remote_accountnumber = AB_Transaction_GetRemoteIban(ab_trans);
+ if (!ab_remote_bankcode)
+ ab_remote_bankcode = AB_Transaction_GetRemoteBic(ab_trans);
+
+ ab_other_accountid = g_strdup(ab_remote_accountnumber ? ab_remote_accountnumber : "");
+ ab_other_bankcode = g_strdup(ab_remote_bankcode ? ab_remote_bankcode : "");
+
/* Ensure string is in utf8 */
gnc_utf8_strip_invalid(ab_other_accountid);
gnc_utf8_strip_invalid(ab_other_bankcode);
More information about the gnucash-changes
mailing list