Commit Graph
100 Commits
Author SHA1 Message Date
Derek Atkins d79cc8cbe2 Add a text label around the splash screen that includes the Gnucash
Version (currently hard-coded to "Version: Gnucash-CVS")


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7044 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 21:08:51 +00:00
Derek Atkins e5431b6807 Set the query to limit searches to splits that belong to the
customer (or vendor) in question.  This way you can have multiple
customers sharing an A/R account and report on just an individual
customer.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7043 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 05:04:56 +00:00
Derek Atkins c9d24dac4f Add Query system hooks for invoice-from-lot, invoice-from-txn and
owner-from-lot.  Wrap some of the business query-param names.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7042 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 04:39:18 +00:00
Derek Atkins 8f63db0411 create xaccQueryAddGUIDMatchGL() and wrap it. This is a special function
that takes a GUID (instead of a const GUID *) and a GList (instead of
a GSList) and performs an gncQueryAddGUIDMatch().

Add Lots to the query infrastructure, so we can add Lot-based lookups
and queries.

Add SPLIT_LOT parameter and wrap it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7041 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 04:20:46 +00:00
Derek Atkins 6470316116 * Change the "Owner Report" to a "Customer Report" and "Vendor
Report" Create a plug-in system to plug reports into the Register
	Window, keyed off of the account type and whether a split exists
	(for a "Transaction" report).  This required changes to the
	payables and receivables (aging) reports.

	* Tie the Customer and Vendor reports in, so you can bring up a
	Customer Report by selecting a transaction in an A/R account and
	clicking on Reports -> Transaction Report.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7040 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 03:42:26 +00:00
Derek Atkins bceb36bd12 wrap gncInvoiceGetInvoiceFromTxn()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7039 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 03:01:20 +00:00
Derek Atkins 611cc941d6 wrap xaccSplitGetLot()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7038 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-28 02:59:58 +00:00
Derek Atkins 43083bb2db * Create an "owner-report" which prints out a set of Invoice and
Payment transactions and also an aging report for a single "owner"
	(e.g. Customer or Vendor).  This is still a first pass, so it
	might not be correct.  It uses Lots, but it assumes that the
	Account is periodically closed and re-opened (does not have a
	'start-date').  It still needs to be tied into the main GUI.

	* gncJob: add gncJobRetGUID() and gncJobLookupDirect()

	* gncOwner: add gncOwnerRetGUID()

	* gw-business-core-spec.scm: wrap GncAmountType, GncTaxIncluded
	GncBillTermType, gncInvoiceGetInvoiceFromLot(), gncJobRetGUID(),
	jobJobLookupDirect(), gncOwnerGetEndOwner(),
	gncOwnerGetOwnerFromLot(), gncOwnerRetGUID()

	* business-gnome.scm: add extensions to test the owner-report

	* business-options.scm: add an "owner" option-type


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7037 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 20:03:19 +00:00
Derek Atkins 4e89bf835d wrap xaccTransOrder() for use by scheme
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7036 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 19:57:28 +00:00
Derek Atkins 61ade522d6 wrap xaccQueryGetLots()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7035 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 14:12:04 +00:00
Derek Atkins b4e4b08957 Implement xaccQueryGetLots() which is just like xaccQueryGetTransactions()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7034 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 14:10:40 +00:00
Derek Atkins f5994b5554 add gnc_lot_count_splits() function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7033 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 14:09:53 +00:00
Derek Atkins 2ce7831f7d src/engine/Transaction.[ch]: add xaccTransGetAccountValue() method to compute
the sum of all Splits in a Transaction that touch a specific Account.  This
  is most useful with lots.

src/engine/gw-engine-spec.scm: wrap some of the Lot API and the new function
  xaccTransGetAccountValue(), and xaccTransGetTxnType()


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7032 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 02:11:17 +00:00
Derek Atkins 094f790dd0 deal properly if owner == NULL (return FALSE)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7031 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-26 23:18:22 +00:00
Derek Atkins aa9324090e Uncomment code I commented before. Keep the window size instead of
always resiing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7030 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 23:32:24 +00:00
Derek Atkins ec0dbe6b44 * gncOwner.[ch]: Provide functions to store/lookup an owner in a
Lot's kvp_frame.

	* gncInvoice.c: add implemention of GetPostedLot(); when posting
	to an Account, look for any pre-payment Lots and post to that.  If
	the Invoice total < pre-payment, then autmatically forward the
	payments to a future Lot.  If no pre-payment Lot is found, then
	create a new one.

	* dialog-payment.c: force payment amounts to be positive values
	(you cannot un-pay via this dialog).  Apply payments to open
	Invoice Lots in a FIFO manner (by Due Date).  If there is anything
	left over, then create a pre-payment Lot.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7024 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 15:08:50 +00:00
