Commit Graph

2938 Commits

Author SHA1 Message Date
Dave Peticolas
d66d8d2fc3 Christian Stimming's report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3663 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-15 09:01:19 +00:00
Dave Peticolas
b9fbee7fd6 Fix bugs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3662 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-15 08:56:48 +00:00
Dave Peticolas
a1a95e9cdd James LewisMoss's patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3661 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-15 08:40:33 +00:00
Dave Peticolas
a24407162c James LewisMoss's patch.
* src/test/test-dom-converters1.c (Repository): fix mem leak.

	* src/engine/sixtp-dom-parsers.h (Repository): start of kvp code.

	* src/engine/sixtp-dom-parsers.c (Repository): fix mem leak.
	Start of kvp code.

	* src/engine/sixtp-dom-generators.c (Repository): fix mem leak.
	(Repository): Start of kvp code.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3660 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-15 06:35:22 +00:00
Dave Peticolas
f335a5b722 James LewisMoss's patch.
* src/test/test-date-converting.c (Repository): Tests to make sure
	date <-> string converting strings work.

	* src/test/test-dom-converters1.c (Repository): Add tests for rest
	of converters.

	* src/test/Makefile.am (Repository): add new test.  Make "make
	check" work here.

	* src/engine/sixtp-xml-write-utils.c (Repository): use date format
	strings from sixtp-utils.h

	* src/engine/sixtp-utils.h (Repository): add date format strings.
	#include sixtp.h

	* src/engine/sixtp-utils.c (Repository): Use define as timespec
	date format string.

	* src/engine/sixtp-dom-parsers.c (Repository): Add funcs from
	Rob.  make consistent.  Fix a few bugs.  Make
	dom_tree_to_commodity_ref testable by adding new func
	"associate_commodity_ref_with_engine_commodity" to do final
	association with engine commodity table.

	* src/engine/sixtp-dom-generators.c (Repository): Fix to_guid to
	be generic.  Oops.  Add rest of funcs to to foo_to_dom_tree to
	match funcs in sixtp_dom_parsers.

	* src/engine/gnc-numeric.c (Repository): Comment out unused var.

	* src/engine/gnc-account-xml-v2.c (Repository): change to use
	dom_tree_to_commodity_ref.

	* src/doc/xml/types.dtd: Change cmd: to cmdty: and add ts: to the
	timespec tags.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3659 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-15 00:17:57 +00:00
Dave Peticolas
e04666349e Fix width calculations.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3658 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-15 00:13:39 +00:00
Dave Peticolas
31569b751f Use nl_langinfo(D_FMT) instead of %x for locale-based date formatting.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3657 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-14 22:11:30 +00:00
Dave Peticolas
596eabc8a0 Bill Gribble's QIF import patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3656 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-14 22:08:17 +00:00
Dave Peticolas
1da310e7c8 Christian Stimming's report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3655 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-14 12:03:39 +00:00
Dave Peticolas
8d1f2c21e1 Make it easier to use check marks in clists and ctrees.
Use them in the qif importer and account picker.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3654 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-14 01:00:31 +00:00
Dave Peticolas
05b1b293c7 Bill Gribble's patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3653 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-13 23:34:26 +00:00
Dave Peticolas
9a7f5b18d4 * src/engine/gnc-numeric.c: fix stupid. stupid. stupid. stupid
log10 error

        * src/guile/gnc-helpers.c: start to fix scm_to_gint64 for
        guile-1.3.. this is sort of a duct-tape fix.  We need to port some
        stuff from the guile-1.4 source tree.  Should work fine unless you
        are Bill Gates and you do your accounting in lira.

        * src/gnome/dialog-style-sheet.c: handle WM delete event

        * src/scm/qif-import/qif-to-gnc.scm: fix backtrace-if-exception
        usage; add preliminary memo/payee-to-account mapping.

        * src/scm/utilities.scm: define hash-fold if it's not builtin


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3652 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-13 23:20:29 +00:00
Dave Peticolas
a26a55428a Refactor check mark code from reconcile list so it can be used elsewhere.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3651 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-13 01:31:36 +00:00
Dave Peticolas
4d81a44a14 Christian Stimming's report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3650 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-13 00:00:08 +00:00
Dave Peticolas
eeb5ce779c Use the same accelerator keys in register and date widget.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3649 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 23:56:19 +00:00
Dave Peticolas
317df24d33 Fix mem leak.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3648 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 23:50:34 +00:00
Dave Peticolas
bbc287616f Christian Stimming's report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3647 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 23:22:19 +00:00
Dave Peticolas
1ab50d155e Bug fix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3646 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 23:18:57 +00:00
Dave Peticolas
fa026af058 Bill Gribble's fix for report i18n.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3645 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 23:15:23 +00:00
Dave Peticolas
2caac7636b Bill Gribble's patch.
* src/engine/gnc-numeric.{c,h}, src/scm/gnc-numeric.scm: add
        support for a new auto-denom type, GNC_DENOM_SIGFIGS(x), where x
        is the number of "significant figures" you want in the output.
        This means that the output denominator will always be a poewr of
        10, but which power is determined by the magnitude of the
        argument.

        * src/engine/Transaction.c, src/gnc-exp-parser.c,
        src/gnc-ui-util.c: make minor changes to use GNC_DENOM_SIGFIGS
        where appropriate.

        * src/gnome/dialog-account-picker.{c,h}: totally rewritten QIF
        import account picker.  this one is much less likely to get you
        into trouble.  Still some rough edges but MUCH better than
        the old one.

        * src/gnome/druid-qif-import.c: fixes.  Add memo/payee matching
        (but it's not hooked up to the import yet so don't get that
        excited).

        * src/scm/qif-import/qif-dialog-utils.scm: memo mapping stuff,
        i18n fixes.

        * src/scm/qif-import/qif-to-gnc.scm: update error catching; print
        backtrace on failure.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3644 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 22:46:55 +00:00
