Commit Graph

1939 Commits

Author SHA1 Message Date
Linas Vepstas
a01a217180 change AccountGroup to use gncObject for initialization, dirty flag, teardown.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8561 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 20:22:01 +00:00
Linas Vepstas
ef1626a3db set the dirty flag early and often
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8557 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 19:31:53 +00:00
Linas Vepstas
78c2c4aaa8 misc include-file cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8552 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 18:19:33 +00:00
Linas Vepstas
7a055accd9 date.h -> gnc-date.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8551 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 18:18:34 +00:00
Linas Vepstas
6b5b94c8d4 date.h -> gnc--date.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8550 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 18:15:27 +00:00
Linas Vepstas
e6e7af1b56 date.h -> gnc-date.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8549 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 18:10:38 +00:00
Linas Vepstas
a2a7e4b37b rename date.h to gnc-date.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8548 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 17:59:06 +00:00
Linas Vepstas
a4674e6edc rename date.h -> gnc-date.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8547 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 17:54:43 +00:00
Linas Vepstas
dffe0ea3d8 add commentary
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8543 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 16:06:07 +00:00
Linas Vepstas
1ae957e3f3 Add account group as new object
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8542 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 15:52:04 +00:00
Linas Vepstas
36a0f095d9 misc cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8541 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 15:28:11 +00:00
Linas Vepstas
6a7d8eb580 misc SX-vs-book shuffling about
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8540 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 15:21:47 +00:00
Linas Vepstas
664b865f8b move scheduled transaction book anchors to own file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8539 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 15:07:52 +00:00
Linas Vepstas
cc556f3e89 bugfix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8538 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 14:43:22 +00:00
Linas Vepstas
8c6ad9b6c5 oops core dump
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8537 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 05:42:21 +00:00
Linas Vepstas
7a5e046a01 rework how scheduled xactions are handled inside the book,
in preparation for removal.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8536 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 05:13:13 +00:00
Linas Vepstas
4716e80539 oops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8535 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 04:48:55 +00:00
Linas Vepstas
0eb9d7139c ongoing fixes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8534 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 04:38:10 +00:00
Linas Vepstas
cb9ea67de7 remove template group from the book
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8533 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 04:31:47 +00:00
Linas Vepstas
fc0189c3f5 move transaction-counting-utility from book to transaction
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8532 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 04:30:54 +00:00
Linas Vepstas
071b1b7166 oops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8531 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 04:15:23 +00:00
Linas Vepstas
ebcd1819b1 oops, fix name
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8529 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 04:10:54 +00:00
Linas Vepstas
365c12983f a few small fixes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8528 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 04:04:17 +00:00
Linas Vepstas
95111f1109 remove account group from book structure
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8527 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 04:01:16 +00:00
Linas Vepstas
d1272e958e oops!
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8526 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 03:38:11 +00:00
Linas Vepstas
ddbb6b44a2 provide some memory management for the commodity table in the book
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8525 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 03:36:48 +00:00
Linas Vepstas
9b9fef58ce remove the commodities from the commodity table
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8524 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 03:33:06 +00:00
Linas Vepstas
9e4383a29b perform some memory management for the pricedb stored in the book
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8522 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 03:23:19 +00:00
Linas Vepstas
d0d53c0699 remove the pricedb from the book struct
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8521 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 03:02:59 +00:00
Linas Vepstas
93b925a15c continue removing pointers from the book struct
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8519 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 02:39:34 +00:00
Linas Vepstas
d7ffd2a6cd remove direct access
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8518 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 02:06:05 +00:00
Linas Vepstas
885998ee91 fix the warning message
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8516 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 01:56:14 +00:00
Linas Vepstas
a91c6ef9ff start making changes to eliminate topgroup from this struct
(this version produces run-time warnings, I'm fixing them).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8515 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-10 01:30:47 +00:00
Linas Vepstas
e43973c77a Add GPL license notice
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8514 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 21:23:44 +00:00
Linas Vepstas
706153ecb4 bugfix: the type should be the new not the old query type
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8513 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 19:10:09 +00:00
Linas Vepstas
e522c2fba4 need to expose the entity table
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8512 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 19:01:24 +00:00
Linas Vepstas
d4a159299a remove explicit dependence on gnc-book
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8511 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 18:47:26 +00:00
Linas Vepstas
f6fd9ff164 explicitly include gnc-book.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8510 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 18:44:52 +00:00
Linas Vepstas
b4d0ad4b2e rename date.h to gnc-date.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8509 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 18:18:47 +00:00
Linas Vepstas
3f87d68751 include file cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8508 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 18:08:37 +00:00
Linas Vepstas
8c8da93625 rename date.h to gnc-date.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8507 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 17:57:36 +00:00
Linas Vepstas
9cbac1a666 move the string cache from gnc-engine to gnc-engine-util
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8506 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 17:53:41 +00:00
Linas Vepstas
72426bf766 rename date.c to gnc-date.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8505 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 17:45:03 +00:00
Linas Vepstas
7c40e5dfe4 backwards compatibility include
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8504 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 17:43:32 +00:00
Linas Vepstas
f96349f0b9 rename date.h to gnc-date.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8503 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 17:38:55 +00:00
Linas Vepstas
8a96a0c361 remove stale routine, add some documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8502 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 17:38:03 +00:00
Linas Vepstas
a918b7a043 cleanup include-file usage
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8501 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 15:47:01 +00:00
Linas Vepstas
cd4570763e cleanup; use the atoll function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8500 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 15:45:40 +00:00
Derek Atkins
a58203a43a * src/app-utils/app-utils/scm: export new dateformat option symbols
* src/app-utils/option-util.[ch]: create dateformat option utility functions
	* src/app-utils/options.scm: create a dateformat option
	* src/engine/date.[ch]: create APIs to handle date-format types.
	  - conversions of date-format to/from strings
	  - move the month format enum to here
	  - conversion of month format to/from strings
	* src/gnome/top-level.c: move date-format string conversion from here
	* src/gnome-utils/dialog-options.c: implement a date-format options
	  that uses the gnc-date-format widget.
	* src/gnome-utils/gnc-date-format.h: remove month format (to date.h)
	Initial fix for #99574


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8496 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-06-09 03:42:52 +00:00
Christian Stimming
0ba39a4560 Fix signed/unsigned warning of gcc 3.3.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8463 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-30 18:34:06 +00:00
David Hampton
54fca943db Correct ISO code for the Polish currency.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8458 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 23:47:52 +00:00
Linas Vepstas
7c58366d4f convert tabs to 8 spaces, so that people with different
tab-stop settings can see correctly indented code :-)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8449 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 16:14:57 +00:00
Benoit Grégoire
58816103a3 2003-05-29 Benoit Gr�goire <bock@step.polymtl.ca>
* src/engine/TransLog.c: Now log the transaction notes field (kvp actually).
	* src/engine/kvp_frame.h: Docs
	* src/import-export/log-replay/gnc-log-replay.c: Actually make it work:) Thanks Derek for pointing me to the private headers.  Support the new note field.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8448 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 15:02:19 +00:00
