glib supplied gi18n.h file. Replace includes of gnome.h with gtk.h
(or better yet glib.h) wherever possible. Don't include gnome.h from
any header files. Remove some extraneous includes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11981 57a11ea4-9604-0410-9ed3-97b8803252fd
QOF create: adding functions to be used with
qof_object_new_instance for new qof_book_merge objects, including
business objects.
Small documentation tweak to make QofEntity and QofParam
structures visible to doxygen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10220 57a11ea4-9604-0410-9ed3-97b8803252fd
Extended the QofSetterFunc to business objects, for those set_fcn 's that
exist.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10207 57a11ea4-9604-0410-9ed3-97b8803252fd
These changes conisted of:
-- change the backend begin()/commit() signatures to take qofinstance
instead of gpointer
-- clean up non-standard use of books by the pricedb
-- rename the gnc-be-utils.h file so that its now a part of QOF
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10056 57a11ea4-9604-0410-9ed3-97b8803252fd
add 'version_compare' function for sql backedn updates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10042 57a11ea4-9604-0410-9ed3-97b8803252fd
-- Add 'new' callback to QofObject. This allows QofObject to act
as an 'object factory', creating a new instance of something,
given only the type name. Plan to use this in the new SQL
backend, when restoring objects from SQL tables.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9965 57a11ea4-9604-0410-9ed3-97b8803252fd
(Yes Derek, I'm agonizing over whether/how to clone/not clone depending
on the backend. But in the meantime this fills in needed function anyway.)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9606 57a11ea4-9604-0410-9ed3-97b8803252fd
with entity reworjk in engine. Add GPL licenses to some of the files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9533 57a11ea4-9604-0410-9ed3-97b8803252fd
Change the event generation and callback routines to
pass a QofIdType in addition to the GUID*
* src/app-utils/gnc-component-manager.c:
* src/gnome-utils/gnc-account-sel.c:
change to match the new event API. Remove the need for
xaccGUIDType(), which means we no longer get the g_warning.
* src/backend/postgres/events.c:
* src/business/business-core/gncAddress.c:
* src/business/business-core/gncAddress.h:
* src/business/business-core/gncBillTerm.c:
* src/business/business-core/gncCustomer.c:
* src/business/business-core/gncEmployee.c:
* src/business/business-core/gncEntry.c:
* src/business/business-core/gncInvoice.c:
* src/business/business-core/gncJob.c:
* src/business/business-core/gncOrder.c:
* src/business/business-core/gncTaxTable.c:
* src/business/business-core/gncVendor.c:
* src/business/business-core/test/test-address.c:
* src/engine/Account.c:
* src/engine/FreqSpec.c:
* src/engine/Group.c:
* src/engine/Period.c:
* src/engine/SchedXaction.c:
* src/engine/Transaction.c:
* src/engine/gnc-lot.c:
* src/engine/gnc-pricedb.c:
* src/engine/qofbook.c:
Pass the QofIdType into the event generation code.
Fixes#115988
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8776 57a11ea4-9604-0410-9ed3-97b8803252fd
- keep a list of children so we can unref ourselves from our
children when we get destroyed
- deal with parentless children
* src/business/business-core/gncCustomer.c:
* src/business/business-core/gncInvoice.c:
* src/business/business-core/gncVendor.c:
deal with properly un-ref'ing Bill Terms and Tax Tables
* src/business/business-core/file/gnc-bill-term-xml-v2.c:
create a scrub function to clear up bogus bill terms due to
bug #114888 which could cause bill terms to get created
due to post/unpost of invoices. Scrubs all invoices and
fixes the reference to bill terms, and updates the refcounts.
Fixes bug #114888 for bill terms.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8597 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/business/business-core/gncCustomer.c:
* src/business/business-core/gncEmployee.c:
* src/business/business-core/gncInvoice.c:
* src/business/business-core/gncJob.c:
* src/business/business-core/gncOrder.c:
* src/business/business-core/gncVendor.c:
add the QUERY_PARAM_ACTIVE parameter support
* src/app-util/prefs.scm: add hidden preference to store
the user's choice of searchin
* src/gnome-search/search.glade: add a checkbox to search-for-all
* src/gnome-search/dialog-search.c -- add preliminary support to
limit searches to only "active" objects. Fixes bug #103506
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7833 57a11ea4-9604-0410-9ed3-97b8803252fd
* .../business-core/gncVendor.[ch]:
* .../business-core/gncEmployee.[ch]:
Rename ...Commodity() to ...Currency()
* .../business-core/gw-business-core-spec.scm: fix function wrappings
* .../business-core/file/gnc-customer-xml-v2.c:
* .../business-core/file/gnc-vendor-xml-v2.c:
* .../business-core/file/gnc-employee-xml-v2.c:
Use new function names.
* .../business-gnome/business-gnome.scm:
* .../business-gnome/dialog-customer.c:
* .../business-gnome/dialog-vendor.c:
* .../business-gnome/dialog-employee.c:
Use new ...Currency() functions
More prep to fix#101001
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7819 57a11ea4-9604-0410-9ed3-97b8803252fd
* business/business-core/*.c: Implement BeginEdit()/CommitEdit() functions
for all the business-accounting data objects.
* Use the begin/commit calls in the GUI and file-backend.
* mostly fixes bug #96855.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7431 57a11ea4-9604-0410-9ed3-97b8803252fd
* business-core/gncCustomer.[ch] -- add API for TaxTable and TaxTableOverride
* business-core/gncVendor.[ch] -- add API for TaxTable and TaxTableOverride
* business-core/file/gnc-customer-xml-v2.c -- store TaxTable and TTOverride
* business-core/file/gnc-vendor-xml-v2.c -- store TaxTable and TTOverride
* business-gnome/dialog-customer.c -- display/choose TaxTable and TTOverride
* business-gnome/dialog-vendor.c -- display/choose TaxTable and TTOverride
* business-gnome/glade/customer.glade -- add TaxTable Menu and Override button
* business-gnome/glade/vendor.glade -- add TaxTable Menu and Override button
* business-ledger/gncEntryLedger.c -- set traverse_to_new = TRUE when
you create a new ledger.
* business-ledger/gncEntryLedgerLoad.c -- don't load the ledger the
first time through (e.g. when there is no invoice and no entries).
Pull in the default TaxTable, TaxIncluded, and Discount flags.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7223 57a11ea4-9604-0410-9ed3-97b8803252fd
which will allow you to override the global setting or just use it..
(Default is Use Global).
Grab the default TaxIncluded settings in the Entry Ledger.
Fix a couple compiler warnings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7011 57a11ea4-9604-0410-9ed3-97b8803252fd
for the rest of the business objects that need billing terms.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6994 57a11ea4-9604-0410-9ed3-97b8803252fd
changes. Only set "global" dirty flag at 'commitedit'
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6990 57a11ea4-9604-0410-9ed3-97b8803252fd
save reports that reference Invoices, Customers, or Vendors and have
them reload properly.
* Add two new functions to interface Invoices, Customers, and Vendors
to scheme (RetGUID and LookupDirect)
* fix the way Entry values are computed. Cache the computed values so
you're not recomputing the math all the time. It should also round
properly, now.
* fix the display of entry values to round to the commodity fraction.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6920 57a11ea4-9604-0410-9ed3-97b8803252fd
provide backend-support without changing the core backend
implementation.
* src/engine/gncObject: Add a 'mark_clean' data-type method()
add backend extension registration.
* src/engine/gnc-book.c: use mark_clean object interface
* src/backend/file/io-gncxml-v2: use the backend extensions
* src/business/business-core/gnc*: add the mark_clean methods
add commodities to many objects
* src/business/business-core/gncInvoice.c: fix GetPaidTxn() bug
* src/business/business-core/file: the XML backend extensions for
business objects.
* src/business/business-gnome/dialog-*: supply default commodities
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6770 57a11ea4-9604-0410-9ed3-97b8803252fd
returns the new value.
- Add gnc_book_get_counter() which implements the API and calls the
counter() method in the backend if it exists. If not, it stores the
counters in the Book KVP Frame.
- Modify all the Business objects to use the new counter API. Counter is
gint64 so modify all the users to expect that.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6759 57a11ea4-9604-0410-9ed3-97b8803252fd
change the address API to know about its parents' guid, and emit events
based upon the parent
get the job-select dialog to use events to update
fix a crash in the invoice and order dialogs when creating a new one.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6754 57a11ea4-9604-0410-9ed3-97b8803252fd
dialog-search: update on events.
restructure code to try to make it more asynchronous.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6752 57a11ea4-9604-0410-9ed3-97b8803252fd