Commit Graph

13 Commits

Author SHA1 Message Date
Derek Atkins
8b34e2bc96 Change the Search Dialog to use a CList and allow each object to
provide its own column list for displaying search results.  Change
	the interface to require the list of columns.  Modify all the
	business dialogs to use the new search interface.

	Add a new interface to the QueryCore to convert any Core object
	into a string (or have it return NULL)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6862 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-14 00:52:42 +00:00
Derek Atkins
38f3120e14 change the Order API to take "Timespec" instead of "Timespec*"
g-wrap more of the business objects
create a job and order in the test data


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6747 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-28 00:55:34 +00:00
Derek Atkins
24384eb99a gncOrder: add reference
make reference editable
	add g-wrap for reference
invoice.scm: add order reference(s) to Invoice output
Fix invoice-reload for testing.  It works, now (thanks, rlb)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6741 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-27 04:52:33 +00:00
Derek Atkins
3c71341542 - Provide 'QUERY_PARAM_GUID' to abstract the guid parameter. Remove all
the *_GUID defines, and change them all the QUERY_PARAM_GUID.
- Add a gncObject is_dirty() method, and have the book call it --
  this gives the UI a means to warn the user if any business objects
  changed.
- abstract out the storage methods in the business objects


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6734 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-24 22:12:24 +00:00
Derek Atkins
76e2727955 src/gnome-search/ changes:
Change search-dialog API to provide a start_query and a
		show_start_query for the base limiting query and
		the query to show at dialog start-time.
	add new_item button callback
	change the button-list callback API
	Don't ignore the last criterion while building the query
	create gnc_search_param_prepend() API to build arbitrary paramters

src/business/business-core/ changes:
	Extend some of the available parameters for business objects.
	Add APIs (and paramters) for Orders and Invoices to return
		'closed', 'posted', and 'paid' status.

src/business/business-gnome/ changes:
	Rebuild the Job-Search dialog (more changes to come)
	integrate the gnome-dialog into everything.
	remove the (old) business-chooser dialog; use the search instead

	improve the Extensions menu to show off the business objects


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6720 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-19 18:23:53 +00:00
Derek Atkins
1e45d1ebad QueryNew.h,QueryCore.c: change NEG_ONLY and POS_ONLY to CREDIT and DEBIT
add DEBCRED type to point to the numeric type

QueryObject.c: change SPLIT_VALUE to type DEBCRED
		add some test types

gncInvoice.[ch]: add more Invoice parameters
gncOrder.[ch]: add more Order parameters


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6704 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-09 04:18:50 +00:00
Derek Atkins
b7fb090444 - register the GncOwner as another queriable type
- add to EntryLedger query for invoices; moving from an order->invoice
  will show the appropriate entries for the customer/vendor.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6682 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 02:53:13 +00:00
Derek Atkins
ff880b0efd * gncObject -- object registration in the engine; hook into the books
* QueryNew interface revision-1 check-in

 * update all the business objects to register with the new query system


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6680 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-03 20:01:08 +00:00
Derek Atkins
7b2f65cf8f Abstract out the owner of Orders and Invoices into a GncOwner.
Create a general Owner Selection widget (sort of) by using gnc-general-select
Update the order dialog to provide an OrderID, owner, start/end date, etc.

Order-Dialog buttons still appear right-justified for some strange reason?


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6260 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-06 05:46:42 +00:00
Dave Peticolas
7bcfc52e6f Add *BeginEdit public functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6149 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-30 07:37:50 +00:00
Derek Atkins
aefeab1033 Add dialog-order (to test gncEntryLedger) and hook into the
extensions to create an order


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6142 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-29 23:04:34 +00:00
Derek Atkins
b1cdb65bcd * Remove the "GncBusiness" object type in preparation to move
structure registration (GncBusinessObject) into "gncCore" in the
   engine.

 * Change all the Business Objects to take a GNCBook instead of
   GncBusiness; use the GNCEntityTable in the Book for GUID storage.

 * Use xaccGUIDNew() instead of guid_new().

 * Move the object storage tables into the GNCBook via get/set_data.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6041 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 05:34:34 +00:00
Derek Atkins
7a818ba566 Add first-pass at Entry, Order, and Invoice objects
move EntityTable management into gncBusiness (for now)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5973 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-22 01:23:07 +00:00