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
* 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
* 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
-- 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
* 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-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
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
* 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
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
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
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
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
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
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
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
* src/report/report-system/html-utilities.scm:
Fix a broken recursion problem. Don't call show-acct? from
use-acct? so we don't recurse ad flictum. This recursive
call isn't necessary, just have use-acct? recurse unto itself.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9904 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/standard-reports/balance-sheet.scm:
* src/report/standard-reports/pnl.scm:
Fabien COELHO's zero-balance patch to remove accounts of
zero balance from the report.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9901 57a11ea4-9604-0410-9ed3-97b8803252fd
Same set of patches as before: replace naked function call pointers
for working with object parameters by 'clothed' paramters.
make clean; make; make install is required to get a functional system,
because these changes change structure sizes and offsets in the engine
libraries. If you don't make clean; you will probably get weird,
impossible-to-find crashes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9900 57a11ea4-9604-0410-9ed3-97b8803252fd
GnuCash; checked in here to keep gnucash in sync with qof files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9899 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/Transaction.c: fix a comment to better explain why
we have no-op functions for some parameters.
* src/engine/qof*: Revert Linas' patch from last night which
is broken is way too many ways to count. First, the code didn't
compile. Second it was calling functions that took one argument
with two due to broken casting. Third, it had repurcusions in
other sections of the code that Linas needs to take into account.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9898 57a11ea4-9604-0410-9ed3-97b8803252fd
to QofParam, so that the access func can be passed a type.
Time like these, I wish the C programming language had 'lambda'.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9896 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/macros/autogen.sh: Add MORE warnings around gettext because
some users STILL don't "get it".
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9894 57a11ea4-9604-0410-9ed3-97b8803252fd