r17195 - gnucash/branches/aqbanking3/src/import-export/aqbanking - Readd verification dialog after online transaction failure.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Jun 7 15:56:39 EDT 2008


Author: andi5
Date: 2008-06-07 15:56:39 -0400 (Sat, 07 Jun 2008)
New Revision: 17195
Trac: http://svn.gnucash.org/trac/changeset/17195

Modified:
   gnucash/branches/aqbanking3/src/import-export/aqbanking/gnc-ab-transfer.c
Log:
Readd verification dialog after online transaction failure.


Modified: gnucash/branches/aqbanking3/src/import-export/aqbanking/gnc-ab-transfer.c
===================================================================
--- gnucash/branches/aqbanking3/src/import-export/aqbanking/gnc-ab-transfer.c	2008-06-07 18:54:19 UTC (rev 17194)
+++ gnucash/branches/aqbanking3/src/import-export/aqbanking/gnc-ab-transfer.c	2008-06-07 19:56:39 UTC (rev 17195)
@@ -218,6 +218,21 @@
         if (result == GNC_RESPONSE_NOW) {
             /* Finally, execute the job */
             successful = AB_Banking_ExecuteJobs(api, job_list, NULL, 0) == 0;
+
+            if (!successful
+                && (AB_Job_GetStatus(job) == AB_Job_StatusPending
+                    || AB_Job_GetStatus(job) == AB_Job_StatusError)
+                && !gnc_verify_dialog(
+                    parent, FALSE, "%s",
+                    _("The job was sent to the bank successfully, but the "
+                      "bank is refusing to execute the job. Please check "
+                      "the log window for the exact error message of the "
+                      "bank. The line with the error message contains a "
+                      "code number that is greater than 9000.\n"
+                      "\n"
+                      "Do you want to enter the job again?"))) {
+                aborted = TRUE;
+            }
         }
         /* Simply ignore any other case */
 



More information about the gnucash-changes mailing list