From 786fa1b63b9ae364df46ff6ca73c01d9d7ffca93 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Fri, 7 May 2010 15:29:06 +0000 Subject: [PATCH] When posting an invoice, propose the invoice's opened date as post date. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19135 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/business/business-gnome/dialog-invoice.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/business/business-gnome/dialog-invoice.c b/src/business/business-gnome/dialog-invoice.c index 128f735bc1..04f9767f92 100644 --- a/src/business/business-gnome/dialog-invoice.c +++ b/src/business/business-gnome/dialog-invoice.c @@ -635,7 +635,6 @@ gnc_invoice_window_postCB (GtkWidget *widget, gpointer data) 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 @@ gnc_invoice_window_postCB (GtkWidget *widget, gpointer data) 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;