Commit Graph

3293 Commits

Author SHA1 Message Date
Dave Peticolas
6273f8db67 Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3937 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 22:25:53 +00:00
Dave Peticolas
a86c2dba68 Include stdlib.h for malloc.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3936 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 21:56:48 +00:00
Dave Peticolas
aeff5bc299 Christian Stimming's report patch.
* src/scm/report/account-piecharts.scm: Simplified anchors for
	other reports by using gnc:make-report-anchor.

	* src/scm/html-utilities.scm (gnc:make-report-anchor): New
	function.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3935 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 09:57:15 +00:00
Dave Peticolas
287fbee535 * src/gnome/dialog-commodities.c: more work
* src/engine/gnc-commodity.c (gnc_commodity_table_remove): new func

	* src/engine/gnc-commodity.h: add ASX namespace

	* src/gnome/dialog-commodity.c (gnc_ui_edit_commodity_modal): new
	func. unfinished. rename some functions to reflect that it's also
	an editing dialog now.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3934 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 09:34:07 +00:00
Dave Peticolas
a4a83ec781 Christian Stimming's report patch.
* src/scm/options.scm (gnc:options-copy-values): New function.

	* src/scm/report/account-piecharts.scm: Added anchors to yet other
	reports on the slices of the pie. Simplified creation of other
	report's options.

	* src/scm/report/category-barchart.scm: Simplified creation of
	other report's options.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3933 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 09:09:51 +00:00
Dave Peticolas
bf05efd870 Robert Graham Merkel's report patch.
* src/scm/report/transaction-report.scm (render-month-subheading):
	fix bug.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3932 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 08:57:21 +00:00
Dave Peticolas
ac24703220 Print illegal date as part of illegal date message.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3931 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 08:10:01 +00:00
Dave Peticolas
6c963f2985 Christian Stimming's report patch.
* src/scm/report/report-list.scm: Renamed file.

	* src/scm/report/account-piecharts.scm: Renamed to this filename
	(used to be: income-or-expense-pie.scm). Introduced some more
	generality such that this file also has an asset and a liability
	balance piechart.

	* src/scm/report/category-barchart.scm: Introduced some
	more generality such that this file also has a asset and liability
	balance barchart.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3930 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 07:31:39 +00:00
Dave Peticolas
d5c35ea2b1 Don't use 'stdin' as var name -- reserved. Include string.h.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3929 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 07:12:52 +00:00
Dave Peticolas
3109baa353 Add #define for solaris.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3928 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 06:54:50 +00:00
Dave Peticolas
da532bec89 Don't use isinf -- not portable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3927 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 06:43:58 +00:00
Dave Peticolas
1ede8a4f09 Christian Stimming's patch adding 2 new reports.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3926 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 06:33:39 +00:00
Dave Peticolas
a54b609c6e Christian Stimming's report patch.
* src/scm/report-utilities.scm: Added function
	(gnc:account-get-type-string-plural). Changed
	gnc:decompose-accountlist to return AccountType symbols.

	* src/scm/html-utilities.scm,
	src/scm/report/net-worth-timeseries.scm, balance-sheet.scm:
	Adapted to changed gnc:decompose-accountlist.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3925 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-11 05:59:47 +00:00
Dave Peticolas
99600713de Don't include stdint.h.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3924 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-10 21:34:35 +00:00
Dave Peticolas
adbe66ab7b * src/engine/date.c (__EXTENSIONS__): add a define for solaris
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3923 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-10 21:29:24 +00:00
Dave Peticolas
a6d9c1ff9e Use `` instead of $() for portability.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3922 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-10 21:08:08 +00:00
Dave Peticolas
80831eacab Work on commodity editor.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3921 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-10 09:26:01 +00:00
Dave Peticolas
f381ba1a68 Christian Stimming's reporting patch.
* src/scm/report/net-worth-timeseries.scm: Fixed date argument
	bug. Added auto label rotation.

	* src/scm/date-utilities.scm: Renamed gnc:dateloop to
	gnc:make-date-interval-list and gnc:dateloop-simple to
	gnc:make-date-list.

	* src/scm/report/category-barchart.scm, income-expense-graph.scm:
	Adapt to gnc:dateloop's namechange.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3920 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-10 07:55:22 +00:00
