* 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

@ -24,6 +24,10 @@
to entries. Generally the user should be allowed to make to entries. Generally the user should be allowed to make
whatever changes they want without being pestered. 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> 2003-04-01 Christian Stimming <stimming@tuhh.de>
* src/report/report-system/options-utilities.scm: Fix missing i18n * src/report/report-system/options-utilities.scm: Fix missing i18n

View File

@ -60,6 +60,8 @@ gnc_entry_ledger_save (GncEntryLedger *ledger, gboolean do_commit)
if (!gncEntryIsOpen (entry)) if (!gncEntryIsOpen (entry))
gncEntryBeginEdit (entry); gncEntryBeginEdit (entry);
gnc_table_save_cells (ledger->table, entry);
if (entry == blank_entry) { if (entry == blank_entry) {
Timespec ts; Timespec ts;
ts.tv_sec = time(NULL); 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 (entry == blank_entry) {
if (do_commit) { if (do_commit) {
ledger->blank_entry_guid = *xaccGUIDNULL (); ledger->blank_entry_guid = *xaccGUIDNULL ();