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
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
Derek Atkins
0f0080c964
Integration of the new Query subsystem, to replace the old Query
...
infrastructure. This also replaces the old "Find Transaction"
dialog with the new gnome-search dialog. Registers, Reports, SXs,
etc. all test out fine. Integration with SQL has been "done"
(i.e. it compiles cleanly) but not "tested." Lots of the old code
is still there, but #ifdef'ed out. That code will go away
shortly.
There is only one known loss-of-functionality: the query->xml-v1
converter was not re-implemented. The current intention is, if
this functionality is required, to use the query->scm converter
and then convert the scm->string and insert that into an XML
document.
Fix a Transaction Void bug.
Fix a few bugs in test code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6951 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-05 21:59:35 +00:00
Dave Peticolas
d4a459b968
Peter O'Gorman's patch for Max OS X.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6674 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-30 07:38:35 +00:00
Dave Peticolas
dbcc5528c5
Remove unneeded include.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6494 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-02 23:35:19 +00:00
Linas Vepstas
dad6b1f29e
add missing include
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6488 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-02 20:53:29 +00:00
Linas Vepstas
8819597b9d
cosmetic renaming of PR_AMOUNT->PR_VALUE
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6486 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-02 20:20:37 +00:00
Linas Vepstas
20f13f9cd2
uhh, never mind, revert the last patch
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6475 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-02 06:31:49 +00:00
Linas Vepstas
9c12b44817
commodities belong to books
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6471 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-02 04:28:32 +00:00
Dave Peticolas
a02f6e3f4d
* src/backend/postgres/test/test-db.c: test rollback
...
* src/engine/Transaction.c: fix bug in transaction rollback
* src/engine/test-core/test-engine-stuff.h: add test routine
* src/engine/test-core/test-engine-stuff.c: add test routine
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6413 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-26 07:14:44 +00:00
Dave Peticolas
ab80a5712f
Fix bugs.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6269 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-07 11:10:22 +00:00
Dave Peticolas
4a67dfe918
Remove acc_guid member from splits.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6262 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-06 09:30:25 +00:00
Dave Peticolas
277b4757a7
Add more account queries to make_trans_query.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6139 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-29 11:09:33 +00:00
Dave Peticolas
6b9dee0392
fix bug
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6055 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 09:38:15 +00:00
Linas Vepstas
381504ad5a
fix test cases that are wildly misusing internal routines with great borkeness.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6054 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 09:10:17 +00:00
Dave Peticolas
fed69ff72c
Fix bugs with new book pointers.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6053 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 09:05:23 +00:00
Derek Atkins
788d998d6b
convert GNCIdType from an enum to a char*
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6035 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 02:20:34 +00:00
Linas Vepstas
1ea3b0dbfa
add kvp_frame to books; fix misc session->book bugs
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6020 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-24 18:22:57 +00:00
Dave Peticolas
860adf103c
Move entity tables from sessions to books.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6018 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-24 12:10:42 +00:00
Dave Peticolas
393ff20342
random_timespec_usec_resolution: new func.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5987 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-23 23:45:45 +00:00
Dave Peticolas
48c7533a8d
Prohibit blank kvp keys.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5975 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-22 07:51:06 +00:00
Dave Peticolas
6f28287eac
Derek Atkins's patch implementing kvp timespecs in C & scheme.
...
Implement kvp timespecs in xml.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5942 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-21 09:49:02 +00:00
Dave Peticolas
9ab5664185
Add explicit types to GUID queries.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5862 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-14 09:07:49 +00:00
Dave Peticolas
82e3d5368f
Implement kvp queries in postgres backend.
...
Fix PR_GUID queries in postgres backend.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5804 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-09 11:50:29 +00:00
Dave Peticolas
96254db7a0
Fix bug.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5782 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-07 09:56:15 +00:00
Dave Peticolas
fb1a5ad357
Add voided transactions to random mix.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5779 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-07 08:59:30 +00:00
Dave Peticolas
6b967f410b
Allow prices to be excluded on trans queries.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5778 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-07 08:05:16 +00:00
Dave Peticolas
f82f95a0a2
Refactor make_trans_query into engine test-core.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5775 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-06 10:22:42 +00:00
Dave Peticolas
86c55a3e22
Fix query<->scm for new kvp queries.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5772 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-06 00:49:46 +00:00
Dave Peticolas
8098a8eacb
Fix bug.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5708 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-22 09:01:04 +00:00
Dave Peticolas
59e09a47db
Don't insert account into itself.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5692 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-18 22:45:59 +00:00
Dave Peticolas
d3b6891061
Make random changes to prices & commodities.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5684 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-18 09:33:01 +00:00
Dave Peticolas
e362863787
Test adding new transactions & rolling back changed transactions.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5679 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-17 23:35:52 +00:00
Dave Peticolas
27ddcdf45e
Only use valid account types when creating random accounts.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5672 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-17 09:56:07 +00:00
Dave Peticolas
0f43b340f3
Remove warning.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5663 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-17 01:29:42 +00:00
Dave Peticolas
9afc2fc598
2001-10-16 Dave Peticolas <dave@krondo.com>
...
* src/engine/test-core/test-engine-stuff.c: work on test
infrastructure for making changes to existing data
* src/engine/gnc-book.c: keep backends up to date
* src/engine/gnc-session.c: keep backends up to date
* src/backend/postgres/test/db-control.sh: bring down postmaster
on database create and destroy
* src/backend/postgres/test/test-db.c: work on single-update
test
* src/backend/postgres/txn.c: fix bug -- when deleting splits
from the database that aren't in the engine, can't use
xaccSplitLookup.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5661 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-16 09:13:07 +00:00
Dave Peticolas
bcae323c49
Work on test infrastructure.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5658 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-16 00:50:01 +00:00
Dave Peticolas
4d915c5e8c
2001-10-13 Dave Peticolas <dave@krondo.com>
...
* src/guile/Makefile.am (libgncguile_la_LIBADD): remove gncgnome.la
dependency
* src/engine/test-core/test-engine-stuff.c (get_random_timespec):
add flag to always set nsec to 0.
(get_random_transaction_with_currency): new func
(add_random_transactions_to_session): new func
* src/backend/postgres/test/db-control.sh: add 'connect' argument
to start psql connection
* src/backend/postgres/test/test-db.c: add random transactions
to the mix
* src/backend/postgres/account.c (pgendStoreAccountNoLock): expound
on commodity table comment
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5596 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-13 08:09:30 +00:00
Dave Peticolas
1506523cf6
2001-10-12 Dave Peticolas <dave@krondo.com>
...
* src/test-core/test-stuff.c (get_random_string_without): new func
* src/engine/test-core/test-engine-stuff.c
(get_random_kvp_frame_depth): fix bug
(get_random_session): new func
* src/engine/Account.c (xaccAccountEqual): more warnings, use
gnc_commodity_equal
* src/engine/Group.c (xaccGroupEqual): more warnings
* src/engine/Transaction.c: use gnc_commodity_equal
* src/engine/gnc-book.c (gnc_book_equal): compare commodity tables
* src/engine/gnc-commodity.c (gnc_commodity_equal): new func
(gnc_commodity_table_equal): new func
* src/engine/gnc-session.c (gnc_session_begin): destroy old backend
* src/backend/postgres/test/.cvsignore: ignore test files
* src/backend/postgres/test/Makefile.am: add file backend .la
to get symbols for gdb
* src/backend/postgres/test/run-tests.sh: remove test files
before starting test
* src/backend/postgres/test/test-db.c: when books differ, write
out xml files
* src/backend/file/test/test-xml-account.c (test_add_account):
fix for strong commodity equal test
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5581 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-12 10:50:35 +00:00
Dave Peticolas
df3be03bd4
2001-10-10 Dave Peticolas <dave@krondo.com>
...
* src/engine/test-core/test-engine-stuff.c
(get_random_kvp_frame_depth): use set kvp max elements number
* src/engine/Account.c (xaccAccountEqual): add warning strings
* src/engine/Group.c (xaccGroupEqual): add warning strings
* src/engine/gnc-book.c (gnc_book_equal): add warning strings
* src/engine/kvp_frame.c: treat empty frames as NULL
* src/backend/postgres/test/run-tests.sh: enable test
* src/backend/postgres/test/test-db.c (main): enable test
* src/backend/file/test/test-kvp-frames.c (test_kvp_xml_stuff):
print more debugging output
* src/backend/file/sixtp-dom-generators.c (add_kvp_value_node):
fix bug generating kvp string values (they weren't being escaped)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5490 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-10 09:17:56 +00:00
Dave Peticolas
2408e0f983
Work on moving entity tables into sessions.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5468 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-06 08:12:55 +00:00
Dave Peticolas
c672e1960c
Work on moving entity tables into sessions.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5467 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-05 09:54:41 +00:00
Dave Peticolas
97b19d1878
Work on moving entity tables into sessions.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5466 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-05 08:35:04 +00:00
Dave Peticolas
114b5af306
Work on moving entity tables into sessions.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5464 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-04 08:17:14 +00:00
Dave Peticolas
2813e46549
Work on moving entity tables to sessions.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5463 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-04 00:36:28 +00:00
Dave Peticolas
e23fcf4fc5
Move commodity tables into GNCBooks instead of global data.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5460 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-03 10:07:45 +00:00
Dave Peticolas
aeff5c25de
Add GNCSession object. Refactor session code from GNCBook to GNCSession.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5455 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-02 09:10:35 +00:00
Dave Peticolas
77913bb212
Work on test infrastructure. Add gnc_book_equal().
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5452 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-01 08:24:07 +00:00
Dave Peticolas
85f1067f02
More work on test infrastructure.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5443 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-09-29 10:03:38 +00:00
Dave Peticolas
66e5b6b991
More work on test infrastructure.
...
Comment out vacuum analyze command,
it's not designed to be run so frequently.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5440 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-09-29 00:08:44 +00:00