Dave Peticolas
962ac02652 Robert Graham Merkel's net worth graph + some bug fixes.
* src/scm/report/net-worth-timeseries.scm: New file.  You guessed
	it,  a time series net worth barchart.

	* src/scm/report/date-utilities.scm: add gnc:dateloop-simple to
	generate simple timeseries for net worth barchart.

	* src/scm/report/{Makefile.am, report-list.scm}: add new barchart.

	* src/scm/report/balance-sheet.scm (balance-sheet-renderer):
	use gnc:decompose-accounts to split up accounts.

	* src/scm/report-utilities.scm (gnc:decompose-accountlist):
	add credit accounts to the list of liability accounts.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3919 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-10 06:09:55 +00:00
Dave Peticolas
e5f48598f6 Jeremy Collins' update to the stock split watermark.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3918 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-10 00:45:47 +00:00
Dave Peticolas
6b7414d3c6 Christopher Browne's patch to the documentation plus some scheme patches.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3914 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-10 00:05:41 +00:00
Dave Peticolas
c1f75560f4 Jeremy Collins' patch to add graphics to druids.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3913 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-09 23:50:00 +00:00
Linas Vepstas
3ba3fbc4fe add a not as per email conversations
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3912 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-09 18:25:31 +00:00
Dave Peticolas
499423203e * src/gnome/dialog-price-editor.c: more work
* src/gnome/account-tree.c (gnc_account_tree_insert_row): speedup
	refreshing

	* src/gnome/account-tree.h: remove duplicate declaration


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3911 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-09 06:53:57 +00:00
Dave Peticolas
31abed7557 * src/scm/report/taxtxf.scm: don't use deprecated calls
* src/guile/gnc.gwp: wrap xaccAccountGetSplitList

	* src/engine/Query-xml-parser-v1.c
	(qrestore_datepred_start_handler): use g_new0 instead of bzero --
	more portable


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3910 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-09 06:07:07 +00:00
Dave Peticolas
3836c9f117 * src/engine/Query-xml-parser-v1.c
(qrestore_datepred_start_handler): use g_new0 instead of bzero --
	more portable


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3909 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-09 00:37:28 +00:00
Dave Peticolas
3470b9c7fd * src/engine/md5.h: include stddef.h for size_t
* src/engine/sql/PostgresBackend.c: include ctype.h for tolower

	* src/engine/guid.h: include stddef.h for size_t

	* src/engine/gnc-engine-util.h: include stddef.h for size_t


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3908 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-08 11:19:25 +00:00
Dave Peticolas
0c1ccdc7ff * src/scm/report/taxtxf.scm: fix bug
* src/scm/text-export.scm: fix for api change

	* src/scm/report-utilities.scm: fix for api change

	* src/scm/engine-utilities.scm: change gnc:group-map-accounts
	to gnc:group-map-all-accounts. make gnc:group-map-accounts do
	only the immediate children.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3907 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-07 23:16:55 +00:00
