mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
2abdd379d3
commit
786fa1b63b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user