r19230 - gnucash/trunk/src/business/business-gnome - Fix r19227, r19228: Don't make the "Due Date" the primary search; fix erroneous parameters when inserting into list.

Christian Stimming cstim at code.gnucash.org
Fri Jun 4 09:37:13 EDT 2010


Author: cstim
Date: 2010-06-04 09:37:13 -0400 (Fri, 04 Jun 2010)
New Revision: 19230
Trac: http://svn.gnucash.org/trac/changeset/19230

Modified:
   gnucash/trunk/src/business/business-gnome/dialog-invoice.c
Log:
Fix r19227, r19228: Don't make the "Due Date" the primary search; fix erroneous parameters when inserting into list.

Modified: gnucash/trunk/src/business/business-gnome/dialog-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2010-06-04 13:23:58 UTC (rev 19229)
+++ gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2010-06-04 13:37:13 UTC (rev 19230)
@@ -2436,15 +2436,15 @@
                                                _("Date Opened"), NULL, type,
                                                INVOICE_OPENED, NULL);
         inv_params = gnc_search_param_prepend (inv_params,
+                                               _("Due Date"), NULL, type,
+                                               INVOICE_DUE, NULL);
+        inv_params = gnc_search_param_prepend (inv_params,
                                                _("Company Name "), NULL, type,
                                                INVOICE_OWNER, OWNER_PARENT,
                                                OWNER_NAME, NULL);
         inv_params = gnc_search_param_prepend (inv_params,
                                                _("Invoice ID"), NULL, type,
                                                INVOICE_ID, NULL);
-        inv_params = gnc_search_param_prepend (inv_params,
-                                               _("Due Date"), NULL, type,
-                                               INVOICE_DUE, NULL);
     }
     if (bill_params == NULL)
     {
@@ -2470,15 +2470,15 @@
                                                 _("Date Opened"), NULL, type,
                                                 INVOICE_OPENED, NULL);
         bill_params = gnc_search_param_prepend (bill_params,
+                                                _("Due Date"), NULL, type,
+                                                INVOICE_DUE, NULL);
+        bill_params = gnc_search_param_prepend (bill_params,
                                                 _("Company Name "), NULL, type,
                                                 INVOICE_OWNER, OWNER_PARENT,
                                                 OWNER_NAME, NULL);
         bill_params = gnc_search_param_prepend (bill_params,
                                                 _("Bill ID"), NULL, type,
                                                 INVOICE_ID, NULL);
-        bill_params = gnc_search_param_prepend (inv_params,
-                                                _("Due Date"), NULL, type,
-                                                INVOICE_DUE, NULL);
     }
     if (emp_params == NULL)
     {
@@ -2504,15 +2504,15 @@
                                                _("Date Opened"), NULL, type,
                                                INVOICE_OPENED, NULL);
         emp_params = gnc_search_param_prepend (emp_params,
+                                               _("Due Date"), NULL, type,
+                                               INVOICE_DUE, NULL);
+        emp_params = gnc_search_param_prepend (emp_params,
                                                _("Employee Name"), NULL, type,
                                                INVOICE_OWNER, OWNER_PARENT,
                                                OWNER_NAME, NULL);
         emp_params = gnc_search_param_prepend (emp_params,
                                                _("Voucher ID"), NULL, type,
                                                INVOICE_ID, NULL);
-        emp_params = gnc_search_param_prepend (inv_params,
-                                               _("Due Date"), NULL, type,
-                                               INVOICE_DUE, NULL);
     }
 
     /* Build the column list in reverse order */
@@ -2525,13 +2525,13 @@
         columns = gnc_search_param_prepend_with_justify (columns, _("Paid"),
                   GTK_JUSTIFY_CENTER, NULL, type,
                   INVOICE_IS_PAID, NULL);
-        columns = gnc_search_param_prepend (columns, _("Due"), NULL, type,
-                                            INVOICE_DUE, NULL);
         columns = gnc_search_param_prepend (columns, _("Posted"), NULL, type,
                                             INVOICE_POSTED, NULL);
         columns = gnc_search_param_prepend (columns, _("Company"), NULL, type,
                                             INVOICE_OWNER, OWNER_PARENT,
                                             OWNER_NAME, NULL);
+        columns = gnc_search_param_prepend (columns, _("Due"), NULL, type,
+                                            INVOICE_DUE, NULL);
         columns = gnc_search_param_prepend (columns, _("Opened"), NULL, type,
                                             INVOICE_OPENED, NULL);
         columns = gnc_search_param_prepend (columns, _("Num"), NULL, type,



More information about the gnucash-changes mailing list