Bug #352058 - Invoice entries should default to opening date of invoice.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19134 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2010-05-07 14:38:31 +00:00
parent 7c058c43e7
commit 2abdd379d3

View File

@ -523,6 +523,7 @@ void gnc_entry_ledger_set_default_invoice (GncEntryLedger *ledger,
{
if (!ledger) return;
ledger->invoice = invoice;
ledger->last_date_entered = gncInvoiceGetDateOpened (invoice);
if (!ledger->query && invoice)
create_invoice_query (ledger);