Commit Graph

2963 Commits

Author SHA1 Message Date
Dave Peticolas
875b8e7cb6 Add missing .h file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3688 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-25 06:30:37 +00:00
Dave Peticolas
72c761879c Fix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3687 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-25 03:26:51 +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
c8a7adb87c Ignore TAGS.stamp.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3685 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-25 00:43:29 +00:00
Dave Peticolas
e30a8bc509 Rob Browning's patch with price db & miscellany.
* first iteration of pricedb: we should preserve quotes from old
    binfiles now (rather than throwing it away during the conversion),
    and we can read/write the pricedb as XML.

  * added configure --enable-error-on-warning -- developers, please
    use this.

  * add fancier TAGS handling -- we now track file additions/deletions
    dynamically.

  * add g_hash_table_key_value_pairs: returns a GSList of all the key
    value pairs in a given hash table so you can manipulate them.

    add g_hash_table_kv_pair_free_gfunc: g_slist_foreach helper for
    deleting key value hash pairs when you're finished with the
    results from g_hash_table_key_value_pairs.  You'll still need to
    call g_slist_free as well to delete the spine of the list.

  * continue migration to using backend for all IO and switching from
    top-level Group to top level GNCBook.

  * switch from const gnc_commodity to gnc_commodity in many places,
    after consultation with Bill.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3684 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-25 00:42:44 +00:00
Dave Peticolas
ce532a2a86 Bill Gribble's update to the qif importer.
* src/scm/qif-import/qif-dialog-utils.scm: Be more flexible
	about account types on QIF import

	* src/scm/qif-import/qif-objects.scm: make sure the list of
	allowed types is in the right order

	* src/scm/qif-import/qif-to-gnc.scm: be more flexible about type;
	check on parent type after creating child; don't set security on
	non-{stock,mutual} accounts.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3683 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-23 22:20:36 +00:00
Dave Peticolas
7e20ed1642 Christian Stimming's patch for xaccSplitGetShareAmount -> xaccSplitGetAmount.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3682 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-23 07:19:37 +00:00
Dave Peticolas
6073e9bf31 Christian Stimming's update to the currency documentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3681 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-23 06:39:42 +00:00
Dave Peticolas
92f1175b9b Add missing include.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3680 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-22 07:48:07 +00:00
Dave Peticolas
c2b1deadc6 Temp fix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3679 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-22 07:44:56 +00:00
Dave Peticolas
5b7f9b4631 James LewisMoss's big big patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3678 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-22 07:29:05 +00:00
Dave Peticolas
eff510bd09 Fix typo.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3677 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-22 06:21:38 +00:00
Dave Peticolas
e7292ffab9 Derek Atkins' patch to the qif importer druid.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3676 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-22 06:16:06 +00:00
Dave Peticolas
46c2ce47c4 Derek Atkins' patch to the qif importer druid.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3675 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-22 06:12:26 +00:00
Dave Peticolas
fab6bbc56a Bill Gribble's qif importing patches.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3674 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-22 06:09:50 +00:00
Dave Peticolas
4dcfa2947c Keep going on 'install' even if the search db wasn't created.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3673 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-22 06:08:18 +00:00
Dave Peticolas
c90465c569 Fix docs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3672 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-22 06:07:24 +00:00
Linas Vepstas
b64b8eabb6 add username/password support
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3671 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-21 07:49:57 +00:00
Linas Vepstas
9f09ab589d add version numbers: these allow multi-user updates to be distinguished
properly.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3670 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-19 08:38:54 +00:00
Linas Vepstas
c9a40649ec add version numbers to account and transaction.
These are used by the backend to track multi-user updates


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3669 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-19 08:35:17 +00:00
Linas Vepstas
8772aad11a fix order of initialization bug
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3668 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-18 15:05:38 +00:00
Linas Vepstas
5aefc4ef25 fix comments in source code to no longer refer to deleted code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3667 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-18 07:41:20 +00:00
Linas Vepstas
d399846a0f wrap with account editing primitives
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3666 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-17 01:06:55 +00:00
Dave Peticolas
afa262d05d Fix balance updating.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3665 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-16 00:07:08 +00:00
Dave Peticolas
eaf3554c19 Use checks instead of "*" in one more list. Tweak gui.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3664 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-02-15 09:18:03 +00:00
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