Dave Peticolas
b04cbddfd9 * src/gnome/dialog-price-editor.c: more work
* src/engine/gnc-pricedb.c: add an error check

	* ChangeLog: split changelog


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3906 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-07 10:34:47 +00:00
Dave Peticolas
83d28bc2b3 Richard -Gilligan- Uschold's tax report patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3905 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-07 07:14:21 +00:00
Dave Peticolas
ba6b95ec45 Rob Browning's process control patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3904 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-07 01:36:56 +00:00
Linas Vepstas
4e9668080d add accounting period proposal
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3903 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-07 00:43:55 +00:00
Dave Peticolas
2ffe6c8e55 Include config.h.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3902 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-06 22:03:20 +00:00
Dave Peticolas
44f27ee692 James LewisMoss's patch to the account hierarchies with sample descriptions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3901 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-06 22:01:29 +00:00
Dave Peticolas
7ce94868df * src/gnome/dialog-price-editor.c: new file with price db
editor. Unfinished.

	* src/engine/gnc-pricedb.c: connect prices to pricedbs

	* src/engine/io-gncxml-v2.c (gnc_book_load_from_xml_file_v2): fix
	for files with no pricedb section

	* src/scm/prefs.scm: add price editor geometry options


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3900 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-06 10:53:36 +00:00
Dave Peticolas
4225dabedb Christian Stimming's reports patch.
* src/scm/report/balance-sheet.scm: Major overhaul. Adapted to new
	options in gnc:html-build-acct-table. Cleaned up code. Corrected
	column alignment.

	* src/scm/html-utilities.scm (gnc:html-table-append-ruler!): New
	function.
	(gnc:html-build-acct-table): Added new arguments for how to show
	non-leaf accounts: with subtotal or not, with own balance or
	not. Removed some empty lines in the html-table.

	* src/scm/report/pnl.scm, account-summary.scm: Added support for
	new gnc:html-build-acct-tree options.

	* src/scm/report-utilities.scm (gnc:decompose-accountlist): Added
	equity accounts.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3899 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-06 10:14:38 +00:00
Dave Peticolas
0a855b597e Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3898 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-05 23:16:39 +00:00
Dave Peticolas
ed81862b36 James LewisMoss's xml patch & accounts/ conversion.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3897 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-05 21:37:55 +00:00
Dave Peticolas
bf10abdf30 Robert Graham Merkel's balance sheet patch & test file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3896 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-05 21:15:52 +00:00
Dave Peticolas
c7b23bb007 Christian Stimming's report patch.
* src/scm/html-table.scm (gnc:html-table-remove-last-row!): Added
	function.

	* src/scm/html-utilities.scm (gnc:html-build-acct-table): Added
	removal of the last empty line above the total sum.

	* src/scm/html-document.scm: changed rendering of #f from one
	whitespace to equally arbitrary three whitespaces. FIXME: This
	should be configurable by a style-sheet.

	* src/scm/report/pnl.scm: deactivated column headers.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3895 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-05 21:13:53 +00:00
Dave Peticolas
6eb9c411a8 Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3894 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-05 06:25:37 +00:00
Dave Peticolas
6abf254fda Robert Graham Merkel's balance sheet patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3893 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-05 06:05:31 +00:00
Dave Peticolas
f34c9c5463 Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3892 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-04 22:57:48 +00:00
Dave Peticolas
502c7b4fe5 * src/register/gnome/gnucash-sheet.c
(gnucash_register_goto_next_trans_row): new func.

	* src/gnome/window-register.c: make 'enter' toolbar button
	move to next transaction

	* src/gnome/dialog-tax-info.c: more work

	* src/gnome/dialog-account.c: allow opening balances to come
	from other accounts

	* src/gnome/dialog-totd.c (totd_close_cb): don't bother with the
	help dialog after disabling tips


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3891 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-04 10:39:40 +00:00
Dave Peticolas
1e0a0706c2 Christian Stimming's report patch.
* src/gnome/gnc-html-guppi.c, src/scm/html-barchart.scm: Added new
	option for barchart: legend-reversed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3890 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-04 08:52:57 +00:00
Dave Peticolas
034312146a Robert Graham Merkel's balance sheet patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3889 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-04 08:19:48 +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
b9c52ead8f * src/gnome/dialog-commodity.c: add namespace picker getter.
Show "CURRENCY" instead of "ISO4217" when displaying.

	* src/gnome/druid-commodity.c: use namespace picker getter

	* src/gnome/druid-qif-import.c: use namespace picker getter

	* src/scm/report/register.scm: more work

	* src/engine/gnc-commodity.c (reset_printname): take the namespace
	out of the printname


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3886 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-03 21:42:13 +00:00
Dave Peticolas
340d1d190b James LewisMoss's patch.
Add some error checking in the calls to link and unlink.  Add a README
to the src/test dir.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3885 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-04-03 20:07:19 +00:00