r17251 - gnucash/branches/gda-dev2/src - 1) Reverse order of arguments for sql backend 'commit' function to put

Phil Longstaff plongstaff at cvs.gnucash.org
Wed Jun 25 14:29:59 EDT 2008


Author: plongstaff
Date: 2008-06-25 14:29:57 -0400 (Wed, 25 Jun 2008)
New Revision: 17251
Trac: http://svn.gnucash.org/trac/changeset/17251

Modified:
   gnucash/branches/gda-dev2/src/backend/sql/gnc-account-sql.c
   gnucash/branches/gda-dev2/src/backend/sql/gnc-account-sql.h
   gnucash/branches/gda-dev2/src/backend/sql/gnc-backend-sql.c
   gnucash/branches/gda-dev2/src/backend/sql/gnc-backend-sql.h
   gnucash/branches/gda-dev2/src/backend/sql/gnc-book-sql.c
   gnucash/branches/gda-dev2/src/backend/sql/gnc-book-sql.h
   gnucash/branches/gda-dev2/src/backend/sql/gnc-budget-sql.c
   gnucash/branches/gda-dev2/src/backend/sql/gnc-commodity-sql.c
   gnucash/branches/gda-dev2/src/backend/sql/gnc-lots-sql.c
   gnucash/branches/gda-dev2/src/backend/sql/gnc-price-sql.c
   gnucash/branches/gda-dev2/src/backend/sql/gnc-schedxaction-sql.c
   gnucash/branches/gda-dev2/src/backend/sql/gnc-schedxaction-sql.h
   gnucash/branches/gda-dev2/src/backend/sql/gnc-transaction-sql.c
   gnucash/branches/gda-dev2/src/backend/sql/gnc-transaction-sql.h
   gnucash/branches/gda-dev2/src/business/business-core/sql/gnc-bill-term-sql.c
   gnucash/branches/gda-dev2/src/business/business-core/sql/gnc-bill-term-sql.h
   gnucash/branches/gda-dev2/src/business/business-core/sql/gnc-customer-sql.c
   gnucash/branches/gda-dev2/src/business/business-core/sql/gnc-employee-sql.c
   gnucash/branches/gda-dev2/src/business/business-core/sql/gnc-entry-sql.c
   gnucash/branches/gda-dev2/src/business/business-core/sql/gnc-invoice-sql.c
   gnucash/branches/gda-dev2/src/business/business-core/sql/gnc-job-sql.c
   gnucash/branches/gda-dev2/src/business/business-core/sql/gnc-order-sql.c
   gnucash/branches/gda-dev2/src/business/business-core/sql/gnc-tax-table-sql.c
   gnucash/branches/gda-dev2/src/business/business-core/sql/gnc-vendor-sql.c
   gnucash/branches/gda-dev2/src/engine/Split.c
   gnucash/branches/gda-dev2/src/engine/Split.h
   gnucash/branches/gda-dev2/src/engine/gnc-lot.c
   gnucash/branches/gda-dev2/src/engine/gnc-lot.h
   gnucash/branches/gda-dev2/src/gnome/lot-viewer.c
Log:
1) Reverse order of arguments for sql backend 'commit' function to put
GncSqlBackend* first.
2) When deleting a lot, delete its slots as well.
3) Add 'lot_guid' field to a split.
4) When loading sql file, ensure lots are loaded before splits so that engine
already knows lot guids.
5) In sql commit routine, ensure LEAVE() balances ENTER()
6) In lot-viewer.c, when selecting a different lot in the list, lot title
and notes are set.  Put these inside begin_edit/commit_edit.
7) Add xaccSplitSetLot() function to Split.h and .c and use this in gnc-lot.c
instead of modifying the Split field directly.
8) Modify gnc_lot_destroy() to set the destroying flag and commit the lot.
The actual free is done in the qof_commit callback.





More information about the gnucash-patches mailing list