r23361 - gnucash/trunk/src/business/business-gnome - Bug 687478 - Bills due reminder doesn't work well with credit notes

Geert Janssens gjanssens at code.gnucash.org
Thu Oct 31 18:24:27 EDT 2013


Author: gjanssens
Date: 2013-10-31 18:24:27 -0400 (Thu, 31 Oct 2013)
New Revision: 23361
Trac: http://svn.gnucash.org/trac/changeset/23361

Modified:
   gnucash/trunk/src/business/business-gnome/dialog-invoice.c
Log:
Bug 687478 - Bills due reminder doesn't work well with credit notes

Modified: gnucash/trunk/src/business/business-gnome/dialog-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2013-10-31 22:24:05 UTC (rev 23360)
+++ gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2013-10-31 22:24:27 UTC (rev 23361)
@@ -3143,6 +3143,8 @@
     /* Create the param list (in reverse order) */
     if (param_list == NULL)
     {
+        param_list = gnc_search_param_prepend (param_list, _("CN?"), NULL, type,
+                                               INVOICE_IS_CN, NULL);
         param_list = gnc_search_param_prepend (param_list, _("Amount"), NULL, type,
                                                INVOICE_POST_LOT, LOT_BALANCE, NULL);
         param_list = gnc_search_param_prepend (param_list, _("Company"), NULL, type,
@@ -3161,7 +3163,7 @@
      * AND  invoice -> lot -> is_closed? == FALSE
      * AND  invoice -> type != customer invoice
      * AND  invoice -> type != customer credit note
-     * AND  invoice -> due >= (today - days_in_advance)
+     * AND  invoice -> due <= (today + days_in_advance)
      */
 
     qof_query_add_boolean_match (q, g_slist_prepend(NULL, INVOICE_IS_POSTED), TRUE,



More information about the gnucash-changes mailing list