r19135 - gnucash/trunk/src/business/business-gnome - When posting an invoice, propose the invoice's opened date as post date.

Geert Janssens gjanssens at code.gnucash.org
Fri May 7 11:29:06 EDT 2010


Author: gjanssens
Date: 2010-05-07 11:29:06 -0400 (Fri, 07 May 2010)
New Revision: 19135
Trac: http://svn.gnucash.org/trac/changeset/19135

Modified:
   gnucash/trunk/src/business/business-gnome/dialog-invoice.c
Log:
When posting an invoice, propose the invoice's opened date as post date.

Modified: gnucash/trunk/src/business/business-gnome/dialog-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2010-05-07 14:38:31 UTC (rev 19134)
+++ gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2010-05-07 15:29:06 UTC (rev 19135)
@@ -635,7 +635,6 @@
         return;
 
     /* Check that there is at least one Entry */
-    invoice = iw_get_invoice (iw);
     if (gncInvoiceGetEntries (invoice) == NULL)
     {
         gnc_error_dialog (iw_get_window(iw), "%s",
@@ -677,7 +676,7 @@
     acct_commodities = gnc_business_commodities(&(iw->owner));
 
     /* Get the due date and posted account */
-    timespecFromTime_t (&postdate, time(NULL));
+    postdate=gncInvoiceGetDateOpened (invoice);
     ddue = postdate;
     memo = NULL;
 



More information about the gnucash-changes mailing list