gnucash master: Online transfer with SEPA: Add verification against allowed charset
Christian Stimming
cstim at code.gnucash.org
Sun Feb 2 16:12:33 EST 2014
Updated via https://github.com/Gnucash/gnucash/commit/025032dc (commit)
from https://github.com/Gnucash/gnucash/commit/8cf967da (commit)
commit 025032dc9dbee81570288181aebd0ccfd000c58b
Author: Christian Stimming <christian at cstimming.de>
Date: Sun Feb 2 22:06:37 2014 +0100
Online transfer with SEPA: Add verification against allowed charset
diff --git a/src/import-export/aqb/dialog-ab-trans.c b/src/import-export/aqb/dialog-ab-trans.c
index 109a42f..3a85474 100644
--- a/src/import-export/aqb/dialog-ab-trans.c
+++ b/src/import-export/aqb/dialog-ab-trans.c
@@ -649,6 +649,22 @@ gnc_ab_trans_dialog_verify_values(GncABTransDialog *td)
g_free(purpose);
}
+#if AQBANKING_VERSION_INT >= 50300
+ if (gnc_ab_trans_isSEPA(td->trans_type) &&
+ (AB_Transaction_CheckForSepaConformity(td->ab_trans) != 0))
+ {
+ gnc_ab_trans_dialog_entry_set (td->recp_name_entry,
+ _("The text you entered contained at least one character that is invalid for a SEPA transaction. "
+ "In SEPA, unfortunately only exactly the following characters are allowed: "
+ "a...z, A...Z, 0...9, and the following punctuations: ' : ? , - ( + . ) / "
+ "\n\n"
+ "In particular, neither Umlauts nor an ampersand (&) is allowed, "
+ "neither in the recipient or sender name nor in any purpose line."),
+ GTK_STOCK_CANCEL);
+ values_ok = FALSE;
+ }
+#endif
+
gtk_widget_set_sensitive(td->exec_button, values_ok);
gnc_ab_trans_dialog_clear_transaction(td);
}
Summary of changes:
src/import-export/aqb/dialog-ab-trans.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
More information about the gnucash-changes
mailing list