Commit Graph

113 Commits

Author SHA1 Message Date
Joshua Sled
7de7b944f8 2002-04-16 Joshua Sled <jsled@asynchronous.org>
* src/register/ledger-core/gnc-ledger-display.c: Some template-GL
	cleanup [debugging printf's removed].  Removed never-used
	LD_TEMPLATE type.

	* src/gnome/glade/sched-xact.glade: Removed unused start page.

	* src/gnome/dialog-sxsincelast.c: Added support for using the
	gnc-regWidget to display created transactions for review. Added
	'Cancel' support. Didn't remove enough dead code, but started to.

	* src/gnome/dialog-scheduledxaction.c: Added support for using the
	gncRegWidget in the SX editor.  Formatting changes.

	* src/register/ledger-core/gnc-regWidget.{h,c}: Added; a
	macro-widget roughly duplicating the src/gnome/window-register.c
	look-and-feel-and-behavior.

	* src/engine/SchedXaction.c: Added support for saving a "temporal
	snapshot" of a scheduled transaction. Rewrote "sequence state"
	manipulations in terms of temporal snapshots.

	* src/engine/Query.c: Add support for Querying the template
	AccountGroup.

	* src/doc/TODO-schedxactions: Updates.

	* src/engine/Makefile.am: Prepend-to instead of unconditionally
	setting GUILE_LOAD_PATH when creating iso-4217-currencies.c, for
	those of us that need to set it for whatever reason we need to do
	so.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6795 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-04-16 07:09:16 +00:00
Dave Peticolas
fae07ec3f1 fix mem leaks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6531 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-08 01:37:10 +00:00
Linas Vepstas
875a439abc cut over to multiple-book query
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6500 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-03 06:11:04 +00:00
Linas Vepstas
d4ff335f23 move Query private data structures to private file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6498 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-03 02:34:52 +00:00
Linas Vepstas
e0b61ebb58 more reorg in preparation for switch to books
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6496 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-03 01:57:04 +00:00
Linas Vepstas
68e191f02d start adding book-matching predicates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6492 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-02 21:29:00 +00:00
Linas Vepstas
8819597b9d cosmetic renaming of PR_AMOUNT->PR_VALUE
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6486 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-02 20:20:37 +00:00
Linas Vepstas
df716532e9 purely cosmetic re-arrangement of parenthesis
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6485 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-02 19:56:02 +00:00
Linas Vepstas
fcabb48530 remove un-needed include
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6445 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-31 18:16:41 +00:00
Dave Peticolas
f8a37f7126 Remove use of xaccTransGetSplit.
Fix bug in account query optimization.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6140 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-29 11:10:20 +00:00
Linas Vepstas
8c2d2d4cf0 further backend->book simplification
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6050 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 08:31:26 +00:00
Derek Atkins
788d998d6b convert GNCIdType from an enum to a char*
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6035 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 02:20:34 +00:00
Linas Vepstas
aa232f2fcf add utilities for accounting periods, clean up backend handling
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6034 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 01:38:58 +00:00
Linas Vepstas
7f8b1e824e type-safety tweaks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6027 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-24 22:12:08 +00:00
Dave Peticolas
9ab5664185 Add explicit types to GUID queries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5862 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-14 09:07:49 +00:00
Dave Peticolas
86c55a3e22 Fix query<->scm for new kvp queries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5772 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-06 00:49:46 +00:00
Dave Peticolas
2176d53e99 Work on adding kvp queries.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5770 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-05 09:18:07 +00:00
Dave Peticolas
2efd973550 2001-10-11 Dave Peticolas <dave@krondo.com>
* src/register/register-core/table-allgui.c
	(gnc_table_traverse_update): remove assert

	* src/import-export/binary-import/druid-commodity.c: use g_assert

	* src/guile/gnucash.c.in (gnc_main): use g_assert

	* src/gnome-utils/gnc-account-tree.c: remove asserts

	* src/gnome/dialog-fincalc.c (normalize_period): remove asserts

	* src/gnome/dialog-find-transactions.c: remove asserts

	* src/gnome/dialog-scheduledxaction.c: remove asserts

	* src/gnome/reconcile-list.c: remove asserts

	* src/gnome/window-register.c: remove asserts

	* src/engine/Account.c: remove asserts

	* src/engine/Group.c: remove asserts

	* src/engine/Query.c:remove asserts

	* src/engine/TransLog.c: remove asserts

	* src/engine/Transaction.c: remove asserts

	* src/engine/gnc-engine-util.h: don't include assert.h

	* src/engine/gnc-engine.c: remove asserts

	* src/engine/gnc-numeric.c: remove asserts

	* src/engine/gnc-pricedb.c (gnc_price_unref): remove asserts

	* src/engine/messages.c: remove asserts

	* src/backend/file/test/test-xml-account.c: fix text handling

	* src/backend/file/test/test-xml-commodity.c: fix text handling

	* src/backend/file/test/test-xml-transaction.c: fix text handling

	* src/backend/file/gnc-freqspec-xml-v2.c: fix text handling

	* src/backend/file/gnc-pricedb-xml-v2.c: fix text handling

	* src/backend/file/gnc-schedxaction-xml-v2.c: fix text handling

	* src/backend/file/gnc-transaction-xml-v2.c: fix text handling

	* src/backend/file/io-gncxml-v1.c: fix text handling

	* src/backend/file/sixtp-dom-parsers.c: fix text handling

	* src/backend/file/sixtp-to-dom-parser.c (dom_chars_handler): don't
	ignore whitespace. This fixes text handling for strings like "< <"

	* src/app-utils/gnc-ui-util.c: remove asserts

	* src/app-utils/option-util.c: remove asserts


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5576 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-11 11:35:50 +00:00
Dave Peticolas
ba19fb2327 Work on moving entity tables into sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5482 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-09 22:27:58 +00:00
Dave Peticolas
d384066697 Work on moving entity tables into sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5473 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-08 22:48:37 +00:00
Dave Peticolas
b8d2150e4b Work on moving entity table into sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5472 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-08 07:14:58 +00:00
Dave Peticolas
2408e0f983 Work on moving entity tables into sessions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5468 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-06 08:12:55 +00:00
Robert Graham Merkel
fb1a443621 Add query support for voided transactions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5450 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-01 06:53:28 +00:00
Dave Peticolas
d7d84c58e9 Add gnucash autoconf macro. Don't include config.h in headers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5338 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-09-07 21:51:13 +00:00
James LewisMoss
80efaf5c27 *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5119 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-08-13 15:37:07 +00:00
Dave Peticolas
4cc2bfb9a9 Missed some.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5076 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-08-07 23:36:04 +00:00
Dave Peticolas
939f78a1cc 2001-08-06 Bill Gribble <grib@billgribble.com>
* Added module/plugin system (src/gnc-module/*)

	* reshuffled source code from src/engine, src/register, and some
	from src/guile, src/scm, src/gnome (see src/README.modules).
	engine, backends, register, qif importer are now "modules".

	* unfinished new QIF import/export module (the old one's still
	there and still works)

	* really too many files touched to get into it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5075 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-08-07 23:29:04 +00:00
Linas Vepstas
b4ce91d839 change function signature
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4987 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-07-25 01:07:58 +00:00
Dave Peticolas
48772fc3d7 2001-07-07 Dave Peticolas <dave@krondo.com>
* src/test/gnc-test-stuff.c (get_random_query): not so many terms

	* src/test/Makefile.am: add test-scm-query

	* src/test/.cvsignore: add test-scm-query

	* src/test/test-scm-query.c: new test -- check query<->scm
	conversion

	* src/guile/gnucash.h: new func api

	* src/guile/gnucash.c.in (gnc_gw_init): new func

	* src/guile/gnc-helpers.c: fix bugs

	* src/engine/Query.c: fix bugs


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4928 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-07-07 10:07:37 +00:00
Dave Peticolas
161082a90f 2001-07-05 Dave Peticolas <dave@krondo.com>
* src/engine/Query.c (xaccQueryEqual): new func.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4901 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-07-05 10:30:43 +00:00
Linas Vepstas
96f072b35f add more debugging statements
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4380 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-03 02:39:58 +00:00
Linas Vepstas
75e9fdb7c3 add more detailed debugging print info
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4374 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-02 17:48:04 +00:00
Linas Vepstas
3cc163db6e add some more debugging print statements
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4363 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-02 04:28:16 +00:00
Linas Vepstas
c7ee6073df add a few print statements to teh debugging routine.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4356 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-02 03:19:12 +00:00
Linas Vepstas
ccf1f11087 add utility function returning number of terms
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4342 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-31 17:44:58 +00:00
Linas Vepstas
70b34d05fa print additional info in the debugging routine PrintQuery()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4341 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-31 16:42:12 +00:00
Robert Graham Merkel
010d135579 Fixes for FreeBSD.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4330 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-29 15:20:23 +00:00
Dave Peticolas
9be6dfbca6 2001-05-01 Robert Graham Merkel <rgmerk@mira.net>
* src/engine/Query.{ch}: added date-granularity sorting functionality
	to queries.

	* src/engine/date.[ch] (timespecCanonicalDayTime): new function
	migrated from the scheme code.

	* src/guile/gnc.gwp: added wrappers for the above.

	* src/scm/date-utilities.scm (gnc:timepair-canonical-day-time):
	removed, replaced by new C function.

	* src/scm/report/*.scm: added checks for "no-accounts-selected".

	* src/scm/report/average-balance-2.scm: New (temporary) file.
	The average balance report with a rewritten calculation engine.

	* src/scm/report/register.scm: Modified to use global styles

	* src/scm/report/transaction-report.scm: use improved sorting ability,
	get report title from options.

	* src/scm/html-utilities.scm (gnc:html-make-no-account-warning): new
	function. (remove-last-empty-row): minor changes.

	* src/scm/report-utilities.scm: added the ability to get "numitems"
	out of a stats collector for debugging purposes.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4093 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-05-01 02:14:19 +00:00
Dave Peticolas
ea9ad455db * src/engine/Query.c (xaccQueryGetSplitsUniqueTrans): fix bug
* src/engine/Account.c (xaccAccountSetPriceSrc): fix bug


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4017 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-23 07:14:57 +00:00
Dave Peticolas
20a1efa349 * src/guile/gnc-helpers.c: remove cruft. work on converting
Query objects to and from a scheme representation (unfinished)

	* src/guile/gnc.gwp: wrap more of the Query enums

	* src/engine/Query.c (xaccQueryAddAccountGUIDMatch): new func

	* src/scm/options.scm: add a query option type

	* src/scm/report/report-list.scm: don't bother hiding tax report


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3998 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-20 11:02:17 +00:00
Dave Peticolas
05c143599a * src/gnome/dialog-tax-info.c: implement tax info api
* src/gnome/account-tree.c: same as below

	* src/gnome/window-acct-tree.c: add tax info field

	* src/scm/report.scm: add an export callback for reports

	* src/guile/gnc.gwp: wrap radio chooser api

	* src/scm/report/taxtxf.scm: use export callback to choose
	between html & txf

	* src/gnome/window-report.c: implement export callback


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3995 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-19 09:22:10 +00:00
Dave Peticolas
d59749ed68 Robert Graham Merkel's patch.
* src/engine/Transaction.[ch] (xaccSplitGetCorrAccountFullName): new
	functions.  (xaccSplitCompareAccountNames): rename
	to xaccSplitCompareAccountFullNames and compare using full names.
	(xaccSplitCompareOtherAccountNames): renaming as above.

	* src/engine/Query.[ch]: rename sort enumeration values.

	* src/guile/gnc.gwp: update to match above changes.

	* src/scm/report-utilities.scm (gnc:split-get-corr-account-full-name):
	new function.

	* src/scm/report/transaction-report.scm: use above changes to sort
	and optionally display full account names.  Fix unrelated bugs with
	sorting options.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3948 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-12 07:12:39 +00:00
Dave Peticolas
54a869c0c0 * src/register/gnome/gnucash-sheet.c: move cursor before showing
popup menu

Add missing const to function args.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3888 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-03 23:22:26 +00:00
Dave Peticolas
e867dbcc6d * src/gnome/window-register.c: add a Transaction->Invoice item
* src/engine/Query.c: add GUID predicate


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3887 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-03 22:24:08 +00:00
Dave Peticolas
6a7acc416d * src/scm/report-utilities.scm
(gnc:accounts-get-comm-total-income): new func
	(gnc:accounts-get-comm-total-expense): new func

	* src/scm/report/income-expense-graph.scm: allow user to display
	both income & expense side-by-side

	* src/scm/report/pnl.scm: use sprintf to make title

	* src/guile/guile-util.c (gnc_get_debit_string): use g_strdup
	(gnc_get_credit_string): use g_strdup

	* src/gnome/gnc-html.c: add guid type to register anchor

	* src/scm/report/register.scm: work on display

	* src/engine/Query.c (xaccQueryGetSplitsUniqueTrans): fix bug

	* src/gnome/window-register.c: add arguments to report window
	for title & debit/credit strings


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3813 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-21 10:36:55 +00:00
Dave Peticolas
9f379e7fb7 Derek Atkins' RPC backend patch.
* src/engine/rpc/*: Gnucash RPC Subsystem (Backend and Server).
          Still considered experimental.  Note that the RPC protocol may
          change over time causing client/server incompatibilities between
          various versions of client and server.

        * configure.in: Add option to --enable-rpc.  Hook in RPC Subsystem

        * src/engine/Account.c: Fix for initial balance on
          stock/etc. accounts.  In particular, don't set to zero if there
          are no splits.

        * src/engine/Backend.h: New RPC errors

        * src/engine/Query.{c,h}: Add function to obtain the internal
          Query Predicate functions (for use in rebuilding Queries from
          the RPC subsystem)

        * src/engine/Transaction.c: Be sure to call the backend in
          xaccTransRollbackEdit()

        * src/engine/gnc-book.{c,h}: Added gnc_run_rpc_server() function.
                Added hooks to call RPC Backend

        * src/guile/gnc.gwp: added gnc_rpc_server() and new RPC Backend errors

        * src/scm/command-line.scm: added --rpc-server optio

        * src/engine/Makefile.am: Added RPC subdir


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3801 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-19 21:49:54 +00:00
Dave Peticolas
20e123a0ea * src/gnome/gnc-dialogs.glade: tweak stylesheet dialog
* src/gnome/dialog-style-sheet.c: tweak looks

	* src/scm/report/register.scm: new report

	* src/guile/gnc.gwp: g-wrap new query api

	* src/gnome/window-register.c: add report menu and toolbar items

	* src/engine/Query.c: handle NULL pointers, add api to get list
	of splits with unique transactions


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3784 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-03-15 12:43:01 +00:00
Dave Peticolas
84cbba8ec2 Robert Graham Merkel's reimplementation of the transaction report.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3686 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-25 03:21:39 +00:00
Dave Peticolas
68ef8e0156 Bill Gribble's qif merge patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3601 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-05 23:06:26 +00:00
Linas Vepstas
917fe5ec6d Miscelaneous tweaks to enable the backend to functino properly,
e.g. an account-commit-edit callback, a null-string-compare utility,
and log file handling in gnc-book


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