Derek Atkins 131add077d src/engine/Account.[ch]: add convenience function to find open lots
that meet caller's criteria, and create a
			 sorted list (maybe)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7023 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 14:58:36 +00:00
Derek Atkins 7ddf9aa4e8 Force recomputation of lots' is_closed flag when splits are added
or removed.  Otherwise it's possible to return a false-negative
cached response.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7022 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 14:13:50 +00:00
Derek Atkins d77cf0dbc6 actually create the kvp_frame for the lot
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7021 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 05:20:19 +00:00
Derek Atkins 225fbb6934 Fix a typo in a function name that I didn't catch earlier
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7020 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-25 04:20:53 +00:00
Derek Atkins 849f794800 * gncInvoice*, gnc-invoice-xml-v2.c: add a "posted_lot" attribute
which points to the LOT created during the posting of the invoice.
  Also provide a function to grab the invoice from the lot (via KVP
  storage).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7019 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 22:30:36 +00:00
Derek Atkins e2299697df src/engine/gnc-lot.[ch]: provide gnc_lot_get_book() function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7018 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 22:28:33 +00:00
Derek Atkins 18aea89446 Need to supply ${GUILE_INCS} when you want the guile headers
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7016 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 15:29:09 +00:00
Derek Atkins b8993646a2 Fix bugID: 85688
Set the invoice window titles appropriately based on the window type
(New/Edit/View) and the object type (Invoice or Bill).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7015 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-24 15:24:41 +00:00
Derek Atkins 7bebb2eae9 Customer and Vendors can set TaxIncluded to Yes, No, and Use Global,
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
2002-06-24 04:59:04 +00:00
Derek Atkins 1c8ebea9aa * handle double-clicks in the search dialog
* change the close/cancel button as the dialog changes -- you
  cancel a "search" and you close a "find"


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7009 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 17:30:41 +00:00
Derek Atkins b32d5854e0 Save the due-date properly (even if the focus_out_event isn't working)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7008 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 16:35:06 +00:00
Derek Atkins 6450592b65 Mixed up Taxable and TaxTable columns. Fix that.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7006 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 03:09:06 +00:00
Derek Atkins d2cf3e5741 Fix the column headers. Expand the acronyms to be clear, and mark them
as "LEFT" instead of "RIGHT" to get the beginning of the header instead
of the end.  Fixes bugID #85691.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7005 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 03:00:17 +00:00
Derek Atkins 96b0966602 Register the generic option-menu (taxtables and billterms) with
the component manager so it will auto-update when items change.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7004 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 02:30:57 +00:00
Derek Atkins 342eb5d77a Get the invoice toolbar (and menubar) to appear correctly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7003 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 01:25:24 +00:00
Derek Atkins 47563841db Fix the item ordering (so it appears in ascending order)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7002 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 01:24:40 +00:00
Derek Atkins 98f2b6a280 re-sort the list of visible items when the appropriate entries
change.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7001 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 01:23:28 +00:00
Derek Atkins 7060f342cd Fix bugID# 85995. Get invoice and search-dialog windows to appear
proper size by delaying the "show_all" on the dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7000 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-23 00:02:35 +00:00
Derek Atkins b4a361c082 Benoit's "blank-line patch":
Could someone please apply this ridiculous one line patch.  For some reason
the lack of a newline after #if DEBUG causes compilation to fail with
"dialog-scheduledxaction.c:372:25: missing binary operator" on my setup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6999 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-22 22:31:16 +00:00
Derek Atkins a9df3df3f9 * gncBillTerm: add functions to compute DueDate and DiscountDate from
a Timespec (post_date) and the Billing Term definition.

* dialog-date-close: use billing terms; if a term object is supplied,
  display the due date but do not allow the user to modify it directly.
  Use callbacks from the date-edit widget to update the due date.

* dialog-invoice: don't worry about pre-computing a due date; pass the
  billing terms into the date-close dialog.

* date: add a few convenience functions to convert from Timespec to
  day/month/year; compute the last mday from a Timespec; compute the
  last mday from a month/year.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6997 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-22 21:55:00 +00:00
Derek Atkins 23a70b22d2 signal DATE_CHANGED when the focus event occurs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6996 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-22 21:49:22 +00:00
Derek Atkins be1c3236f0 Save proximo-type billterms with the right tag. (oops)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6995 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-22 21:25:54 +00:00
Derek Atkins 00a335aca1 * integrate the Billing Terms into the Core, GUI, and XML Backend
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
2002-06-22 02:38:13 +00:00
Derek Atkins 068749c658 Fix logic for "dirty" setting; only set dirty when data actually
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
2002-06-21 19:00:34 +00:00
Derek Atkins 167710db6b * .../business-core/gncBillTerm*.[ch]: Add Billing Term objects.
Currently there are "Days" and "Proximo" billing terms available.

	* .../business-core/file/gnc-bill-term*: XML Backend storage for
	Billing Terms.

	* .../business-gnome/dialog-bill-terms.[ch]: Dialog to create,
	view, and edit Billing Terms.

	* .../business-gnome/business-prefs.scm: move the business
	preferences (default option creation) to its own scheme file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6988 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-21 16:44:30 +00:00
Derek Atkins 42d3d079b6 Fix a prototype error and move an enum for recent GCC (you can't
have an unnamed enum within a structure)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6985 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-19 22:42:33 +00:00
Derek Atkins c79362faa7 Fix hampton's autoconf patch
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6983 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-19 16:37:03 +00:00
Derek Atkins 9b680c45d6 fix g-wrap location URL
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6981 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-19 14:47:09 +00:00
Derek Atkins 687188fda5 Better logging of tests. The test still fails, but now it's
clear why.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6979 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-18 22:21:46 +00:00
Derek Atkins 4dbf716908 Better error messages
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6978 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-18 21:38:35 +00:00
Derek Atkins 5c3ba03796 Change some column headings per Wilddev's suggestion
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6976 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-17 19:30:35 +00:00
Derek Atkins 01743053ab Update the QUERY hooks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6975 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-17 15:07:37 +00:00
Derek Atkins 19cc155b3e Add a notes field to the entry object.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6974 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-17 04:04:05 +00:00
Derek Atkins b1f316cd2a Put the account tree into a scrolled window
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6973 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-16 22:27:36 +00:00
Derek Atkins 437cc9b14a business-reports is loaded from C; don't need it here
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6972 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-16 21:56:39 +00:00
Derek Atkins 0f3b2e9061 compile with GUILE INCS and LIBS
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6971 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-16 21:55:59 +00:00
Derek Atkins 5293ffa681 update the list of files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6970 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-16 21:55:32 +00:00
Derek Atkins ca3544d2b1 * Move to invoice report into business-reports (it _IS_ a business
report after all).  Add a business-reports guile module, and get
	it all to work.  Fix the gnucash-build-env script to look in the
	new directories.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6968 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-16 20:17:14 +00:00
Derek Atkins 9412153252 * Refactor a lot of the business code. Move the tax-table dialog
to its own directory/gnc-module.  Move the business-gnome glade
	files to their own directory.  Create a business-reports directory
	for the current and future business reports.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6967 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-16 19:07:18 +00:00
Derek Atkins 8ef6d641be Integrate the tax table into the gncEntry object; change how taxes
and discounts are computed, stored, and returned.  Fix the Entry
	XML code to save/load the new taxtable data (not backwards
	compatible).  Integrate new changes into the entry-ledger.

	fix some bugs in the business xml code.  fix some memory leaks.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6966 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-16 05:11:33 +00:00
Derek Atkins 3738df9fc4 * business-core/file/gnc-tax-table-xml-v2.*: Create a preliminary
xml implementation for storing tax tables.

* add some more functions to gncTaxTable.[ch]


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6965 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-14 20:18:34 +00:00
Derek Atkins 851ca85300 Don't allow the user to delete the last entry from a tax table
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6964 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-14 20:16:22 +00:00
Derek Atkins f55d4caaa1 * business-core/gncTaxTable*: Create a preliminary implementation
of Tax Tables.  They are currently not saved, and nothing uses
	them.  Link the initialization into the module.

	* business-gnome/dialog-tax-table*: Create a tax table GUI to
	create and edit tax tables.  G-wrap the editor-window create
	routine.

	* business-gnome.scm: add the Tax Table gui; rename the 'Invoice'
	option page to "Business".  Fix dialog-invoice to use the new
	option name.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6963 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-14 17:08:19 +00:00
Derek Atkins 00a88c5d4b Actually save 'list' when we reverse it
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6962 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-14 04:35:03 +00:00
Derek Atkins dff7a6e9da Create a top-level Business menu item in the main window. You
don't need to run GnuCash with GNC_DEBUG=1 in order to use the
	business functionality.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6953 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-06 04:45:26 +00:00
Derek Atkins a6e850f8a7 Fix a bug in the invoice-search, setup the query properly so
you don't find all invoices.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6952 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-06 00:11:32 +00:00
Derek Atkins 0f0080c964 Integration of the new Query subsystem, to replace the old Query
infrastructure.  This also replaces the old "Find Transaction"
	dialog with the new gnome-search dialog.  Registers, Reports, SXs,
	etc. all test out fine.  Integration with SQL has been "done"
	(i.e. it compiles cleanly) but not "tested."  Lots of the old code
	is still there, but #ifdef'ed out.  That code will go away
	shortly.

	There is only one known loss-of-functionality: the query->xml-v1
	converter was not re-implemented.  The current intention is, if
	this functionality is required, to use the query->scm converter
	and then convert the scm->string and insert that into an XML
	document.

	Fix a Transaction Void bug.

	Fix a few bugs in test code.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6951 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-05 21:59:35 +00:00
Derek Atkins ea90d5a3f1 Add test to compare query->string conversion by converting to a
char* and then evaluating the string.  Also re-add the ability
to print out a bunch of queries.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6949 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-05 02:56:15 +00:00
Derek Atkins 42761622b4 remove test-print-queries (move it to app-utils/test)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6948 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-05 02:40:41 +00:00
Derek Atkins 146d414c73 add test-scm-print-import and test-print-queries
(The latter is not actually run, but is useful to me now)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6945 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-04 22:40:45 +00:00
Derek Atkins d66d0583d9 add gnome-search, business-ledger, and business-file modules
to the loadpath for in-tree testing


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6944 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-03 14:29:59 +00:00
Derek Atkins 1af0341287 Support g-wrap in non-standard location
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6943 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-03 14:02:35 +00:00
Derek Atkins 4ca2f2280a Add g-wrap lib dir for non-standard g-wrap installs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6942 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-03 05:38:54 +00:00
Derek Atkins 66328a0af8 Get test-create-account to work with a non-standard g-wrap install
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6941 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-03 04:53:27 +00:00
Derek Atkins aec026dd2e provide a get_random_numeric()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6934 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-01 02:05:22 +00:00
Derek Atkins 04fe090ce5 don't need GTK_ENTRY() when casting a GtkWidget* to GtkWidget* ;)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6933 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-01 02:03:40 +00:00
Derek Atkins 6af83bf8b2 fix bug: missing structure entry
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6932 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-01 02:02:34 +00:00
Derek Atkins 08638e2555 PERR() if a bad parameter is returned
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6931 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-01 02:01:18 +00:00
Derek Atkins 329736d2c3 Save GUIDs instead of assuming the pointer will stick around
work around a gcc compiler bug: unroll a do { } while() that
does not need to exist.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6930 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-01 01:59:36 +00:00
Derek Atkins 719060454a fix a compiler warning for g_cache_remove()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6929 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-01 01:57:53 +00:00
Derek Atkins 26623bfa24 Provide a default match to return NULL
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6928 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-01 01:55:47 +00:00
Derek Atkins cee0798532 * src/app-utils/option-util.c: Add a function to reset all the gui
widgets for an option-db, ignoring sections that begin "__".

	* dialog-options.c: remove all the 'set to default' buttons and
	add a single 'defaults' button in the dialog button box, which
	resets all the options to their default values.  The user still
	has to 'apply' the changes to take effect.  Also change "close" to
	"cancel".


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6924 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-28 00:36:30 +00:00
Derek Atkins 01189152f3 Don't require fixed-point addition; we'll round at the end. Just let
gnc-numeric do the math for us.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6922 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-27 19:19:26 +00:00
Derek Atkins 8bd744d6d0 Use the new invoice option to hold the invoice being shown
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6921 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-27 18:24:41 +00:00
Derek Atkins aef6a39dce * Create new options for a few business objects. This allows you to
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
2002-05-27 18:17:31 +00:00
Derek Atkins a1a9d90b8b * dialog-options.c: implement a radiobutton option type.
* options.scm: implement a radiobutton option type.
	* app-utils.scm: export the new radiobutton option creators
	* prefs.scm: change the Account Separator to a radiobutton; move


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6919 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-27 05:24:41 +00:00
Derek Atkins 706df53175 * src/gnome-util/dialog-options.[ch]: Create an option-type
database so that modules can define new option-types and plug them
	into Gnucash.  Break apart the existing "if type == blah; else if
	type == blah blah..." code and use the new options-type database.
	New options require the implementation of three functions,
	set_widget(), set_value(), and get_value().


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6918 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-27 02:48:19 +00:00
Derek Atkins 47eaa5c35d * src/engine/GNCId.c: Implement xaccForeachEntity() as a which
allows a traversal of all entities of a particular type.

	* Register GncObject_t descriptions for Splits, Transactions, and
	Accounts.  Move the QueryObject definitions into the actual module
	sources for Transactions, Splits, Accounts, and Books.  This
	allows QueryNew searches for Splits, Transactions, and Accounts.

	* gnc-engine.c: call the registration functions for Splits,
	Transactions, Accounts, and Books to enable searching using the
	new search subsystem.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6913 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-25 02:50:24 +00:00
Derek Atkins b9575c340f Provide a method to obtain the computed discount
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6911 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 21:19:45 +00:00
Derek Atkins 2aa7caf1a1 Put the search criteria into a scrolled window. It will auto-resize
horizontally but vertically the window will remain the same size
and scroll.  Note: need to adjust the scrollbar to scroll to the
end when you add a new criterion.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6910 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 18:23:54 +00:00
Derek Atkins 5ceb07af38 Create a "search-owner" widget for the search dialog, which allows you
to search _by_ owner.  Register at module load-time and use it in the
Invoice Search.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6905 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 03:34:27 +00:00
Derek Atkins a7359db30b Implement grab_focus() and editable_enters() for the search-date widget
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6904 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 00:44:52 +00:00
Derek Atkins ff42bc9386 implement grab_focus() and editable_enters() for other search widgets
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6903 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-24 00:31:32 +00:00
Derek Atkins a19c61ac98 Actually hook in the editable_enters() code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6902 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 23:24:32 +00:00
Derek Atkins ee6db584e2 Begin to implement grab_focus() and editable_enters() in order
to improve the UI.  Currently only string types have been updated.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6901 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 22:57:52 +00:00
Derek Atkins c206acf6fe Fix payable report to save the account
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6900 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 21:57:16 +00:00
Derek Atkins 862edd2220 Actually get the report to "save" successfully so one can reload later
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6898 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 18:01:34 +00:00
Derek Atkins 29b4ed62a0 Hook the payables and receivables reports into the window register
call them when viewing the appropriate accounts


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6897 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 17:05:47 +00:00
Derek Atkins ed360101be Create a new lot when an invoice is posted
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6893 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-23 02:47:46 +00:00
Derek Atkins cd8551e563 business-gnome.scm: add global preferences for the invoice dialog
dialog-invoice.c:   get the dialog to size itself properly, and save the
		    width between runs.
gnucash-sheet.c:    fix a bug where the "optimal size" is reporting the
		    wrong value.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6892 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-22 23:49:43 +00:00
Derek Atkins ed76a1493e Create a popup menu for the register
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6891 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-22 18:40:02 +00:00
Derek Atkins fc2ce45809 Make search types dynamic, so you can register new ones
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6890 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-22 16:32:24 +00:00
Derek Atkins 1ba28d23dc Not all versions of autoconf return 'GNU' in the --version.
Just search for "Autoconf" instead of "GNU Autoconf"


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6887 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-22 03:57:02 +00:00
Derek Atkins 391e908943 configure.in: solve the "test: too many arguments" bug
acinclude.m4: don't need the extra MSG response


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6884 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-21 21:59:25 +00:00