Commit Graph

5729 Commits

Author SHA1 Message Date
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
bf7c875a8e Change the NewItem Callback so that it's always modal to the
search dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6733 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-24 20:23:29 +00:00
Derek Atkins
b555a3f8c1 - make ID and dates immutable
- remove order/invoice buttons from Job
- only provide 'select job' when using _choose(), not _find()
- fix text in Invoice:  closed -> posted
- Invoice dialog: check for changes in the current cursor when you Post
- entry ledger: don't ask if the only change is mapping an entry to an invoice
- date-close: set 'ok' to default button


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6732 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-24 19:15:19 +00:00
Derek Atkins
e6f16dd283 gncInvoice/gncOrder: add Printable object method
dialog-invoice,dialog-order:	integrate 'New' dialogs
				remove 'cancel' in ledger windows
invoice.glade/order.glade:	rename 'ok' to 'close' in ledger windows
dialog-search:			update search results after callbacks


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6731 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-24 04:01:57 +00:00
Derek Atkins
018114f27d Set dialogs to modal only when there is a parent. Top-level dialogs are
not modal.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6729 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-23 05:20:40 +00:00
Dave Peticolas
1bbf3cbe7a allow watching on any type. fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6728 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-22 23:48:31 +00:00
Derek Atkins
54b287a5ed API change: let the new_item callback decide whether to close the
search dialog or whether the dialog should add the new item to
the "found" list.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6727 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-22 17:35:17 +00:00
Derek Atkins
499a66489b - glade files updated in preparation for a "new" dialog and an entry window
- fix the creation functions to allow orders and invoices with no entries.
  only complain about lack of entries when you try to close/post the
  order/invoice.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6726 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-22 17:05:20 +00:00
Derek Atkins
87f42e1e39 dialog-invoice: fix modality
dialog-order:	fix modality
dialog-job:	fix modality
		fix bugs in order/invoice hooks
		don't destroy job in some cases
dialog-job-select:	update job picker after "new job" callback


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6725 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-22 06:39:02 +00:00
Derek Atkins
af7d55fc6b - Change the dialog-search "choose" API to provide a parent widget...
If it is provided, set the dialog's parent and make the search dialog modal
- fix all the other searches to use the new api
- update the job and job-select dialogs


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6724 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-22 03:58:44 +00:00
Derek Atkins
9c15c95177 - A few API changes to make functions more "similar"
- Change _find() api's to _find() and _choose(), where the former
  returns void, and the latter supplies a 'select' button to choose
  a item.
- More integration of gnome-search, including more button callbacks


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6722 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-21 04:54: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
26e28423ab - Query.h: change to interoperate with QueryNew.h
- QueryNew.h: change to interoperate with Query.h
- dialog-search.c: privatize GNCSearchType, add GNCSearchResultCB,
	change callback API, clear selection on 'cancel', destroy the
	queries at destruction time, add choose() function
