Commit Graph

7821 Commits

Author SHA1 Message Date
Linas Vepstas
4083634727 add a note about how to do the FIFO policy
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9984 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 16:42:52 +00:00
Linas Vepstas
758fa8bd91 add fflush to make output appear sooner
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9983 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 16:02:28 +00:00
Linas Vepstas
53507304cd add debugging print statements
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9982 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 05:10:27 +00:00
Linas Vepstas
216535a29b add 128-bit division & remainder support.
This helps reduce the failing gnc-lot problem.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9981 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 05:04:37 +00:00
Linas Vepstas
0ff45c2de4 -- check for overflow during numeric multiply
-- remove dead code (old common-factor finder)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9980 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 01:47:37 +00:00
Linas Vepstas
28fa53b187 start of quick-n-dirty 128-bit math lib
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9979 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-30 00:18:34 +00:00
Linas Vepstas
c5c92f5099 -- make the gnc-numeric error codes be a typdef enum
-- try to inline the numeric-check for slightly better performance


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9978 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 22:43:49 +00:00
Linas Vepstas
bd7a8b732d partial fix for the failure of the test-lots test case:
Change the FIFO policy to avoid mixed-currency lots.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9977 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 20:06:03 +00:00
Linas Vepstas
c11d423065 Do not try to compute cap gains if cap gains not possible.
Gains aren't possible if the lot commodity is the same as
the transaction currency.   I think that this should fix
http://bugzilla.gnome.org/show_bug.cgi?id=139677
Untested, let me know.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9976 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 19:09:14 +00:00
Linas Vepstas
894da26df6 whoops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9975 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 18:29:27 +00:00
Linas Vepstas
94c46181df update documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9974 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 18:22:53 +00:00
Linas Vepstas
e10faa04b5 partial fix for http://bugzilla.gnome.org/show_bug.cgi?id=139677
requires that all splits in lot share a common transaction currency.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9973 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 18:04:40 +00:00
Derek Atkins
a9bbb453e7 Fix memory corruption: add book_closing and use it.
* src/engine/Transaction.c:
	  Don't recompute balances or write to the translog when we're
	  shutting down.  Destroy the parent transaction from xaccSplitDestroy()
	  if we're shutting down.
	* src/engine/qofbook-p.h:
	* src/engine/qofbook.h:
	* src/engine/qofbook.c:
	  add "shutting_down" parameter and getter-method, so that
	  objects can detect when the book is shutting down and
	  ignore non-necessary reprocessing.  Fixes a memory corruption
	  bug during book-closing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9972 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-29 17:45:56 +00:00
Linas Vepstas
b83705a471 whitespace fixes (convert tabs to spaces)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9971 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-28 14:01:11 +00:00
Derek Atkins
eed3dfed9f A few more QOF_QUERY_PARAM_GUID -> QOF_PARAM_GUID conversions.
* src/gnome-search/dialog-search.c:
	* src/gnome-search/gnc-general-search.c:
	* src/gnome-utils/gnc-query-list.c:
	  Linas missed a few QOF_QUERY_PARAM_GUID -> QOF_PARAM_GUID
	  conversions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9969 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-24 21:12:25 +00:00
Derek Atkins
8ab475610b Vasil's patch to add "export" option to txn report.
* src/report/standard-reports/transaction.cm: applied Vasil's
	  patch to improve the transaction report for HTML export
	  purposes.  Fixes bug #142942.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9968 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-24 16:55:59 +00:00
Linas Vepstas
ce63311484 -- Rename QOF_QUERY_PARAM_XX to QOF_PARAM_XX
-- Add 'new' callback to QofObject.  This allows QofObject to act
   as an 'object factory', creating a new instance of something,
   given only the type name.  Plan to use this in the new SQL
   backend, when restoring objects from SQL tables.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9965 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-23 17:31:40 +00:00
