* src/business/business-ledger/gncEntryLedgerControl.c:

Save the entry cells before adding an it to the invoice,
	  otherwise it wont get sorted properly.  Fixes #108910.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8159 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-04-02 03:05:30 +00:00
parent d634a00aec
commit 4798b3255b
2 changed files with 6 additions and 2 deletions

View File

@ -23,6 +23,10 @@
Don't ask the user in the general case when making changes
to entries. Generally the user should be allowed to make
whatever changes they want without being pestered.
* src/business/business-ledger/gncEntryLedgerControl.c:
Save the entry cells before adding an it to the invoice,
otherwise it wont get sorted properly. Fixes #108910.
2003-04-01 Christian Stimming <stimming@tuhh.de>

View File

@ -60,6 +60,8 @@ gnc_entry_ledger_save (GncEntryLedger *ledger, gboolean do_commit)
if (!gncEntryIsOpen (entry))
gncEntryBeginEdit (entry);
gnc_table_save_cells (ledger->table, entry);
if (entry == blank_entry) {
Timespec ts;
ts.tv_sec = time(NULL);
@ -86,8 +88,6 @@ gnc_entry_ledger_save (GncEntryLedger *ledger, gboolean do_commit)
}
}
gnc_table_save_cells (ledger->table, entry);
if (entry == blank_entry) {
if (do_commit) {
ledger->blank_entry_guid = *xaccGUIDNULL ();