Commit Graph

5706 Commits

Author SHA1 Message Date
Dave Peticolas
af6169c07a David Hampton's doc patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6766 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-04 07:53:59 +00:00
Dave Peticolas
91b2f1d5f2 David Hampton's doc patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6764 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-03 10:34:37 +00:00
Dave Peticolas
202d7ce6d5 David Hampton's ignore patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6763 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-03 10:33:45 +00:00
Dave Peticolas
4354b2e89f David Hampton's spec file patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6762 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-03 10:33:03 +00:00
Dave Peticolas
5e04748f71 fix bug
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6761 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-03 10:30:48 +00:00
Derek Atkins
de7ac5c52e change string-searches to default to case-insensitive
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6760 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-03 02:31:27 +00:00
Derek Atkins
e83341b8c7 - Add new Backend method, counter(), which increments a named counter and
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
2002-03-03 02:17:07 +00:00
Dave Peticolas
4bacc6a9eb fix specs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6758 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-03 00:08:25 +00:00
Dave Peticolas
87e4f059df add NULL is_dirty entry to static object
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6757 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-03 00:02:56 +00:00
Dave Peticolas
0cc0516ef5 Check for null id_type.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6756 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-03 00:02:17 +00:00
Dave Peticolas
2866ec7d13 suspend gui refresh during update
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6755 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-02 23:59:54 +00:00
Derek Atkins
e130451499 emit gnc events for the business objects.
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
2002-03-02 18:55:01 +00:00
Derek Atkins
587430402d change API to supply a "const GUID *" because it's read-only
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6753 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-02 18:53:15 +00:00
Derek Atkins
bc76542925 gncVendor.c: convert terms to string
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
2002-03-01 21:45:54 +00:00
Dave Peticolas
902e35b2c7 David Hampton's build system patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6751 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-01 07:53:07 +00:00
Derek Atkins
2e801a6460 gncCustomer: change terms from gint to string
gncEntry: emit engine events for changes
        emit an event when the order is set: 'owner' modified
gncOrder: add the entry to the order before setting the entry
business-gnome.scm: change the API for invoice/order find/edit functions
dialog-customer: change terms entry to a GtkEntry; handle as string
	integrate invoice/order API changes
dialog-invoice: change find/edit API; start work for asynchronous UI
dialog-order: change find/edit API; start work for asynchronous UI
dialog-vendor: integrate invoice/order API changes
dialog-job-select: integrate invoice/order API changes


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6750 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-03-01 04:15:01 +00:00
Dave Peticolas
8e51e62781 David Hampton's make distcheck patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6749 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-28 08:31:32 +00:00
Derek Atkins
a2f360a38b srfi-19: Fix date->string to work with guile-1.4/slib-2d2
gncEntry: add date_entered for better sorting
	  change SetDate methods from "Timespec*" to "Timespec"
	  update entry ledger to use new function calls

Fix a comparison bug in Entry/Invoice/Order.  Compares now
work correctly.

Updated invoice report; use date->string to print today's date;
flags to print notes.  Added more flexibility in what gets printed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6748 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-28 05:10:07 +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
Dave Peticolas
bc0eb9c8cc David Hampton's register patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6742 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-27 06:45:56 +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
d23182e372 gncInvoice: change interfaces from "const Timespec *" to "Timespec"
for the setter methods
Improved invoice report
wrapped a few more business objects


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6740 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-26 23:42:11 +00:00
Derek Atkins
f840788ccb Create a new Invoice Report to print a GncInvoice
remove the "Invoice" report from the old register report


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6739 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-26 06:07:09 +00:00
Dave Peticolas
96dcbfcc7e work on cm
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6738 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-25 09:49:13 +00:00
Derek Atkins
c659be0528 wrap a bunch of the core business objects
add 'ReturnValue' and 'ReturnTaxValue' functions for simplicity of wrapping


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6737 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-25 05:02:21 +00:00
Derek Atkins
4e436926a3 Add hook to print invoice. Still need to write the invoice print
routine (in scheme), but the hook curently exists to do so.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6736 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-25 03:20:45 +00:00
Derek Atkins
dc3c3c75ca QueryObject: Move the 'Param Function Getter' to the public API
dialog-search:	don't forget out last-selected item when we refresh
		add 'new item' to the query if we're staying open
search-param:	fix a compiler warning


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6735 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-24 22:43:54 +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
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