Linas Vepstas
2bddf219fa bug fix, book getter should have been returning book
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9964 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-23 16:52:55 +00:00
Derek Atkins
7854068fa8 Guile-1.6 doesn't allow string->symbol on a symbol (bug #131201).
* src/report/locale-specific/us/taxtxf.scm: guile-1.6 complains
	  about string->symbol when passed a symbol.  Fixes #131201
	  Also add some code to handle accounts that are expected to
	  have parents but do not (also described in #131201).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9963 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-17 18:55:16 +00:00
Derek Atkins
bc21c87cd8 automake-1.8.x is more pedantic about m4 quoting.
* Luigi Ballabio's automake patch to gnucash.m4


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9960 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-15 16:13:29 +00:00
Christian Stimming
70b125d138 For gcc3.4.x, add -Wdeclaration-after-statement warning switch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9958 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 10:00:52 +00:00
Christian Stimming
524f98c9d3 (gnc_imap_add_account_bayes): Skip the case when a token is the empty string.
2004-05-08  Christian Stimming  <stimming@tuhh.de>

	* src/import-export/import-match-map.c
	(gnc_imap_add_account_bayes): Skip the case when a token is the
	empty string. This caused many warnings about a NULL kvp_frame
	lookup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9956 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 09:32:36 +00:00
David Hampton
e752fa5714 Added quote sources for Indian Mutual Funds.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9954 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 05:27:26 +00:00
David Hampton
f63c016e0a Needs to include config.h.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9953 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 05:26:43 +00:00
Linas Vepstas
6f27b18d37 Changes to get rid of most of the remaining usages of deprecated
guile gh_* routines.  The file engine-helpers.c also has whitespace
changes where tabs were expanded to 8 spaces (I have set ts=3, so
mixed tab/space indentation looks terrible). I beleive that the
changes are all good, but if you suspect the worst, you can revert by
fishing out the cvs tag 'pre-gh-deprecate'.

Some of the gnome files weren't converted, mostly because the
conversions really should be done in the gnome2 branch not this
branch.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9950 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-08 03:53:51 +00:00
Derek Atkins
0fa3a1904d Remove gncOrder.h from doxygen (I hope this works correctly)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9948 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 13:40:55 +00:00
Linas Vepstas
4f1297bc75 just a couple more documentation tweaks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9947 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 05:20:15 +00:00
Linas Vepstas
1471882a35 add markup to get these files to appear in the Doxygen documentation
system


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9946 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 05:11:49 +00:00
Linas Vepstas
23124f665b more doxygen docuemtnation updates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9945 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 04:54:21 +00:00
Linas Vepstas
d4fbf9c7f9 changes to make the documentation format nicely with Doxygen
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9944 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 04:47:03 +00:00
Linas Vepstas
27b3b9bec6 Working on the doxygen documentation:
fix some typos, add a missed file,


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9943 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 04:44:40 +00:00
Linas Vepstas
0861fb9d02 Changes to make the documentation display nicely with Doxygen
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9942 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 04:14:54 +00:00
Linas Vepstas
5bc213ae4d changes to make the documentation format nicely with docygen
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9941 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 03:26:31 +00:00
Linas Vepstas
06fae54699 Round one of changes to make doxygen generat nice docs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9940 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-07 02:36:40 +00:00
Linas Vepstas
d9b43bf908 update documentation structure so that doxygen generates nice output
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9939 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-06 14:42:00 +00:00
Derek Atkins
31dd073300 Fix another slib3 issue.
* src/engine/iso-currencies-to-c: don't automatically try to
	  (require 'format), so gnucash will build on an slib-3 system.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9935 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-05 15:52:09 +00:00
Linas Vepstas
9d0d967734 twaks to make doxygen run more nicely
also, fold in old/obsolete query docuemntation


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9933 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-05 15:42:34 +00:00
Linas Vepstas
82395f51df remove deleted file 'query-api.txt' from the dist list
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9932 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-05 14:45:07 +00:00
Linas Vepstas
af44cbb6cc The contents of this document have now been merged into the
QOF header files (which should show up in src/engine in the enxt update).
This file is now dead


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9931 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-05 14:43:49 +00:00
Linas Vepstas
0dc2890708 fix doxygen warnings by running doxygen -u
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9930 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-04 15:18:50 +00:00
David Hampton
6216b1f167 Work around problems with libltdl3.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9921 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-03 05:21:26 +00:00
Linas Vepstas
fb68f770c5 add more tests spanning more decades
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9919 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-03 04:11:01 +00:00
Linas Vepstas
17924792ef whoops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9918 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-03 03:36:42 +00:00
Linas Vepstas
9a1cfd5246 Changes:
Synchronize with QOF cvs tree.

gnc-engine-util.h:
-- add string utility to remove whitespace
-- add string utility that recognizess booleans 'TRUE', 'true' etc

guid.h:
kvp_frame.h:
-- doc clarification

qofclass.c:
qofclass.h:
-- fix core dump
-- add qof_class_is_registered() inquiry

qofgobj.c:
-- fix whitespace/bad indentation

qofquery.c:
-- fix query printing
-- fix buglet when mergeing two queries, and one is empty

qofquerycore.c:
-- some subroutine arguments should be const
-- add a handy-dandy qof_query_kvp_predicate_path() convenience routine

qofquerycore.h:
-- fix whitespace/bad indentation

qofsql.c:
qofsql.h:
-- add support for KVP in SQL queries
-- fix problems with GUID's in sql queries
-- separate query parse step from the query execute step

qofquery-serialize.c
qofquery-serialize.h
qofquery-deserial.c
qofquery-deserial.h:
-- Add new functions to turn a query into XML and back.
   (Oh, don't ask why, needed for a gnomevfs integration stunt)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9917 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-03 03:33:15 +00:00
Linas Vepstas
69a9ad0d4f fix the documentation surrounding the gnc_iso8601_to_timespec routine().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9916 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-02 22:04:07 +00:00
Linas Vepstas
44ba8cf418 change usage of iso8601_to_timespec_local to ..._gmt(). The old
routine returned the GMT time. The new routine will return the GMT time.
Thus, this change is a no-op


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9914 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-02 21:37:46 +00:00
Linas Vepstas
9df12db62f the olc is8601_to_timespec_local was returning GMT. The new
iso8601_to_gmt is going to return GMT.  So this net
result should be no change


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9913 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-02 20:52:34 +00:00
Linas Vepstas
9a5a234b02 The old gnc_iso8601_to_timespec_local() was actually returning the
GMT time.  The new gnc_iso8601_to_timespec_gmt() is going to return
the GMT time.  Thus, the net result of this change will be a no-op.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9912 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-02 20:49:37 +00:00
Linas Vepstas
ef0e3ff946 The old gmc_iso8601_to_timespec_local was actually
returning the GMT time.  The new gmc_iso8601_to_timespec_gmt()
is going to return GMT.  So after these changes, there will be
no function change to this routine.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9911 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-02 20:41:48 +00:00
Linas Vepstas
b05ba5a9bb Time conversion test case was broken;
thus incorrect time conversion test was passing
due to broken test case :-(

Add additional checks to make sure that zero-hour GMT really does
convert to zero-seconds.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9909 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-05-02 18:41:22 +00:00