Dave Peticolas
85a79ab409 James LewisMoss's xml patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3643 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 22:35:20 +00:00
Dave Peticolas
520d406352 Christian Stimming's report patch.
Fixes bug with warnings in commodity-utilities.scm.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3642 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 22:27:29 +00:00
Dave Peticolas
f5ead6d71d Remove superfluous code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3641 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 12:58:09 +00:00
Dave Peticolas
0e65e406cb Fix memory leak, speedup hierarchy destruction.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3640 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 12:21:11 +00:00
Dave Peticolas
208fc49354 Fix bugs, spelling errors.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3639 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 11:54:15 +00:00
Dave Peticolas
961b14e8ff Fix register resize bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3638 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 09:00:44 +00:00
Linas Vepstas
eeb76cd05b add kvp support for slash-separated keys for frame paths,
so now you can specify kvp paths /just/like/this
a few additional routines added that use fewer mallocs/frees
to poke data into kvp trees; account.c and transaction.c
converted to use these routines (resulting in a few mem-leak fixes)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3637 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 07:15:37 +00:00
Dave Peticolas
5c51a5f2ca Christian Stimming's report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3636 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 07:11:17 +00:00
Linas Vepstas
bd70db82b7 forgot one
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3635 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 07:02:19 +00:00
Linas Vepstas
9ea4f2d806 add support for kvp frames
this sould wrap up support for basic single-user mode on the sql backend


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3634 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-12 06:59:38 +00:00
Linas Vepstas
c8a5ead533 allow begin-end edit's to be nested;
check more strictly that transaction is open for editing.
(if you see any 'transaction %p not open for editing', let me know --linas)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3633 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-11 04:46:39 +00:00
Linas Vepstas
edc699a651 need to begin/commit transaction when changing values ...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3632 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-11 03:55:02 +00:00
Dave Peticolas
5dd4c94809 Christian Stimming's report patch.
* src/scm/commodity-utilities.scm: Functions to calculate exchange
	rates (weighted average) for different commodities (moved from
	report-utilities.scm). Major cleanup.

	* src/scm/options-utilities.scm: Option creation functions common
	to several reports. (moved from report-utilities.scm)

	* src/scm/report-utilities.scm: Major cleanup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3631 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-09 22:07:16 +00:00
Dave Peticolas
999ceb2a5d Derek Atkins' patch to fix compiling with --disable-guppi.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3630 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-09 22:04:23 +00:00
Dave Peticolas
19f65b1b00 Replace gh_lookup with gh_eval_str.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3629 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-09 22:01:41 +00:00
Dave Peticolas
0cb7f80a35 Pull in some more bits from /dev/urandom periodically.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3628 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-09 07:36:02 +00:00
Dave Peticolas
990f692e74 Fix bugs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3627 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-09 01:44:23 +00:00
Dave Peticolas
fc35747a45 Bill Gribble's patch.
* src/gnome/druid-qif-import.c: restructure druid a bit to
        allow more flexible navigation (in particular, so we can have
        a global pref to skip documentation pages)

        * src/scm/html-*.scm: change rendering model to speed up reports.
        use a "string tree" instead of the old with-output-to-string and
        compile style tables where possible.  Strangely enough, alists
        are faster than hash tables.

        * src/scm/html-table.scm: clean up row/col style stuff a little.
        semantics changed a wee bit: now row style takes precedence over
        column style.  this was necessary for performance.

        * src/scm/prefs.scm: add a global pref to skip doc pages in the
        QIF importer.

        * src/scm/report.scm: shuffle around a bit for the new rendering
        model.

        * src/gnome/window-report.c: back out some overly-aggressive
        memory reclamation.  I need to figure out how to do this right.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3626 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 23:31:54 +00:00
