Commit Graph

5983 Commits

Author SHA1 Message Date
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
David Hampton
2ab8a1186e Menu change tweaks. Stock druid tweaks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6959 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-11 18:51:13 +00:00
David Hampton
d020558263 Use checkmenuitems in the View menu.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6958 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-11 06:05:24 +00:00
David Hampton
b758e720c7 Remove the 'tax information' item from the account window pop-up menu.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6957 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-10 04:58:04 +00:00
David Hampton
919425012c Sort the price database by clicking on column titles.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6956 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-10 00:35:31 +00:00
David Hampton
c7fd015311 Move 'Business' menu earlier.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6955 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-09 23:28:27 +00:00
David Hampton
5e8141e95f First pass at menu rearranging
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6954 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-09 21:43:51 +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
David Hampton
ba82fd2055 Update cvs ignore files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6950 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-05 21:03:27 +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
David Hampton
e54382ace6 Work around Gnome MDI bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6947 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-05 00:52:17 +00:00
Christian Stimming
8a185430e9 2002-06-05 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/*: Add directory and initial files for
	HBCI support module.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6946 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-04 23:11:33 +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
David Hampton
2d07cfdbe4 Eliminate an ordering problem when loading business modules.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6940 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-02 00:04:46 +00:00
David Hampton
a9fb87fcff Fix printing to eliminate the warning messages.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6938 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-01 08:30:37 +00:00
David Hampton
41bb309c69 Fix amount column sort order.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6937 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-01 08:18:18 +00:00
David Hampton
b5c5dfdc06 Use a selection list if a prefs dialog has more than four pages.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6936 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-01 08:10:09 +00:00
David Hampton
b5f96d12fc Another gettext-0.11 change.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6935 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-01 06:26:37 +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
David Hampton
0cd7253b8a Show all the widgets in the dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6927 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-31 01:18:12 +00:00
David Hampton
9993667dfd Add default accelerator for Find.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6925 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-28 05:55:34 +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
David Hampton
3aba7c050d Sort the account type list.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6923 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-28 00:17:09 +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
Linas Vepstas
1d7c3ea829 update lot status
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6916 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-26 05:15:48 +00:00
Linas Vepstas
be8c5855d8 added tracing; misc lot-related bug fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6915 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-26 04:44:53 +00:00
Linas Vepstas
f47b53a310 misc cleanup; lot-related bug fixes; add more traces
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6914 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-26 04:42:08 +00:00