- dialog-search.h: privatize GNCSearchType, change callback APIs


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6718 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-17 19:32:01 +00:00
Christian Stimming
0a7e79c310 Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6717 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-17 18:27:52 +00:00
Christian Stimming
fbcb72b678 2002-02-17 Christian Stimming <stimming@tuhh.de>
* src/report/report-system/html-utilities.scm: Added support for
	surpressing zero amounts.

	* src/report/report-system/*-utilities.scm: Clean up
	commodity-collector calling functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6716 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-17 18:11:23 +00:00
Derek Atkins
d4a084f986 Fix the search dialog radio-buttons
Implement the "find" button
bring up a "results window"
fix a bug in the search-string code


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6714 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-16 03:18:38 +00:00
Derek Atkins
c82722fdab - Add Account Search widget(s)
Some of the QueryNew ACCOUNT_* names conflicted with entries in the
AccountFieldCode enumeration.  Hopefully, eventually, the two sets
of names can be combined.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6712 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-13 00:35:42 +00:00
Derek Atkins
77730f4233 - Consolidate debcred search UI into numeric search UI (they are
almost identical anyways).  Remove the (now defunct) debcred.
- Fix a few compiler warnings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6711 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-12 00:19:31 +00:00
Derek Atkins
fe68be2d9a dance a widget shuffle when rebuilding the order and invoice dialogs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6710 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-11 04:32:45 +00:00
Derek Atkins
22bb2807ec make sure that you can't change an Order or Invoice after it becomes RO
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6709 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-11 03:19:26 +00:00
Derek Atkins
8fe6a5f821 have the order dialog stay open when you "close the order", so you
can actually see the change take place.

Remove the links to GNC modules and just make sure those dependencies
are loaded here.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6708 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-11 03:04:31 +00:00
Derek Atkins
ea0d741c3b AccWindow.h: Add comment about who owns the GList *
gncInvoice.[ch]: add date-posted, paid-txn
	change date-closed->date-paid
        add gncInvoicePayToAccount()
dialog-date-close.[ch]: allow list of account-types
        provide a dialog with only 1 date and account (for invoice payment)
dialog-invoice.c: provide list of accounts to date-close dialog(s)
        change 'close' to 'pay'
        hide cancel button on posted/paid invoices
dialog-order.c: hide cancel button on closed orders
search-date.c: remove unused time_t
search-param.[ch]: provide a 'type' over-ride


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6707 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-11 01:59:54 +00:00
Dave Peticolas
edbbab384a fix warnings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6706 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-10 09:57:39 +00:00
Derek Atkins
2e42ed44b9 Add UI for a bunch of new Query types, and hook them into the
Search UI.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6705 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-09 04:22:29 +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
Dave Peticolas
df5d28c967 David Hampton's build system patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6700 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-08 07:17:03 +00:00
Derek Atkins
72ecd9c5a6 New Search Dialog committed to repository.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6699 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-08 05:13:49 +00:00
Derek Atkins
4c948bdabc A new generic search dialog for gnome, and a test to show how it
works.  Still more to come...


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6698 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-08 05:09:52 +00:00
Derek Atkins
4f98e2cb49 Move the GetParameter function into .h from P.h -- it's useful outside
the engine


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6697 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-08 05:08:18 +00:00
Dave Peticolas
d159b826f4 fix docs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6696 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-06 08:07:17 +00:00
Derek Atkins
eb3af031c3 gncEntryLedger: add function to reset the query
dialog-order: (re)set the Order's Owner when the UI changes
dialog-invoice: (re)set the Invoice's Owner with the UI changes, and update
    the entry-ledger query to pick up the proper entries..  This can cause
    problems if the user has already attached any entries to this invoice.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6695 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-06 02:41:51 +00:00
Derek Atkins
c68bf8adbd Move the query_compare_t (compraritor, or "what kind of comparrison to make")
into the Predicate Data, which allows the predicate creation functions
to sanity check the validity.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6694 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-06 02:39:01 +00:00
Derek Atkins
ba18e6db4c add COMPARE_NEQ support
add some extra tests for valid "how" values and PWARN for invalid ones.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6693 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-06 00:50:09 +00:00
Dave Peticolas
ca87c3a207 *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6692 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-05 22:58:53 +00:00
Derek Atkins
a90bed0151 default to % for discount and tax interpretation types
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6691 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-05 20:27:10 +00:00
Derek Atkins
8a96da9c0d Implement "GUID_MATCH_ALL" (to enable support for the old ACCT_MATCH_ALL).
Note that this allows a user to shoot themselves in the foot if
they don't supply a parameter that returns a list.   Right now
the only valid use of this option is:

	(Trans)->TRANS_SPLITLIST->SPLIT_ACCOUNTGUID


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6690 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-05 16:39:21 +00:00
Dave Peticolas
8615b3d40a fix spelling
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6688 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-05 06:21:08 +00:00
Derek Atkins
198b7d043b - gncOwner: add create/destroy functions (for scheme)
- g-wrap the gncOwner interfaces

- restructure the Extensions menu

- dialog-invoice.c: hide the 'print invoice' button until after the
		invoice has been posted

- dialog-order.c: validate the passed-in gncowner to make sure it is a
		valid type


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6687 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-05 04:11:31 +00:00
Derek Atkins
75bade2f8d convert GNC_ID_NONE to appropriate module in component_watch
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6686 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 18:55:11 +00:00
Derek Atkins
5836537d92 - register gncAddress for queries
- register gncJob for queries
- add customer->address and vendor->address methods
- rename gncJobSortFunc to gncJobCompare


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6685 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 18:54:06 +00:00
Derek Atkins
a161f3714c update AUTHORS file
Reset Query when changing an invoice from ReadWrite to ReadOnly.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6684 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 16:06:27 +00:00
Derek Atkins
a473c139ba regex.h is broken on Linux; it doesn't include all the necessary
headers itself (e.g. for size_t).  Stupid Linux.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6683 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 16:05:27 +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
2a0f766c34 * fix QueryNew bug: make sure to retain book list
* Update the QueryNew API to take a GList of terms to allow
  for any number of iterative lookups (such as
  GncEntry->GncInvoice->GncAccount->GNCBook->guid) (not that this
  is a useful example ;)

* Update all the business objects to the new API -- don't distinguish
  between a parameter that returns a core type and a parameter that
  returns another object.  Note that this implies that the namespace
  is shared between the objects and core types.  Also note that this
  is not enforced in any way.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6681 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 01:55:33 +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
Dave Peticolas
beaab8a9f2 add includedir definition
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6679 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-31 11:39:12 +00:00
Dave Peticolas
f8548a48f3 fix warnings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6678 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-31 09:26:16 +00:00
Dave Peticolas
3a3763e085 work on rpm
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6677 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-31 08:57:17 +00:00
Dave Peticolas
f048bb2f55 Fix quoting problems.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6676 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-31 00:00:23 +00:00
Dave Peticolas
38f414e2ed Add new paths to front of lists.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6675 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-30 23:57:24 +00:00