Commit Graph

6301 Commits

Author SHA1 Message Date
David Hampton
aa9c4dca69 If all the entries of the current split have been cleared, then delete
this split. #98139


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7534 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-24 06:55:21 +00:00
Joshua Sled
2e7979127b 2002-11-23 Joshua Sled <jsled@asynchronous.org>
* src/app-utils/prefs.scm (gnc:make-number-range-option): Fix
	wording of pref-widget hints; fixes Bug#99389.

	* src/gnome/glade/sched-xact.glade:
	* src/gnome/dialog-sx-from-trans.c:
	* src/gnome/druid-loan.c (gnc_ui_sx_loan_druid_create):
	* src/gnome-utils/gnc-frequency.c (gnc_frequency_init):
	* src/gnome/dialog-scheduledxaction.c
	(gnc_ui_scheduled_xaction_editor_dialog_create):
	GnomeDateEdit -> GNCDateEdit; Fixes Bug#99357.

	* src/gnome/dialog-scheduledxaction.c
	(gnc_ui_scheduled_xaction_editor_dialog_create): Removed
	delete-event handling duplicated by close signal from GnomeDialog;
	fixes Bug#99399.
	(sxed_close_event): Check for a valid SX before proceeding; fixes
	Bugs#99350 and dupes [99348,99356,99397].


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7533 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-24 04:19:33 +00:00
David Hampton
389b9599fc I18n changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7532 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-24 01:16:39 +00:00
Christian Stimming
63af960213 Updated translations.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7531 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-24 00:54:04 +00:00
Christian Stimming
d1f3334dcd Remove -Werror again.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7530 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-24 00:45:13 +00:00
David Hampton
67386f7f9e Fix a dialog title to match its function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7529 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-23 19:47:26 +00:00
David Hampton
1bddedf4ee Update help menu in the register window.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7528 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-23 19:29:07 +00:00
Christian Stimming
7c06601cea 2002-11-23 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/gnc-hbci-gettrans.c: Use the new generic
	transaction importer.

	* src/import-export/gnc-gen-transaction.[hc],
	generic-importer.glade: Added a new generic transaction importer,
	with GUI as proposed on gnucash-devel (one-page, one-listview).

	* src/import-export/Transaction-matcher.[hc]: Refactor the code
	even more and separate GUI-dependent from -independent tasks.
	(gnc_import_match_picker_run_and_close): Add a new "Match-Picker
	Dialog" for the non-usual case of where the user should pick
	between different possible duplicate matches.
	(matchmap_find_destination): Add automatic destination guessing
	and learning, based on the GncImportMatchMap.

	* po/POTFILES.in, de.po: Updated translations.

	* src/engine/Account.h, src/import-export/gnc-import-match-map.h:
	Clarify some comments.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7527 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-23 18:52:52 +00:00
David Hampton
338a4ef90d Add a new progress dialog. Mark the existing ones for i18n.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7526 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-23 10:53:23 +00:00
David Hampton
8e073443a2 Make sure that all columns are always visible in the reconcile list.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7525 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-23 05:39:13 +00:00
Christian Stimming
0ea484dfc4 2002-11-23 Christian Stimming <stimming@tuhh.de>
* src/import-export/Transaction-matcher.c: Refactor *a lot* of the
	code -- try to separate GUI-dependent tasks from GUI-independent
	ones, and make many functions publically reachable by declaring
	them in the header file.

	* src/import-export/gnc-generic-import.h, *.h: Move some function
	into new Transaction-Matcher.h (which is included from here for
	now), and add some const's at the kvp functions.

	* src/gnome-utils/dialog-utils.h: Added many comments for docs.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7524 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-23 00:55:48 +00:00
Christian Stimming
d675d81af8 2002-11-22 Christian Stimming <stimming@tuhh.de>
* src/gnome-utils/dialog-account-pick.[hc]: Move the account
	picker dialog from hbci/ to gnome-utils.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7523 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-22 18:31:44 +00:00
