r19814 - gnucash/trunk/src/import-export/aqbanking - When preparing imported DTAUS jobs, check their availability as well.

Christian Stimming cstim at code.gnucash.org
Mon Nov 15 14:37:24 EST 2010


Author: cstim
Date: 2010-11-15 14:37:24 -0500 (Mon, 15 Nov 2010)
New Revision: 19814
Trac: http://svn.gnucash.org/trac/changeset/19814

Modified:
   gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c
Log:
When preparing imported DTAUS jobs, check their availability as well.

Modified: gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c	2010-11-15 19:29:18 UTC (rev 19813)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c	2010-11-15 19:37:24 UTC (rev 19814)
@@ -598,7 +598,11 @@
         job = gnc_ab_get_trans_job(data->ab_acc, ab_trans, SINGLE_DEBITNOTE);
 
         /* Check whether we really got a job */
-        if (!job)
+        if (!job || AB_Job_CheckAvailability(job
+#ifndef AQBANKING_VERSION_5_PLUS
+                                             , 0
+#endif
+                                             ))
         {
             /* Oops, no job, probably not supported by bank */
             if (gnc_verify_dialog(
@@ -613,7 +617,7 @@
                           "\n"
                           "Do you want to enter the job again?")))
             {
-                gnc_error_dialog(NULL, "Sorry, not implemented yet.");
+                gnc_error_dialog(NULL, "Sorry, not implemented yet. Please check the console or trace file logs to see which job was rejected.");
             }
             /* else */
         }



More information about the gnucash-changes mailing list