Linas Vepstas
bf488bff50 fiddle with the documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8441 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 04:48:23 +00:00
Benoit Grégoire
dbed96de7b 2003-05-26 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/import-settings.c: Revert previous gettext macro addition.
	* src/engine/TransLog.c,h: Change the log format to use GUID instead of C pointers and to use ISO8601 instead of proprietary format.

	* src/engine/gnc-numeric.h
	* src/import-export/import-match-map.c: Doxygen update

	* configure.in
	* src/scm/main.scm
	* src/import-export/Makefile.am
	* src/import-export/log-replay/*: New log replay module.  This ALMOST works, except I forgot you can't set the GUID of gnucash's objects, and thus completely screwed up on the playback logic.  I'll think of a solution when I am rested.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8440 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 04:47:54 +00:00
Linas Vepstas
e67e3c4254 add GPL copyright notices
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8439 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 04:21:40 +00:00
Linas Vepstas
f5a84f15c2 move the trae functions to thier own subdirectory
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8427 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 00:46:43 +00:00
Linas Vepstas
09f80afc5d add missing header files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8426 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 00:43:40 +00:00
Linas Vepstas
ac924ede8f move around an include file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8425 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 00:35:20 +00:00
Linas Vepstas
1db349384c misc cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8424 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 00:28:09 +00:00
Linas Vepstas
41a1451a74 add missing include file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8423 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 00:24:39 +00:00
Linas Vepstas
26d3a81e55 add missing include file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8422 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-29 00:09:20 +00:00
Linas Vepstas
fdb11973c8 remove from the gnc-engine-util so that these func
can be used in other apps


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8421 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-28 23:57:55 +00:00
Linas Vepstas
f38fb55aba remove cruft
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8420 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-28 23:36:40 +00:00
Linas Vepstas
2c68f3b4b3 cleanup grungy utils, I need to be able to use this
in a different, unrelated app.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8418 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-28 23:27:05 +00:00
Linas Vepstas
7b50af16ff move KVP junk out of generic engine utilities
-- needed to make portions of engine more generic for use
by other apps.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8417 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-28 23:05:56 +00:00
Christian Stimming
0fcd48a225 Improved documentation -- a GList here is always a GList of kvp_frame's.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8413 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-27 19:19:08 +00:00
Derek Atkins
e5a6623f87 * src/engine/QueryCore.c:
* src/engine/guid.c:
	* src/engine/kvp-util.c:
	  Fixes for 64-bit architectures.  Fixes bug #113231.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8346 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-20 03:28:53 +00:00
Derek Atkins
220e6dac33 * src/gnome-utils/dialog-query-list*: the glade and C code for
a general QueryList Dialog.
	* src/gnome-utils/Makefile.am: compile the new dialog.
	* src/business/business-gnome/business-gnome.scm: use the new
	  querylist dialog to display the due bills
	* src/business/business-gnome/dialog-invoice.[ch]: create a new
	  API to run a due-bills dialog.
	* src/business/businss-gnome/gw-business-gnome-spec.scm: wrap the
	  new due-bills api
	* src/engine/gnc-book.c: forcibly signal a book destroy event


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8340 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-19 15:59:29 +00:00
Derek Atkins
e2dbe1e10b * src/engine/gnc-event*: add an api to force an event even when
events are suspended.  Without such an API, events can be lost
	  if the event system is suspended when the event comes in.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8338 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-19 15:11:51 +00:00
Derek Atkins
7fa134b52f * src/engine/QueryNew.[ch]: add gncQueryGetBooks() API to return
list of books in a query.
	* src/business/business-core/gncInvoice.[ch]: add INVOICE_POST_LOT
	  query parameter methods


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8336 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-19 14:56:25 +00:00
Derek Atkins
4886428cfe * src/engine/gnc-lot.[ch]: add LOT_IS_CLOSED and LOT_BALANCE
query parameter methods


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8334 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-19 02:47:48 +00:00
Derek Atkins
d39367285c * src/engine/Query{,P}.h: move the location of gncQuerySearchFor()
to allow callers to look it up without requiring the private
	  header.
	* src/business/business-core/gncInvoice.[ch]: define
	  INVOICE_IS_PAID and create gncInvoiceIsPaid() function (the
	  prototype already existed, but it was never implemented).
	* src/business/business-gnome/dialog-invoice.c: add IS_PAID column
	  and the ability to search for paid/not-paid invoices.
	* src/gnome-utils/Makefile.am: build gnc-query-list
	* src/gnome-utils/gnc-query-list.[ch]: finish the GNCQueryList.
	  - allow active-column sorting
	  - watch all the entities in the query and update when an entry changes
	  - use a checkbox to display booleans
	* src/gnome-utils/search-param.[ch]: add extra APIs required to support
	  the initial QueryList implementation
	* src/gnome-search/dialog-search.c: Convert to use the new
	  GNCQueryList to display the search results.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8308 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-13 02:07:15 +00:00
Derek Atkins
8052d43e03 You need to define your variables before you call ENTER()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8293 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-11 01:06:35 +00:00
David Hampton
5b7353d67c Move price quote information from the Account data structure to the
Commodity data structure.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8292 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-05-11 00:45:03 +00:00
Derek Atkins
937ec37a9b * src/engine/test/Makefile.am: disable the test-scm-query-import
test, since it breaks on guile-1.6 (which does mean that
	  importing into a guile-1.6-based system will fail, but so much
	  else fails when upgrading from 1.6 to 1.8 that it really doesn't
	  matter.  Users will have to reset their reports anyways.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8254 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-29 13:57:54 +00:00
David Hampton
2fc7cc7372 Consolidate all the tests for an ISO 4217 commodity into a pair of
functions.  Use these functions throughout the code.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8252 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-29 06:15:34 +00:00
David Hampton
e46d7c6b05 Remove two duplicate commodities. The newer name for these
commodities was retained.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8251 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-29 06:11:19 +00:00
Derek Atkins
9e1c909019 Herbert Thoma's multi-currency patch (#3):
* src/engine/Account.c: move currency conversion to gnc-pricedb.c

	* src/engine/gnc-pricedb.c
	* src/engine/gnc-pricedb.h: add functions
	  gnc_pricedb_convert_balance_latest_price and
	  gnc_pricedb_convert_balance_nearest_price

	* src/engine/gw-engine-spec.scm: wrap functions
	  gnc_price_list_destroy, gnc_pricedb_lookup_latest_any_currency,
	  gnc_pricedb_lookup_nearest_in_time_any_currency,
	  gnc_pricedb_convert_balance_latest_price and
	  gnc_pricedb_convert_balance_nearest_price

	* src/report/report-system/commodity-utilities.scm: use
	  gnc:pricedb-convert-balance-latest-price and
	  gnc:pricedb-convert-balance-nearest-price to improve
	  multiple currency reports

	* src/report/standard-reports/advanced-portfolio.scm:
	  improve report for stocks and funds not denominated in report currency


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8234 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-20 23:50:39 +00:00
Derek Atkins
a2e2bda6d8 Applied Herbert Thoma's patch:
* lots of files...
	  fixes for GCC 3.3 warnings
	  comparison between signed and unsigned and
	  dereferencing type-punned pointer will break strict-aliasing rules
	  fixes #110320

        * src/engine/gnc-pricedb-p.h
        * src/engine/gnc-pricedb.c
        * src/engine/gnc-pricedb.h:
	  gnc_pricedb_lookup_at_time_any_currency,
	  gnc_pricedb_lookup_day_any_currency and
	  gnc_pricedb_lookup_nearest_in_time_any_currency functions


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8223 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-12 16:53:22 +00:00
Derek Atkins
73a59d5ed4 * src/engine/Transaction.c: xaccSplitGetCorrAccountCode() should
actually return the account Code, not the account Name!  Fixes
	  #110561.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8220 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-11 15:13:55 +00:00
Linas Vepstas
37ee1c09a0 add a pair of utility routines that will be needed by the GUI
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8219 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-09 03:09:31 +00:00
Linas Vepstas
a4bb3a4676 add documentation for keys used by lots
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8217 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-07 05:24:43 +00:00
Linas Vepstas
8b3b6fa9af store the default gains account in kvp tree
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8216 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-07 05:23:43 +00:00
Linas Vepstas
bf8e241f6d minor typo cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8215 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-07 05:22:30 +00:00
Linas Vepstas
984c1c9ce0 two bug fixes:
-- kvp changes require that account be marked dirty so that its saved
-- Fix memory leak in GetSubAccounts (the returned value is already
   a copy, a second copy is not needed).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8214 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-07 05:21:49 +00:00
Linas Vepstas
fd17b42edd add documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8213 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-07 05:19:23 +00:00
Linas Vepstas
0ec2c9fa6c fix bug: need to mark account as 'changed' so that it gets saved.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8212 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-07 05:18:10 +00:00
Linas Vepstas
956502338c add FSF license
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8207 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-06 21:00:55 +00:00
Linas Vepstas
728c55e947 alphabetize
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8206 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-06 20:35:53 +00:00
Linas Vepstas
ec53abddcd ignore more stuff
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8201 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-06 07:29:23 +00:00
Linas Vepstas
f6797be286 add debug statements
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8200 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-06 07:28:08 +00:00
Linas Vepstas
5f52a654ee fixes to income account
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8199 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-06 07:27:20 +00:00
Linas Vepstas
517270fd8c add very simplistic test for lots
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8197 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-05 20:03:30 +00:00
Linas Vepstas
8957f7017c fix typo
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8196 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-05 19:44:15 +00:00
Linas Vepstas
89b86d0d49 add notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8195 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-05 19:31:48 +00:00
Linas Vepstas
c139fcf5ce fix some notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8194 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-05 19:30:12 +00:00
Linas Vepstas
ace2107db9 add debugging print statements
fix misc bugs


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8193 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-05 19:27:21 +00:00
Linas Vepstas
269b437847 cosmetic, fix indentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8191 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-05 16:54:30 +00:00
Linas Vepstas
0865da3b4a cleanup order in which scrubbing is performed,
add additional debug printouts of actions performed.
Will catch fixes of type reported by Dave Reed <drlinux@columbus.rr.com>


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8186 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-05 05:38:12 +00:00
Linas Vepstas
07f773530f add debug statements for problem reported by Dave Reed <drlinux@columbus.rr.com>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8180 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-03 15:18:25 +00:00
Linas Vepstas
6d079acb6f clue-stick
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8176 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 05:37:25 +00:00
Linas Vepstas
9184bf7a1c add a few utility routines
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8173 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 05:09:39 +00:00
Linas Vepstas
e5d7cd62ee fix docos
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8172 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 05:09:24 +00:00
Linas Vepstas
a65a2499e8 remove bogus include
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8171 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 04:52:22 +00:00
Linas Vepstas
73ac53ded0 add group scrub routine, add docs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8170 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 04:51:09 +00:00
Linas Vepstas
768cd99477 finish implementing the double-balance routine
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8167 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 04:22:52 +00:00
Linas Vepstas
314c39486f minor documentation update
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8166 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 04:22:02 +00:00
Linas Vepstas
b2da24e3c6 add convenience function to find date on which lot was closed
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8165 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 04:02:34 +00:00
David Hampton
f906f0b11b Push gui independent functions into the engine.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8146 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-01 04:05:32 +00:00
Christian Stimming
1c2adca030 2003-03-31 Herbert Thoma <herbie@hthoma.de>
* src/engine/gnc-pricedb.c
	* src/engine/gnc-pricedb.h: new function
	gnc_pricedb_lookup_latest_any_currency, return any available
	prices for given commodity regardless of currency

	* src/app-utils/gnc-ui-util.c: do a "two stage" price lookup in
	gnc_ui_convert_balance_to_currency if no price for the commodity
	is found in the requested currency, then look for prices in any
	currency and for a exchange rate from the price currency to the
	requested currency

	* src/gnome/gnc-split-reg.c: do currency conversion and show the
	value in the status line of stock and mutual fund accounts


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8145 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 19:12:21 +00:00
Linas Vepstas
3d8b885108 rename the 'GetOrMake' routine, its not static any more but shared between two files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8142 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 05:15:21 +00:00
Linas Vepstas
5f6476648f inital checkin -- add private prototype for utility func
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8141 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 04:42:16 +00:00
Linas Vepstas
ebc997d35c cleanup author credits
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8140 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 04:41:21 +00:00
Linas Vepstas
1808028f83 more new code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8139 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 04:19:18 +00:00
Linas Vepstas
c45c2da35e misssed a spot - remove more bogus arguments
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8136 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 03:50:32 +00:00
Linas Vepstas
a55b0c4196 get rid of bogus subroutine argument
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8135 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 03:46:36 +00:00
Linas Vepstas
496015a5b6 add documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8134 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 03:25:37 +00:00
Linas Vepstas
f1e8ae9e0d d of bogus argument to scrub functions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8133 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 03:25:19 +00:00
Linas Vepstas
413ff3ad12 get rid of spurious argument
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8130 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 02:50:02 +00:00
Linas Vepstas
93d30df886 fix bugs, start adding routine to perform the double-balance check
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8129 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 19:04:42 +00:00
Linas Vepstas
952ef55424 add documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8128 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 18:40:40 +00:00
Linas Vepstas
8bedf26761 fill in more of the lot-scrubbing algorithm
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8125 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 06:32:36 +00:00
Linas Vepstas
d694fb5a4e fix formating
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8123 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 06:29:19 +00:00
Linas Vepstas
eb0b60038c fix some notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8122 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 05:44:12 +00:00
Linas Vepstas
7c5f5fcaf3 never mind; we really do *not* have any use for these funcs;
things will be handled very differently.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8121 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 04:50:09 +00:00
Linas Vepstas
18cc347bae fill in more functions to clean up lots
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8120 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 04:45:48 +00:00
Linas Vepstas
c39c2be3be oops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8119 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 04:09:45 +00:00
Linas Vepstas
d328d40114 add utility routine to get earliest split in lot
convert tabs to spaces


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8118 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 04:08:55 +00:00
Linas Vepstas
e701237359 fix a FIXME note
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8117 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 03:30:42 +00:00
Linas Vepstas
f8e733bb52 start working on functions to cleanup up usage of Lots in trading accounts
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8116 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 03:03:02 +00:00
Linas Vepstas
5fc7551350 remove obsolete commentary
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8115 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 03:01:23 +00:00
Linas Vepstas
b1913918b6 add an account-for-each-lot function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8114 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 02:58:25 +00:00
Linas Vepstas
c43a1b13d3 fix typo
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8113 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 00:21:41 +00:00
Linas Vepstas
6a498252d5 start porting fifo code to current gnucash engine
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8112 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-29 23:29:58 +00:00
Linas Vepstas
5278b8e655 reinstate simple accounting FIFO from the gnucash-1.4 branch
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8106 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-29 21:34:40 +00:00
Christian Stimming
72614fb23a 2003-03-29 Christian Stimming <stimming@tuhh.de>
* src/engine/gnc-session.c: OpenBSD fix by Todd T. Fries
        <todd@flare.fries.net>

        * src/engine/Transaction.c: OpenBSD fix by Todd T. Fries
        <todd@flare.fries.net>: time_t is not long everywhere.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8104 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-29 21:33:04 +00:00
Christian Stimming
36bc6d9b6b Updated function documentation for doxygen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8103 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-26 23:07:01 +00:00
Christian Stimming
039f9bd8aa Improved documentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8102 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-26 00:17:26 +00:00
Benoit Grégoire
bc887b604f 2003-03-18 Benoit Gr�goire <bock@step.polymtl.ca>
* Documentation update


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8091 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-19 05:50:20 +00:00
David Hampton
f83edf6ead Collapse the DateUtils.[ch] files into date.[ch].
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8089 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-17 02:02:10 +00:00
David Hampton
d417ccb041 Consolidate all the functions that convert time values to be the
beginning, middle, or end of a day.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8088 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-16 22:48:27 +00:00
Christian Stimming
4cb98c9779 2003-03-15 Christian Stimming <stimming@tuhh.de>
* src/engine/gnc-book.h, src/engine/*.h: Added a lot of
	documentation comments, improved doxygen output. At least the most
	important header files will now show up in doxygen.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8081 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-14 23:59:25 +00:00
Derek Atkins
3ff79110e7 * src/engine/Makefile.am: make sure to add INTLLIBS in case
we're compiling against an external -lintl (like on Solaris)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8076 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-14 00:25:36 +00:00
David Hampton
d154e92e71 Initial port from the deprecated (in 1.6) guile gh_xxx interface to
the supported scm_xxx interface.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8013 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-02-22 08:15:53 +00:00
Derek Atkins
fe2e91565d * src/engine/gnc-lot-p.h: some strange platforms assume "char" is
0..255 instead of -128..127.  Force a "signed char" to make sure
	  we get the latter interpretation.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7946 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-02-05 14:05:23 +00:00
Derek Atkins
08e994b74c * src/import-export/qif-import/qif-file.scm: fix a
wrong-number-of-arguments fatal crash when trying to reparse
	  dates.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7939 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-02-04 02:41:40 +00:00
Derek Atkins
28dda321a2 * src/calculation/Makefile.am: need to add GUILE_INCS
* src/engine/Makefile.am: add ${INTLLIBS} for gettext() et al on
	  platforms that don't have it in libc

	* src/backend/file/io-gncbin-r.c: don't need to define functions
	  that are never used, so move the #ifdef around.  Fixes # 105124

	* rpm/gnucash.in: don't call autoconf


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7937 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-02-03 23:32:44 +00:00
Derek Atkins
2f972ce982 * src/engine/gnc-engine-util.c: turn off DEBUG on all the modules
(for the release).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7913 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-02-02 03:06:29 +00:00
Derek Atkins
5acf50fa9b * src/backend/postgres/PostgresBackend.c (pgendEnable):
Added ENTER/LEAVE statements

	* src/backend/postgres/escape.c: Adde gnc-engine-util.h,
	  and "module = MOD_BACKEND"
	- (sqlEscape_destroy): Added ENTER/LEAVE statemtents.

	* src/backend/postgres/gncquery.c (sql_Query_destroy): Added
	ENTER/LEAVE statements.

	* src/backend/postgres/putil.h: Cleaned up the formatting on the
	SEND/FINISH/EXEC/GET_RESULT macros.  Changed them to use
	PQresultErrorMessage where possible. Made them all set the Backend
	error message string.  Removed the PQfinish() calls, and setting
	be->connection to NULL.  Reasoning: if a malformed query fails, there is
	no reason to close the connection.  If an update/insert fails,
	again, there is no need to close the connection.  The user should
	be presented an error message and respond appropriately.  If
	a update/insert/delete fails, then generally the transaction is
	rolled back to the last BEGIN, thereby preventing data corruption.

	* src/engine/QueryNew.c (gncQueryPrint): Check that q is not NULL
	prior to processing it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7905 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-02-01 21:26:33 +00:00
Joshua Sled
f3c03a9dc8 2003-01-25 Joshua Sled <jsled@asynchronous.org>
* src/gnome/dialog-scheduledxaction.c (gnc_sxed_update_cal): Fix
	the Recurrence-Frequency example-calendar date calculation to show
	upcoming instances correctly.

	* src/engine/SchedXaction.c (xaccSchedXactionGetNextInstance):
	Remove the validity check on the temporal-state-data's notion of
	the last-occurance date; as invalidity means something important,
	we must let it through; fixes Bug#103955.

	* src/backend/file/gnc-schedxaction-xml-v2.c
	(gnc_schedXaction_dom_tree_create): Make output of the
	deferred-instance last-date node optional on it's validity.

	* src/gnome/dialog-sxsincelast.c (cancel_check): Change assertion
	into conditional-activity, allowing rational use-case and fixing
	Bug #103182.

	* src/gnome/dialog-scheduledxaction.c (editor_ok_button_clicked):
	Correctly update available SX lists instead of the one we were
	spawned from, which may have disappeared in the mean time.  Fixes
	Bug#103629 [and allows the future fix of not needing to open the
	SX List Dialog when clicking "Advanced..." in the sx-from-transaction
	SX Editor-open vector].


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7885 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-26 02:53:58 +00:00
Christian Stimming
1a5c80e4ed 2003-01-25 Christian Stimming <stimming@tuhh.de>
* src/engine/Scrub.c (xaccTransScrubImbalance): Fix rounding of
	the imbalance amount, #104343.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7882 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-25 11:07:42 +00:00
Derek Atkins
dbe33ca873 * src/engine/gnc-numeric. -- fix the gnc_numeric_lcd() algo to
actually work with numbers that are not co-divisible but have
	  multiple-powers of co-factors.  For example, the old algorithm
	  thought the LCM of 100,96875 was 3100, when it is really 387500,
	  because it was removing the factor of '5' too many times..


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7864 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-21 01:50:16 +00:00
Derek Atkins
193fd8ef83 * src/engine/QueryNew.c -- g_list_append() can take a LONG time
and on big queries the merge can appear to take a long time.
	  So, let's use g_list_prepend() and g_list_reverse() to speed
	  up the process significantly.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7860 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-20 19:17:13 +00:00
Derek Atkins
6b85475af0 2003-01-19 John Pierce <XXXXXXXXXXX>
* doc/Makefile.am
	* src/doc/Makefile.am
	* src/doc/design/Makefile.am
	* src/experimental/cgi-bin/Makefile.am
	  Added docs that were missing from dist.
	  Moved doxygen clean rules to maintainer-clean.
	  Moved texinfos to maintainer-clean.

	* lib/libc/Makefile.am
	  Added sources needed for OS X to dist.

	* src/app-utils/Makefile.am
	* src/backend/postgres/Makefile.am
	* src/business/business-core/Makefile.am
	* src/business/business-gnome/Makefile.am
	* src/business/dialog-tax-table/Makefile.am
	* src/core-utils/Makefile.am
	* src/engine/Makefile.am
	* src/gnc-module/Makefile.am
	* src/gnc-module/test/mod-bar/Makefile.am
	* src/gnc-module/test/mod-baz/Makefile.am
	* src/gnc-module/test/mod-foo/Makefile.am
	* src/gnome/Makefile.am
	* src/gnome-search/Makefile.am
	* src/import-export/Makefile.am
	* src/import-export/binary-import/Makefile.am
	* src/import-export/qif-io-core/Makefile.am
	* src/register/register-core/Makefile.am
	* src/report/report-gnome/Makefile.am
	* src/scm/Makefile.am
	* src/app-file/Makefile.am
	* src/gnome-utils/Makefile.am
	  Put generated headers into dist.
	  Moved symlinks to distclean.
	  Moved generated files to maintainer-clean.
	  Put generated gw-.*.scm files in dist for parity.
	  Put generated sources into dist.
	  Moved generated source to maintainer-clean.

	* src/bin/overrides/Makefile
	  Made built scripts depend on config.status to ensure
	  they're rebuilt when paths change.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7859 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-20 17:11:50 +00:00
Derek Atkins
1e8397b194 * src/engine/gnc-numeric.c -- be more intelligent when operating
on numbers of different denominators.  In particular, convert
	  both numbers to the lcd and then operate on them, instead of
	  assuming that a "cross-multiply" is safe.
	* src/app-utils/test/test-print-parse-amount.c -- add more tests for
	  PrintAmountInternal by checking force_fit and round.  Excercises
	  a bug (fixed in this patch) where cross-multiplies were NOT safe.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7848 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-19 19:38:14 +00:00
Derek Atkins
a21813baa3 * src/engine/commodity-table.scm: move gnc:commodity-is-currency? here
* src/engine/engine.scm: export gnc:commodity-is-currency?
	* src/report/report-system/report-system.scm: remove ref to same.
	* src/report/report-system/report-system.scm: remove function above
	* src/import-export/qifiimport/qif-to-gnc.scm: fix the algorithm
	  to find/create new accounts.  All "parent" accounts are of
	  commodity "default-currency" (but don't really care about that).
	  When creating a leaf account, use the security if it's a
	  stock/mmf account, but the default-currency otherwise.
	  Fixes #103633.

	  NOTE:  Might need similar fixed in qif-io-core?


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7841 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-17 03:18:36 +00:00
David Hampton
1959d5f911 /tmp/cvs7Cckh1
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7839 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-16 07:42:20 +00:00
David Hampton
da1597b40d Changes to make the build system work on multiple architectures and
with multiple versions of the autotools suite.  Make generated g-wrap
sources depend on config.status.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7837 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-16 00:48:17 +00:00
Derek Atkins
198f41ee89 * src/engine/QueryNew.h: add QUERY_PARAM_ACTIVE
* src/business/business-core/gncCustomer.c:
	* src/business/business-core/gncEmployee.c:
	* src/business/business-core/gncInvoice.c:
	* src/business/business-core/gncJob.c:
	* src/business/business-core/gncOrder.c:
	* src/business/business-core/gncVendor.c:
	  add the QUERY_PARAM_ACTIVE parameter support
	* src/app-util/prefs.scm: add hidden preference to store
	  the user's choice of searchin
	* src/gnome-search/search.glade: add a checkbox to search-for-all
	* src/gnome-search/dialog-search.c -- add preliminary support to
	  limit searches to only "active" objects.  Fixes bug #103506


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7833 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-15 03:49:51 +00:00
David Hampton
8e00dd0826 Make the progress bar argument a double instead of an int. This gets
around an issue with guile 1.6.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7832 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-14 05:15:00 +00:00
David Hampton
119bbe3fa4 Make the gnc_scm_to_gint64() function work with either guile 1.4 or
guile 1.6.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7831 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-14 05:11:34 +00:00
Derek Atkins
2db9a7f026 * src/app-utils/option-util.c: gh_str2scm() takes a char*, not a
const char* (at least in guile-1.3.4), so force the string to be
	  a char* to make the compiler happy.

	* src/engine/date.c: add spaces to the scanDate delimiters,
	  although it may not help if strptime() is doesn't like the
	  spaces.  Attempt to fix #103147, but it's probably a strptime
	  bug.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7828 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-13 19:35:38 +00:00
Derek Atkins
91e02c362f * src/engine/QueryCore.c: fix the algorithm to compute equality
of numerics so it copes with numbers in the "wrong" order.
	  Fixed bug #103341


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7824 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-13 05:33:11 +00:00
David Hampton
d07d526913 Convert from the old to new symbols for Russian Roubles (RUB ->
RUR). #102705


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7810 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-11 21:36:34 +00:00
David Hampton
dab1d59bc3 Add note that Austrian switched from Shillings to Euros.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7809 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-11 20:00:56 +00:00
Derek Atkins
2020629a0e * apply patch to use Euclid's algo for gnc_numeric_reduce
more fixes for #95474


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7803 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-09 01:06:27 +00:00
David Hampton
11ffa5dd13 Revert a change for guile 1.6. The 64 bit native API changed between
1.4 and 1.6 so this change caused compilation failures for some users.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7801 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-08 00:20:28 +00:00
David Hampton
56c325a322 Changes required for guile 1.6.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7797 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-07 06:46:37 +00:00
Derek Atkins
dd4e209a38 * src/engine/test/test-scm-query-import.scm: add a warning message
about potential "error" output which can be ignored.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7794 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-07 04:21:18 +00:00
Chris Lyttle
47fa370fd8 Updates to build system by John H. Pierce
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7788 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-06 07:15:30 +00:00
David Hampton
276668eab9 Don't clear the current_session global unless the actual current
session is being destroyed. 101707.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7775 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-05 03:50:37 +00:00
Derek Atkins
f0b9fe9f4b * src/engine/Transaction.[ch]: add TRANS_NOTES and supporting routines
to enable searching for notes.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7774 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-05 03:46:21 +00:00
David Hampton
b3f1274e0a Add support for i18n of price source strings. #102156
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7767 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-04 06:32:48 +00:00
Derek Atkins
5c8944868d * src/engine/Account.[ch]: add an xaccAccountRemoveLot() function to allow
the LOT code to clear memory when you destroy a lot.  Fixes a crash
	  when you destroy a lot.
	* src/engine/Transaction.[ch]: add an xaccTransClearReadOnly() function
	  to let you clear the flag so you can then remove an transaction.  Only
	  for internal uses only!  This is used by the Invoice UnPost code.
	* src/engine/gnc-lot.c: remove the lot from the account's list of lots
	  when the last split is gone.

	* src/business/business-core/gncInvoice.[ch]: implement Unpost function
	* src/business/business-ledger/gncEntryLedger.[ch]: change the
	  set_readonly() function to let you toggle back and forth between
	  readonly and readwrite ledgers.
	* src/business/business-gnome/dialog-invoice.c: implement unpost; set back
	  to readwrite if the unpost succeeds
	* src/business/business-gnome/dialog-order.c: use new set_readonly() API
	FIXES BUG #101452


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7750 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-02 04:07:58 +00:00
Christian Stimming
481af40f5a 2002-12-30 Christian Stimming <stimming@tuhh.de>
* src/engine/FreqSpec.c: Fix the i18n comments for the translators.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7735 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-30 01:14:56 +00:00
Joshua Sled
fad1450419 2002-12-28 Joshua Sled <jsled@asynchronous.org>
* src/register/register-gnome/formulacell-gnome.c: Changed
	FormulaCell from MOD_SX to MOD_REGISTER.

	* src/engine/FreqSpec.c (xaccFreqSpecGetFreqStr):
	s/g_string_sprintf/snprintf/, as the former can't handle the
	re-ordered format parameters which the po-files use; fixes
	Bug#101650.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7731 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-29 20:35:03 +00:00
David Hampton
8badc55e6b Fix a couple of problems with 'test check'.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7729 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-28 21:25:58 +00:00
Christian Stimming
c18b48371d 2002-12-27 Christian Stimming <stimming@tuhh.de>
* src/engine/test-core/Makefile.am: Fix linker errors in
	src/engine/test/


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7726 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-27 13:58:46 +00:00
David Hampton
e3ca297efb Eliminate the zillion warning messages when running gnucash with the
--add-price-quotes flags.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7715 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-24 01:52:06 +00:00
David Hampton
7c800260bc Provide access to new pricedb lookup function and to the engine event
suspend/resume functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7713 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-24 01:42:09 +00:00
David Hampton
d678e866e7 Add a new pricedb lookup function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7712 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-24 01:40:46 +00:00
David Hampton
e6a6b63809 Add menu items and code to the register window so a user can limit
transactions to any combination of the Reconciled / Cleared / Voided /
Unreconciled states. #87990


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7689 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-16 01:01:01 +00:00
Joshua Sled
ab20128481 2002-12-15 Joshua Sled <jsled@asynchronous.org>
* src/gnome/glade/sched-xact.glade: Clarified some text, removed
	unused widgets.

	* src/app-utils/gnc-ui-util.c (xaccSPrintAmount): Added useful comment.

	* src/gnome/druid-loan.c (ld_create_sxes): Re-written; now a much
	more principled implementation which passes a test-script; fixes
	Bug#100088, Bug#100085.

	* src/engine/SX-ttinfo.c (gnc_ttsplitinfo_get_debit_formula):
	Fixed potentially-nasty mem-handling bug.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7688 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-16 00:35:27 +00:00
David Hampton
1d98fa5497 Remove redundant routines and place a single copy in a common location.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7687 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-15 23:25:01 +00:00
David Hampton
c43bef4a62 Progress toward getting the 'make distcheck' target to successfully
compile again.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7686 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-15 22:09:43 +00:00
Derek Atkins
aacd10b603 * configure.in: require g-wrap >= 1.3.3
* src/engine/gw-engine-spec.scm: use gslist-of where needed
	* src/engine/gw-kvp-spec.scm: use gslist-of where needed

	NOTE: As of now you ABSOLUTELY REQUIRE G-WRAP >= 1.3.3


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7678 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-12 05:14:01 +00:00
David Hampton
c98a3a1a8d Support for having an account scu that doesn't match the account
commodity's scu.  This allows a user to notice/correct a case where
the two are out of whack and correct it (#100295), or to intentionally
set them that way.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7677 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-12 04:44:35 +00:00
Joshua Sled
941b7dacc5 2002-12-08 Joshua Sled <jsled@asynchronous.org>
* src/engine/SchedXaction.h: Doxygen-related changes.

	* src/register/ledger-core/split-register-layout.c
	(gnc_split_register_layout_add_cells): Change F(DEBT|CRED)_CELL
	types to FORMULA_CELL from QUICKFILL_CELL.

	* src/register/register-gnome/gncmod-register-gnome.c
	(libgncmod_register_gnome_LTX_gnc_module_init): Add
	formulacell-gnome override to gnc_register setup.

	* src/register/register-core/formulacell.c:
	* src/register/register-gnome/formulacell-gnome.c: Filled in a
	long-thought of idea for a formula cell: can contain text unlike a
	pricecell, but doesn't really want to do auto-complete like a
	quickfill cell [what we had been using].  This allows us to
	provide the gnome formula cell which can remap the keypad '.'
	character based on locale; addresses Bug#97065, which is the
	cause of Bugs#97063 and #97062.

	* src/gnome/glade/sched-xact.glade: Remove "[Last Day]" option;
	add "/last day" to 29/30/31 options in gnc-frequnecy month-based
	selections.

	* src/gnome/dialog-scheduledxaction.c (new_button_clicked): Change
	default new SX frequency to monthly; fixes Bug#100615.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7662 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 22:25:40 +00:00
Christian Stimming
4d8b8c8625 More comments about how to use functions (xaccSplitSetBaseValue).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7657 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 14:54:37 +00:00
Christian Stimming
39d7d736a1 more doxygen improved documentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7654 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-08 02:19:10 +00:00
Derek Atkins
cd1b6b6b37 * src/engine/gnc-commodity.c: change PWARN() to DEBUG() in
gnc_commodity_equal(), because the average user doesn't need
	  to know why commodities are not equal.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7649 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 23:50:14 +00:00
Benoit Grégoire
8b98f87cc5 2002-12-7 Benoit Gr�goire <bock@step.polymtl.ca>
More Doxygenification.  Created an Engine module, and a
	Deprecated list.  Unfortunately, unless we turn on EXTRACT_ALL
	(not very practical currently) not all functions will appear
	unless they are all documented.
	* src/engine/Transaction.h: More Doxygenification
	* src/engine/Account.h: Doxygenify
	* src/doc/doxygen.cfg.in: Minor config change.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7646 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 21:16:01 +00:00
Christian Stimming
635def6e42 2002-12-07 Christian Stimming <stimming@tuhh.de>
* src/engine/Transaction.h: Extensively added function
	documentation (in order to avoid further amount/value confusion
	down the road), watch doxygen output. Added a lot of 'const' all
	over the place.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7640 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 13:05:45 +00:00
Derek Atkins
ad293e3fc0 * revert patch in src/engine/Transaction.c -- imbalance is computed
by _value_ -- ALWAYS.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7635 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 04:47:55 +00:00
Benoit Grégoire
b6092223f6 2002-12-6 Benoit Gr�goire <bock@step.polymtl.ca>
Huge patch, this is the new generic import
	architecture/transaction matcher.  Many old
	files were renamed, split or deleted.

	* src/engine/Transaction.c,h:
	- Add a DxaccSplitSetAmount function,
	- Fix a bug in xaccSplitsComputeValue (Split values were
	sometimes being summed, which is illogical) that caused
	xaccTransGetImbalance to sometimes return incorrect values.
	Somebody please review this.  Playing in the engine during
	freeze isn't ideal.

	* src/import-export/import-backend.c,h: There is now a
	real backend, completely independent of the GUI.

	* src/import-export/gnc-gen-transaction.c: This is Christian's
	old matcher, I tried to maintain compatibility, but couldn't
	really test.  Please note that there is some code
	simplification that could be done there now that there is a
	clean backend, and that some values passed between the functions
	might no longuer have any effect.

	* src/import-export/ofx/gnc-ofx-import.c:  Update for new
	matcher.  Use the currency reported by libofx and
	xaccSpiltSetBaseValue when adding a banking/credit card
	transaction.

	* src/import-export/import-account-matcher.c,h: This is a
	very generic and flexible account matcher/picker.

	* src/import-export/import-commodity-matcher.c,h: This is
	a generic commodity matcher/picker.

	* src/import-export/import-main-matcher.c,h: This is the
	main transaction matcher GUI. It's mostly feature complete
	and should be fairly stable, but probably leaks memory.

	* src/import-export/import-match-map.c,h: Derek Atkin's
	generic string/account matching infrastructure.

	* src/import-export/import-match-picker.c,h:  This is the
	interface to pick a matching transaction.  It has been
	completely ripped from the backend.

	* src/import-export/import-settings.c,h:  All user
	settings (or compiled-in settings) are now abstracted in
	an opaque structure with getter functions.

	* src/import-export/import-utilities.c:	These are utility
	functions to help import module writers.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7632 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-07 00:34:28 +00:00
David Hampton
d3821422dd Don't erase the just loaded account information because the backend is
reporting that the file is from a previous version.  Let the caller
decide after querying the user. #97270.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7614 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-04 02:08:51 +00:00
David Hampton
902fd55ed4 Do a numeric sort on the transaction number field.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7581 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-01 16:48:30 +00:00
Christian Stimming
be3b246f41 Comment out some unnecessary debugging output.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7580 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-12-01 13:39:40 +00:00
Christian Stimming
a0e5b8f830 2002-11-30 Christian Stimming <stimming@tuhh.de>
* src/app-utils/gnc-ui-util.[hc]: Added
	gnc_locale_default_currency_nodefault function since
	locale_default_currency might return a non-locale related
	currency. Fix xaccSPrintAmount. Fixes #95404.

	* src/engine/iso-4217-currencies.scm ("rouble"): Fix mnemonic for
	Russian Rouble which is "RUR" instead of RUB.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7574 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-30 13:38:34 +00:00