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
This commit is contained in:
Geert Janssens 2010-05-07 15:29:06 +00:00
parent 2abdd379d3
commit 786fa1b63b

View File

@ -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;