Dave Peticolas
fed1fcd1fe James LewisMoss's xml refactoring patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3625 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 22:23:18 +00:00
Dave Peticolas
a016811048 Christian Stimming's report patch.
* src/scm/date-utilities.scm Added (gnc:timepair-previous-day).

	* src/scm/report-utilities.scm (gnc:account-get-balance-interval)
	Fix bug with start date.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3624 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 22:10:16 +00:00
Dave Peticolas
fc5dd365ae Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3623 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 21:35:04 +00:00
Dave Peticolas
c1dbc8ef7b Christian Stimming's report patch.
* src/scm/html-style-info.scm: Fix bug.

	* src/scm/gnc-numeric.scm: Add more functions on gnc-monetary.

	* src/scm/html-utilities.scm: Add balance sign reversal
	conditioned on gnc:account-reverse-balance? for the account
	table. Add function to print exchange rates.

	* src/scm/report-utilities.scm: Modify commodity-collector to
	enable more sign reversals and usage of gnc-monetary. Add option
	creation functions common to several reports.

	* src/scm/report/account-summary.scm: Removed function now in
	report-utilities.scm. Added variables for option names.

	* src/scm/report/pnl.scm: New Profit And Loss report, based on
	account-summary report.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3622 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 11:10:57 +00:00
Dave Peticolas
3afbeae315 Additional testing patch from James LewisMoss.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3621 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 07:52:17 +00:00
Dave Peticolas
f6672b8490 Fix compiler warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3620 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 05:01:50 +00:00
Dave Peticolas
fbb1a7a440 Missed one.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3619 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 04:09:15 +00:00
Dave Peticolas
fa9cff9ce9 James LewisMoss's patch.
2001-02-07  James LewisMoss  <dres@phoenixdsl.com>

	* make-gnucash-patch.in: Add a file ending that is ignored.

	* src/doc/xml/types.dtd: Change currency-type -> commodity-type.
	Add defs for cmd:space and cmd:id.

	* src/doc/xml/io-gncxml-version1.dtd: Change currency-type ->
	commodity-type.

	* src/doc/xml/account-v2.dtd: Change currency-type ->
	commodity-type.

2001-02-06  James LewisMoss  <dres@phoenixdsl.com>

	* src/engine/sixtp.c: Use frame creator.
	Move sixtp_handle_catastrophe to here. Add functions
	sixtp_context_new, sixtp_context_destroy.  And change and move
	sixtp_parse_file and sixtp_parse_buffer here from io-gncxml-r.c
	Add concept of a parsing context to hold data.

	* src/engine/sixtp-stack.h: Add creator.  Add headers.

	* src/engine/sixtp-stack.c: Add creator.

	* src/engine/sixtp-parsers.h: add needed headers.
	Add func from sixtp-to-dom-parser.c

	* src/engine/io-gncxml.h: Fix name.

	* src/engine/io-gncxml-w.c: Fix name.

	* src/engine/io-gncxml-r.c: Fix name.  Create stack frame creator
	function and use here.

2001-02-05  James LewisMoss  <dres@phoenixdsl.com>

	* src/engine/sixtp-stack.h: Add glib.h include (needed for GSList)

	* src/engine/sixtp.c: Add catchall tag for parsing handlers.  Use
	name instead of next_parser_tag since that can now contain a magic
	value.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3618 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-08 04:08:50 +00:00
Dave Peticolas
7d546af657 Christian Stimming's report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3614 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-07 09:27:30 +00:00
Linas Vepstas
4b9194a1dd oops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3613 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-07 06:38:49 +00:00
Linas Vepstas
07828e1b81 ignoe the autogenerated files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3612 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-07 06:15:55 +00:00
Linas Vepstas
cc8044c8fc bug fixes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3611 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-07 06:12:33 +00:00