Christian Stimming
7aa201168a Improved date heuristics (punishment if dates are very very far apart).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7522 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-22 00:29:40 +00:00
Christian Stimming
a92e78fad9 2002-11-22 Christian Stimming <stimming@tuhh.de>
* src/import-export/Transaction-matcher.c: Fix the case when
	trans_online_id exists but is empty. Simplify heuristics for date
	matching. Increase exact amount matching value.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7521 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-22 00:06:17 +00:00
Christian Stimming
dd296d34f3 Updated translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7520 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-22 00:03:43 +00:00
Christian Stimming
7d311db94e Slightly change formatting of transaction fields.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7519 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-22 00:03:17 +00:00
Christian Stimming
be7835304b Set split to 'cleared' only if it was in 'not reconciled' beforehand.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7518 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-21 22:18:06 +00:00
Christian Stimming
3d880f6399 Add missing files for dist.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7517 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-21 22:03:34 +00:00
Derek Atkins
da0d086b37 * README/README.cvs -- update to reference how to "properly" use
autogen.sh


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7516 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-21 21:40:33 +00:00
Derek Atkins
7ab56fc12e * src/scm/main.scm -- fix the load of price-quotes on guile-1.4.1
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7515 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-21 20:34:36 +00:00
Derek Atkins
744de42079 * business-core/test/*.c -- fix the tests for begin/commit edit
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7514 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-21 20:16:23 +00:00
Benoit Grégoire
c95d33c3da 2002-11-21 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/Transaction-matcher.c: Tweak the matching
	heuristics.
	-Memo and description heuristics now both have a very primitive
	fuzzy match worth +1:  Only the first half of the string is compared.
	The rationale is that this will allow the matcher to skip the
	transaction number sometimes appended after the description by
	some banks.
	* src/import-export/ofx/gnc-ofx-import.c:  Transaction memo is
	always written in the split's memo.
	* src/doc/user-prefs-howto.txt:  Add new file, by Christian Stimmings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7513 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-21 19:27:23 +00:00
Benoit Grégoire
7764047fb7 2002-11-21 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/generic-import.scm: New file, contains user
	prefs for the Transaction matcher:
	Display, Auto-ADD and Auto-CLEAR thresholds can be ajusted.
	SKIP and REPLACE action can now be disabled.
	* src/import-export/gncmod-generic-import.c: Load generic-import.scm
	* src/import-export/Makefile.am: Add generic-import.scm
	* src/import-export/Transaction-matcher.c:
	-Use the new user prefs.
	-Change the name of the actions to hopefully reflect better the
	action that will be taken.  RECONCILE is now CLEAR, and IGNORE is
	now SKIP.
	-Disable numeric scoring.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7512 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-21 08:11:02 +00:00
Christian Stimming
381734fa16 2002-11-19 Christian Stimming <stimming@tuhh.de>
* src/engine/Scrub.c (xaccTransScrubCurrency): Add code to deal
	correctly with currency exchange transactions from 1.6. Fixes
	reported problems with importing 1.6 data files, #91505.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7511 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-19 22:31:47 +00:00
Benoit Grégoire
21f030b7d1 2002-11-18 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/Transaction-matcher.c: Change default "RECONCILE"
	action from 'y' (reconciled) to'c' (cleared)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7510 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-19 04:44:07 +00:00
Derek Atkins
366f7d26a2 * configure.in -- fix OFX search to look in /usr/local if it cannot
find it in /usr.  It skips the second check if you supply an ofx-prefix.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7509 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-19 02:54:52 +00:00
David Hampton
3f318a6325 Fix some problems with the gcc 3.x cleanup.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7508 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-19 00:52:22 +00:00
Christian Stimming
873b37153b I18n fixes. Update German Translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7507 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 21:43:11 +00:00
Christian Stimming
7f637fd287 Makefile fix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7506 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 21:11:47 +00:00
Christian Stimming
cf21d524d3 More Makefile fixes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7505 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 21:11:21 +00:00
Chris Lyttle
49879fb417 ooops version macro didnt work
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7504 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 08:30:49 +00:00
Chris Lyttle
cd792551fe update to release 1.7.3
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7502 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 08:21:27 +00:00
David Hampton
08e08f1148 Add support for gtkhtml 1.1.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7501 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 07:19:56 +00:00
Joshua Sled
d9cca5f10f 2002-11-17 Joshua Sled <jsled@asynchronous.org>
* src/engine/date.[ch] (printGDate): Convenience wrapper around
	printDate.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7500 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 05:55:47 +00:00
Benoit Grégoire
7b07c0e188 2002-11-18 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/Transaction-matcher.c: Remove constant length
	strings and replace with moving pointers.  I wish _("string")
	could be used as a could initializer like "string" can...


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7499 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 05:52:05 +00:00
David Hampton
ed7e5bfc88 Fix a bunch of compilation warning messages.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7498 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 05:05:48 +00:00
Joshua Sled
12ccab1dce 2002-11-17 Joshua Sled <jsled@asynchronous.org>
* src/gnome/dialog-sxsincelast.c:
	* src/gnome/dialog-scheduledxaction.c:
	Use printGDate() when we need to print dates; fixes Bug#96477.

	* src/engine/date.[ch] (printGDate): Convenience wrapper around
	printDate.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7497 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 03:46:27 +00:00
Joshua Sled
ddca426702 2002-11-17 Joshua Sled <jsled@asynchronous.org>
* src/gnome/druid-loan.c (ld_calc_current_instance_num): Do some
	work to figure out the correct current-instance-number for
	non-monthly Loan-Repayment SXes.
	(ld_create_sxes): Make the created SXes time out after the length
	of the loan, rather than trying to get the number-of-periods
	totally correct.  This obsoletes Bug#97808.

	* src/gnome/dialog-sxsincelast.c (sxsincelast_tc_row_sel): Don't
	assertion-failure if the user select a non-leaf row.

	* src/gnome/dialog-scheduledxaction.c (sxed_confirmed_cancel):
	Added; used by cancel button handler and [newly added] GnomeDialog
	"close" handler; fixes Bug#84683.

	* src/gnome/druid-loan.c: I18n of some strings previously
	unaccounted for.
	(ld_opt_consistency): Don't enable the "Through Escrow" checkbox
	if there is no escrow account defined.
	(ld_calc_upd_rem_payments): Added; calculate the number of
	remaining payments based on the start date, loan length and
	current date; fixes Bug#91815.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7496 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 02:21:26 +00:00
David Hampton
4f03fb7d82 Convert a couple of functions over to use the new gnc_split_reg_xxx
functions instead of the old gnc_register_xxx functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7495 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 01:45:55 +00:00
David Hampton
68e7974f40 Fix some compiler warnings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7494 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 01:40:49 +00:00
David Hampton
28aed22fcb Clean up the gcc 3.x warnings about including system directories.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7493 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 00:59:52 +00:00
David Hampton
5e36640c84 Use g_new0 instead of g_new to prevent a crash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7492 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-18 00:56:22 +00:00
Christian Stimming
e3c406c89c Some i18n fixes. Updated German Translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7491 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-17 21:31:55 +00:00
Christian Stimming
4af385183c 2002-11-17 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/gnc-hbci-utils.c: Fix caching of HBCI_API
	when using multiple files one after another.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7490 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-17 21:30:18 +00:00
Derek Atkins
2b63cf523a 2002-11-17 Matthew Vanecek <mevanecek@yahoo.com>
* src/backend/postgres/putil.c: Added needed header files to the c
	file.

	* src/backend/postgres/PostgresBackend.c (pgend_session_begin): Added
	xaccBackendSetMessage for an unknown mode or for a bad connection.

	* src/engine/Backend.c (xaccBackendGetMessage): Allow function to
	return null if Backend->error_msg is NULL.

	* src/engine/Account.c (xaccAccountCommitEdit): Handle a NULL return
	from xaccBackendGetMessage().

	* src/engine/gnc-session.c (gnc_session_begin): Push the Backend
	error message onto the session error message (instead of NULL), if
	it exists.  If it's just a warning message (denoted by having a
	message, but ERR_BACKEND_NO_ERR is set), pop up a dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7489 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-17 16:59:14 +00:00
Joshua Sled
916eb2ddcf 2002-11-16 Joshua Sled <jsled@asynchronous.org>
* src/gnome-utils/gnc-dense-cal.c (gnc_dense_cal_draw_to_buffer):
	Added double-buffering support to GncDenseCal.  Fixes Bug#96475.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7488 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-17 03:03:24 +00:00
Joshua Sled
355fae9545 2002-11-16 Joshua Sled <jsled@asynchronous.org>
* src/gnome/gnc-split-reg.c (gsr_setup_status_widgets): Only setup
	the status check if we've created it to prevent some
	warning/critical noise.
	(gnc_split_reg_class_init): Setup default signal handlers to
	GTK_RUN_LAST so that they can be stopped by callers.
	(gnc_split_reg_use_extended_popup): Added; replaces
	dialog-schedxaction.c version of same in a cleaner way.
	(gsr_default_schedule_handler): If the transaction which is
	requested to be "Schedule..."d was created from an SX, then the
	editor for the SX which created the txn is opened rather than from
	SX-From-Trans dialog.
	(gnc_split_reg_jump_to_blank, gnc_split_reg_jump_to_split_amount)
	(gnc_split_reg_jump_to_split): Add ledger refreshes to get correct
	behavior.

	* src/gnome/dialog-sxsincelast.c (sxsld_jump_to_real_txn): Added;
	jump to the correct [read: real] txn on a jump signal from the
	ledger.

	* src/gnome/gnc-split-reg.c (gsr_default_jump_handler): Use new
	regWindowSimple signature for creating new windows on a jump.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7487 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-17 01:35:30 +00:00
David Hampton
795c801602 Validate the transfer cells when leaving a transaction. This should
force gnucash to create a new account when finishing a transaction
with the 'Enter' key.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7486 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-17 00:14:55 +00:00
Derek Atkins
c2bfd78517 * Matthew Vanecek's patch:
The attached patch contains some immediate bug fixes for the SQL
	back end, and it adds and error message string + accessor/mutator
	to Backend.  Also, in xaccAccountCommitEdit(), added the use of
	PWARN_GUI to display the error message.

	The bug fixes in the SQL backend involved converting the *_QUERY
	macros to functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7485 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-16 23:17:09 +00:00
Joshua Sled
d4f97ce2d9 2002-11-15 Joshua Sled <jsled@asynchronous.org>
* src/gnome/window-register.c (gnc_register_delete_cb): Change the
	order of window deletion to not cause a crash.

	* src/gnome/window-register.c (regWindowSimple),
	(regWindowAccGroup): Only return the GNCSplitReg, not the whole
	regData.  Fixes a bunch of existing and potential crashes.

	* src/gnome/window-main.c (gnc_main_window_gl_cb):
	* src/gnome/window-acct-tree.c
	(gnc_acct_tree_window_toolbar_open_cb)
	(gnc_acct_tree_window_menu_open_subs_cb)
	(gnc_acct_tree_window_menu_open_cb)
	(gnc_acct_tree_window_activate_cb):
	* src/gnome/top-level.c (gnc_html_register_url_cb):
	Modify to not necessarily expect a RegWindow for creation of a
	ledger view.  Fixes a bunch of existing and potential crashes.

	* src/gnome/gnc-split-reg.c (gnc_split_reg_delete_cb): Removed;
	dead.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7484 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-15 08:26:43 +00:00