mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2001-08-06 Bill Gribble <grib@billgribble.com>
* Added module/plugin system (src/gnc-module/*) * reshuffled source code from src/engine, src/register, and some from src/guile, src/scm, src/gnome (see src/README.modules). engine, backends, register, qif importer are now "modules". * unfinished new QIF import/export module (the old one's still there and still works) * really too many files touched to get into it. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5075 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
5805a1b5b9
commit
939f78a1cc
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
||||
2001-08-06 Bill Gribble <grib@billgribble.com>
|
||||
|
||||
* Added module/plugin system (src/gnc-module/*)
|
||||
|
||||
* reshuffled source code from src/engine, src/register, and some
|
||||
from src/guile, src/scm, src/gnome (see src/README.modules).
|
||||
engine, backends, register, qif importer are now "modules".
|
||||
|
||||
* unfinished new QIF import/export module (the old one's still
|
||||
there and still works)
|
||||
|
||||
* really too many files touched to get into it.
|
||||
|
||||
2001-08-06 Dave Peticolas <dave@krondo.com>
|
||||
|
||||
* src/register/table-html.[ch]: remove
|
||||
|
30
configure.in
30
configure.in
@ -205,7 +205,7 @@ AC_ARG_ENABLE( sql,
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT(yes)
|
||||
SQL_DIR=sql
|
||||
SQL_DIR=postgres
|
||||
],
|
||||
[
|
||||
AC_MSG_ERROR([Cannot find PostgreSQL libraries; will not build sql backend])
|
||||
@ -624,8 +624,15 @@ AC_OUTPUT(
|
||||
src/doc/Makefile
|
||||
src/doc/design/Makefile
|
||||
src/engine/Makefile
|
||||
src/engine/sql/Makefile
|
||||
src/engine/rpc/Makefile
|
||||
src/engine/test/Makefile
|
||||
src/backend/Makefile
|
||||
src/backend/file/Makefile
|
||||
src/backend/file/test/Makefile
|
||||
src/backend/file/test/test-files/Makefile
|
||||
src/backend/file/test/test-files/xml2/Makefile
|
||||
src/backend/postgres/Makefile
|
||||
src/backend/postgres/test/Makefile
|
||||
src/backend/rpc/Makefile
|
||||
src/experimental/Makefile
|
||||
src/experimental/cbb/Makefile
|
||||
src/experimental/cbb/cbb-engine/Makefile
|
||||
@ -635,23 +642,32 @@ AC_OUTPUT(
|
||||
src/experimental/ofx/dtd/Makefile
|
||||
src/experimental/ofx/explore/Makefile
|
||||
src/experimental/ofx/parser/Makefile
|
||||
src/gnc-module/Makefile
|
||||
src/gnc-module/test/Makefile
|
||||
src/gnc-module/test/mod-foo/Makefile
|
||||
src/gnc-module/test/mod-bar/Makefile
|
||||
src/gnc-module/test/mod-baz/Makefile
|
||||
src/gnc-module/test/misc-mods/Makefile
|
||||
src/gnome/Makefile
|
||||
src/gnome/glade/Makefile
|
||||
src/guile/Makefile
|
||||
src/import-export/Makefile
|
||||
src/import-export/qif-import/Makefile
|
||||
src/import-export/qif-io-core/Makefile
|
||||
src/import-export/qif-io-core/test/Makefile
|
||||
src/optional/Makefile
|
||||
src/optional/swig/Makefile
|
||||
src/pixmaps/Makefile
|
||||
src/quotes/Makefile
|
||||
src/register/Makefile
|
||||
src/register/gnome/Makefile
|
||||
src/register/ledger-core/Makefile
|
||||
src/register/register-core/Makefile
|
||||
src/register/register-gnome/Makefile
|
||||
src/scm/Makefile
|
||||
src/scm/gnumeric/Makefile
|
||||
src/scm/printing/Makefile
|
||||
src/scm/qif-import/Makefile
|
||||
src/scm/report/Makefile
|
||||
src/test/Makefile
|
||||
src/test/test-files/Makefile
|
||||
src/test/test-files/xml2/Makefile
|
||||
|
||||
dnl # non-makefiles
|
||||
dnl # Please read doc/build-system before adding *anything* here
|
||||
|
@ -266,13 +266,17 @@ exit(0);
|
||||
__DATA__
|
||||
|
||||
#*#
|
||||
*.P
|
||||
*.a
|
||||
*.bak
|
||||
*.bin
|
||||
*.diff
|
||||
*.diffs
|
||||
*.gmo
|
||||
*.la
|
||||
*.lai
|
||||
*.lo
|
||||
*.loT
|
||||
*.log
|
||||
*.mo
|
||||
*.moc
|
||||
|
@ -1,10 +1,13 @@
|
||||
|
||||
SUBDIRS = \
|
||||
doc \
|
||||
gnc-module \
|
||||
engine \
|
||||
backend \
|
||||
register \
|
||||
import-export \
|
||||
calculation \
|
||||
experimental \
|
||||
register \
|
||||
guile \
|
||||
gnome \
|
||||
scm \
|
||||
@ -23,13 +26,21 @@ bin_PROGRAMS = gnucash gnucash-make-guids
|
||||
# problem with the current version of gwrap, and will go away when
|
||||
# that's fixed.
|
||||
gnucash_LDADD = \
|
||||
gnome/libgncgnome.a \
|
||||
register/libgncregister.a \
|
||||
register/gnome/libgncregistergnome.a \
|
||||
-L${top_srcdir}/src/gnc-module/.libs \
|
||||
-L${top_srcdir}/src/engine/.libs \
|
||||
gnc-module/libgncmodule.la \
|
||||
engine/libgncmod-engine.la \
|
||||
engine/libgw-engine.la \
|
||||
engine/libgw-glib.la \
|
||||
backend/file/libgncmod-backend-file.la \
|
||||
register/ledger-core/libgncmod-ledger-core.la \
|
||||
register/register-core/libgncmod-register-core.la \
|
||||
register/register-gnome/libgncmod-register-gnome.la \
|
||||
import-export/qif-import/libgncmod-qif-import.la \
|
||||
guile/libgncguile.a \
|
||||
gnome/libgncgnome.a \
|
||||
calculation/libgnccalc.a \
|
||||
engine/libgncengine.la \
|
||||
guile/libgncguile.a \
|
||||
${GNOMEUI_LIBS} \
|
||||
${GNOME_LIBDIR} \
|
||||
${GNOME_PRINT_LIBS} \
|
||||
@ -44,8 +55,6 @@ gnucash_LDADD = \
|
||||
${EFENCE_LIBS}
|
||||
|
||||
gnucash_SOURCES = \
|
||||
MultiLedger.c \
|
||||
SplitLedger.c \
|
||||
EuroUtils.c \
|
||||
FileDialog.c \
|
||||
gnc-component-manager.c \
|
||||
@ -54,7 +63,10 @@ gnucash_SOURCES = \
|
||||
gnc-ui-util.c
|
||||
|
||||
gnucash_make_guids_LDADD = \
|
||||
engine/libgncengine.la \
|
||||
-L${top_srcdir}/src/gnc-module/.libs \
|
||||
-L${top_srcdir}/src/engine/.libs \
|
||||
gnc-module/libgncmodule.la \
|
||||
engine/libgncmod-engine.la \
|
||||
${DL_LIB} \
|
||||
${GNOME_XML_LIB} \
|
||||
${GLIB_LIBS} \
|
||||
@ -68,10 +80,7 @@ noinst_HEADERS = \
|
||||
EuroUtils.h \
|
||||
FileBox.h \
|
||||
FileDialog.h \
|
||||
MultiLedger.h \
|
||||
RecnWindow.h \
|
||||
RegWindow.h \
|
||||
SplitLedger.h \
|
||||
file-history.h \
|
||||
gnc-component-manager.h \
|
||||
gnc-exp-parser.h \
|
||||
@ -89,4 +98,6 @@ INCLUDES = \
|
||||
-I./calculation \
|
||||
-I./engine \
|
||||
-I./guile \
|
||||
-I./register
|
||||
-I./register \
|
||||
-I./gnc-module
|
||||
|
||||
|
28
src/README.modules
Normal file
28
src/README.modules
Normal file
@ -0,0 +1,28 @@
|
||||
'Modules' in Gnucash are relatively self-contained segments of code that
|
||||
can be dynamically loaded at runtime. Eventually we want the whole gnucash
|
||||
source tree to be a set of modules and the app itself to be a short Scheme
|
||||
program that loads them all.
|
||||
|
||||
We're not there yet :)
|
||||
|
||||
Here are the bits that have been converted to use the module system so
|
||||
far.
|
||||
|
||||
gnc-module The module system (actually not a module itself)
|
||||
|
||||
engine The engine module, without any backends
|
||||
|
||||
backend/file Binary and XML (v1 and v2) backends
|
||||
backend/postgres Postgres backend
|
||||
backend/rpc RPC backend
|
||||
|
||||
register/ledger-core The xacc SplitLedger and MultiLedger parts formerly
|
||||
in src/
|
||||
register/register-core Toolkit independent register code, formerly in
|
||||
src/register/
|
||||
register/register-gnome Gnome-specific register code, formerly in
|
||||
src/register/gnome
|
||||
|
||||
import-export/qif-import the old qif importer with Gnome druid
|
||||
import-export/qif-io-core new qif import/export module. unfinished.
|
||||
|
4
src/backend/Makefile.am
Normal file
4
src/backend/Makefile.am
Normal file
@ -0,0 +1,4 @@
|
||||
SUBDIRS=file ${SQL_DIR} ${RPC_DIR}
|
||||
|
||||
|
||||
|
18
src/backend/file/Makefile.am
Normal file
18
src/backend/file/Makefile.am
Normal file
@ -0,0 +1,18 @@
|
||||
SUBDIRS=. test
|
||||
|
||||
lib_LTLIBRARIES=libgncmod-backend-file.la
|
||||
|
||||
INCLUDES= -I../../engine -I../../gnc-module ${GLIB_CFLAGS} -I../..
|
||||
|
||||
libgncmod_backend_file_la_SOURCES= gncmod-backend-file.c \
|
||||
gnc-account-xml-v2.c gnc-backend-file.c gnc-commodity-xml-v2.c \
|
||||
gnc-freqspec-xml-v2.c gnc-pricedb-xml-v1.c gnc-schedxaction-xml-v2.c \
|
||||
gnc-transaction-xml-v2.c io-example-account.c io-gncbin-r.c \
|
||||
io-gncxml-gen.c io-gncxml-v1.c io-gncxml-v2.c io-utils.c \
|
||||
sixtp-dom-generators.c sixtp-dom-parsers.c sixtp-stack.c \
|
||||
sixtp-to-dom-parser.c sixtp-utils.c sixtp.c
|
||||
|
||||
libgncmod_backend_file_la_LDFLAGS=-module ${GLIB_LIBS} ${GNOME_XML_LIB}
|
||||
#libgncmod_backend_file_la_LIBADD = \
|
||||
#../../engine/libgncmod-engine.la \
|
||||
#../../gnc-module/libgncmodule.la
|
@ -1,3 +1,7 @@
|
||||
/*********************************************************************
|
||||
* gnc-backend-file.c
|
||||
*********************************************************************/
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <sys/stat.h>
|
||||
@ -192,8 +196,8 @@ file_all_sync(Backend* be, AccountGroup *ag, GNCPriceDB *pricedb)
|
||||
gnc_file_be_write_to_file((FileBackend*)be, TRUE);
|
||||
}
|
||||
|
||||
Backend*
|
||||
gncBackendInit_file(const char *book_id, void *data)
|
||||
Backend *
|
||||
gnc_backend_new(const char *book_id, void *data)
|
||||
{
|
||||
FileBackend *fbe;
|
||||
Backend *be;
|
@ -424,7 +424,7 @@ gnc_schedXaction_end_handler(gpointer data_for_children,
|
||||
|
||||
g_return_val_if_fail( tree, FALSE );
|
||||
|
||||
sx = xaccSchedXactionMalloc( NULL);
|
||||
sx = xaccSchedXactionMalloc( NULL );
|
||||
|
||||
/* FIXME: this should be removed somewhere near 1.8 release time. */
|
||||
{
|
||||
@ -447,11 +447,9 @@ gnc_schedXaction_end_handler(gpointer data_for_children,
|
||||
/* FIXME: this should be removed somewhere near 1.8 release time. */
|
||||
if ( sx->template_acct == NULL )
|
||||
{
|
||||
AccountGroup *ag;
|
||||
char *id;
|
||||
Account *acct;
|
||||
|
||||
ag = acct = id = NULL;
|
||||
AccountGroup *ag = NULL;
|
||||
char *id = NULL;
|
||||
Account *acct = NULL;
|
||||
|
||||
/* We're dealing with a pre-200107<near-end-of-month> rgmerk
|
||||
change re: storing template accounts. */
|
58
src/backend/file/gncmod-backend-file.c
Normal file
58
src/backend/file/gncmod-backend-file.c
Normal file
@ -0,0 +1,58 @@
|
||||
/*********************************************************************
|
||||
* gncmod-file-backend.c
|
||||
* module definition/initialization for the file backend module
|
||||
*
|
||||
* Copyright (c) 2001 Linux Developers Group, Inc.
|
||||
*********************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-module.h"
|
||||
|
||||
/* version of the gnc module system interface we require */
|
||||
int gnc_module_system_interface = 0;
|
||||
|
||||
/* module versioning uses libtool semantics. */
|
||||
int gnc_module_current = 0;
|
||||
int gnc_module_revision = 0;
|
||||
int gnc_module_age = 0;
|
||||
|
||||
GNCModule engine;
|
||||
|
||||
char *
|
||||
gnc_module_path(void)
|
||||
{
|
||||
return g_strdup("gnucash/backend/file");
|
||||
}
|
||||
|
||||
char *
|
||||
gnc_module_description(void)
|
||||
{
|
||||
return g_strdup("The binary and XML (v1 and v2) backends for Gnucash");
|
||||
}
|
||||
|
||||
int
|
||||
gnc_module_init(int refcount)
|
||||
{
|
||||
if(refcount == 0)
|
||||
{
|
||||
engine = gnc_module_load("gnucash/engine", 0);
|
||||
|
||||
if(!engine) return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int
|
||||
gnc_module_end(int refcount)
|
||||
{
|
||||
if((refcount == 0) && engine)
|
||||
{
|
||||
int unload = gnc_module_unload(engine);
|
||||
engine = NULL;
|
||||
return unload;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
45
src/backend/file/test/Makefile.am
Normal file
45
src/backend/file/test/Makefile.am
Normal file
@ -0,0 +1,45 @@
|
||||
TESTS = test-load-module test-dom-converters1 test-kvp-frames \
|
||||
test-string-converters test-xml-account test-xml2-is-file \
|
||||
test-load-xml2 test-load-example-account \
|
||||
test-xml-commodity test-xml-transaction test-real-data.sh
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
GNC_MODULE_PATH="${top_srcdir}/src/engine:${top_srcdir}/src/backend/file" \
|
||||
GUILE_LOAD_PATH="${G_WRAP_MODULE_DIR}:..:${top_srcdir}/src/gnc-module" \
|
||||
LTDL_LIBRARY_PATH=${top_srcdir}/src/gnc-module \
|
||||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${top_srcdir}/src/gnc-module:${top_srcdir}/src/gnc-module/.libs:${top_srcdir}/src/engine:${top_srcdir}/src/engine/.libs
|
||||
|
||||
noinst_PROGRAMS = test-dom-converters1 test-kvp-frames \
|
||||
test-string-converters test-xml-account test-xml2-is-file \
|
||||
test-load-xml2 test-load-example-account \
|
||||
test-xml-commodity test-xml-transaction test-save-in-lang
|
||||
|
||||
LDADD = -L../../../engine/.libs -lgncengine \
|
||||
-L../../../gnc-module/.libs \
|
||||
../../../engine/libgncmod-engine.la \
|
||||
../libgncmod-backend-file.la
|
||||
|
||||
CFLAGS=${GLIB_CFLAGS}
|
||||
INCLUDES=-I ../../../engine -I ../
|
||||
|
||||
|
||||
test_kvp_frames_SOURCES = test-kvp-frames.c test-stuff.c gnc-test-stuff.c
|
||||
|
||||
test_load_example_account_SOURCES = test-load-example-account.c test-stuff.c gnc-test-stuff.c
|
||||
|
||||
test_dom_converters1_SOURCES = test-dom-converters1.c test-stuff.c gnc-test-stuff.c
|
||||
|
||||
test_string_converters_SOURCES = test-string-converters.c test-stuff.c gnc-test-stuff.c
|
||||
|
||||
test_xml_account_SOURCES = test-xml-account.c test-stuff.c gnc-test-stuff.c
|
||||
|
||||
test_xml_commodity_SOURCES = test-xml-commodity.c test-stuff.c gnc-test-stuff.c
|
||||
|
||||
test_xml_transaction_SOURCES = test-xml-transaction.c test-stuff.c gnc-test-stuff.c
|
||||
|
||||
test_xml2_is_file_SOURCES = test-xml2-is-file.c test-stuff.c gnc-test-stuff.c
|
||||
|
||||
test_load_xml2_SOURCES = test-load-xml2.c test-stuff.c gnc-test-stuff.c
|
||||
|
||||
test_save_in_lang_SOURCES = test-save-in-lang.c test-stuff.c gnc-test-stuff.c
|
||||
|
18
src/backend/file/test/README
Normal file
18
src/backend/file/test/README
Normal file
@ -0,0 +1,18 @@
|
||||
These are tests of the file backend.
|
||||
|
||||
TESTS:
|
||||
------
|
||||
|
||||
test-dom-converters1.c: test each simple dom converter
|
||||
test-dom-parser1.c: unused now
|
||||
test-kvp-frames.c: test the kvp frame dom generators and parsers
|
||||
test-load-xml2.c: test the larger xml loading
|
||||
test-save-in-lang.c: incomplete test to test saving in different LANGs
|
||||
test-string-converters.c: test some string converters
|
||||
test-xml-account.c: test xml v2 converters and parsers for Account's
|
||||
test-xml-commodity.c: ditto gnc_commodity's
|
||||
test-xml-transaction.c: ditto Transaction's
|
||||
test-xml2-is-file.c: test the is_file function
|
||||
test-real-data.sh: run the test-xml-{account,commodity,transaction} programs
|
||||
on real data rather than random data
|
||||
|
1098
src/backend/file/test/gnc-test-stuff.c
Normal file
1098
src/backend/file/test/gnc-test-stuff.c
Normal file
File diff suppressed because it is too large
Load Diff
89
src/backend/file/test/gnc-test-stuff.h
Normal file
89
src/backend/file/test/gnc-test-stuff.h
Normal file
@ -0,0 +1,89 @@
|
||||
/* Created by bstanley 20010323
|
||||
* moved contents from test-stuff.h
|
||||
*
|
||||
* This file declares testing functions which rely on other parts
|
||||
* of gnucash.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef GNC_TEST_STUFF_H
|
||||
#define GNC_TEST_STUFF_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "test-stuff.h"
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "io-gncxml-gen.h"
|
||||
#include "sixtp.h"
|
||||
|
||||
#include "gnc-commodity.h"
|
||||
#include "gnc-pricedb.h"
|
||||
#include "guid.h"
|
||||
#include "kvp_frame.h"
|
||||
#include "date.h"
|
||||
#include "Account.h"
|
||||
#include "Query.h"
|
||||
|
||||
gchar get_random_character(void);
|
||||
gchar* get_random_string(void);
|
||||
Timespec* get_random_timespec(void);
|
||||
kvp_value* get_random_kvp_value(int type);
|
||||
|
||||
struct _bin_data
|
||||
{
|
||||
guchar *data;
|
||||
int len;
|
||||
};
|
||||
typedef struct _bin_data bin_data;
|
||||
|
||||
bin_data* get_random_binary_data(void);
|
||||
|
||||
kvp_frame* get_random_kvp_frame(void);
|
||||
gint64 get_random_gint64(void);
|
||||
double get_random_double(void);
|
||||
gnc_numeric get_random_gnc_numeric(void);
|
||||
gnc_commodity* get_random_gnc_commodity_ref(void);
|
||||
GUID* get_random_guid(void);
|
||||
GList* get_random_glist(void);
|
||||
gint get_random_int_in_range(int start, int end);
|
||||
const char* get_random_string_in_array(const char* str_list[]);
|
||||
gboolean get_random_boolean(void);
|
||||
|
||||
GNCPrice * get_random_price(void);
|
||||
Account* get_random_account(void);
|
||||
Split* get_random_split(gnc_numeric num);
|
||||
Transaction* get_random_transaction(void);
|
||||
gnc_commodity* get_random_commodity(void);
|
||||
const char *get_random_commodity_namespace(void);
|
||||
|
||||
Query* get_random_query(void);
|
||||
|
||||
/**/
|
||||
void write_dom_node_to_file(xmlNodePtr node, int fd);
|
||||
|
||||
int files_compare(const gchar* f1, const gchar* f2);
|
||||
|
||||
gboolean print_dom_tree(gpointer data_for_children, GSList* data_from_children,
|
||||
GSList* sibling_data, gpointer parent_data,
|
||||
gpointer global_data, gpointer *result,
|
||||
const gchar *tag);
|
||||
|
||||
/**/
|
||||
gboolean check_dom_tree_version(xmlNodePtr node, gchar *verstr);
|
||||
gboolean equals_node_val_vs_string(xmlNodePtr node, const gchar* str);
|
||||
gboolean equals_node_val_vs_guid(xmlNodePtr node, const GUID *id);
|
||||
gboolean equals_node_val_vs_commodity(xmlNodePtr node,
|
||||
const gnc_commodity *com);
|
||||
gboolean equals_node_val_vs_kvp_frame(xmlNodePtr node, const kvp_frame *frm);
|
||||
gboolean equals_node_val_vs_date(xmlNodePtr node, const Timespec tm);
|
||||
gboolean equals_node_val_vs_int(xmlNodePtr node, gint64 val);
|
||||
|
||||
void
|
||||
test_files_in_dir(int argc, char **argv, gxpf_callback cb,
|
||||
sixtp *parser, const char *parser_tag);
|
||||
|
||||
#endif /* GNC_TEST_STUFF_H */
|
51
src/backend/file/test/grab-types.pl
Normal file
51
src/backend/file/test/grab-types.pl
Normal file
@ -0,0 +1,51 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
use strict;
|
||||
|
||||
my $tag = shift @ARGV;
|
||||
my $filename = shift @ARGV;
|
||||
my $file_to_write_to_pattern = shift @ARGV;
|
||||
my $files_written = "";
|
||||
|
||||
open(XMLFILE, $filename);
|
||||
|
||||
sub write_file
|
||||
{
|
||||
my $data = shift;
|
||||
my $num = shift;
|
||||
|
||||
my $towriteto = $file_to_write_to_pattern;
|
||||
$towriteto =~ s/XXX/$num/;
|
||||
|
||||
open(TOWRITE, ">$towriteto");
|
||||
|
||||
print TOWRITE $data;
|
||||
|
||||
close TOWRITE;
|
||||
|
||||
$files_written .= " $towriteto";
|
||||
}
|
||||
|
||||
my $xml_header = "<?xml version=\"1.0\"?>\n<gnc-v2>\n";
|
||||
my $to_write = $xml_header;
|
||||
my $grabbing = 0;
|
||||
my $grab_num = 0;
|
||||
|
||||
while (<XMLFILE>) {
|
||||
if ($grabbing) {
|
||||
$to_write .= $_;
|
||||
if ($_ =~ m/\<\/$tag\>/) {
|
||||
$to_write .= "</gnc-v2>\n";
|
||||
write_file($to_write, $grab_num);
|
||||
$to_write = $xml_header;
|
||||
$grab_num++;
|
||||
$grabbing = 0;
|
||||
}
|
||||
}
|
||||
elsif ($_ =~ m/\<$tag .*\>/) {
|
||||
$grabbing = 1;
|
||||
$to_write .= $_;
|
||||
}
|
||||
}
|
||||
|
||||
print $files_written
|
254
src/backend/file/test/test-dom-converters1.c
Normal file
254
src/backend/file/test/test-dom-converters1.c
Normal file
@ -0,0 +1,254 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-test-stuff.h"
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "gnc-engine-util.h"
|
||||
#include "sixtp.h"
|
||||
#include "sixtp-parsers.h"
|
||||
#include "sixtp-utils.h"
|
||||
#include "sixtp-dom-parsers.h"
|
||||
#include "sixtp-dom-generators.h"
|
||||
|
||||
#include "gnc-commodity.h"
|
||||
#include "guid.h"
|
||||
|
||||
static void
|
||||
test_dom_tree_to_commodity_ref(void)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < 20; i++)
|
||||
{
|
||||
gnc_commodity *test_com1;
|
||||
gchar *test_str1;
|
||||
gchar *test_str2;
|
||||
gnc_commodity *test_com2;
|
||||
xmlNodePtr test_node;
|
||||
|
||||
test_str1 = get_random_string();
|
||||
test_str2 = get_random_string();
|
||||
|
||||
test_com1 = gnc_commodity_new(NULL, test_str1, test_str2, NULL, 0);
|
||||
test_node = commodity_ref_to_dom_tree("test-com", test_com1);
|
||||
|
||||
test_com2 = dom_tree_to_commodity_ref_no_engine(test_node);
|
||||
|
||||
do_test(gnc_commodity_equiv(test_com1, test_com2),
|
||||
"dom_tree_to_commodity_ref_no_engine");
|
||||
|
||||
xmlFreeNode(test_node);
|
||||
gnc_commodity_destroy(test_com1);
|
||||
gnc_commodity_destroy(test_com2);
|
||||
g_free(test_str1);
|
||||
g_free(test_str2);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
test_dom_tree_to_text(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for(i = 0; i < 20; i++)
|
||||
{
|
||||
gchar *test_string1;
|
||||
gchar *test_string2;
|
||||
xmlNodePtr test_node;
|
||||
|
||||
test_node = xmlNewNode(NULL, "test-node");
|
||||
test_string1 = get_random_string();
|
||||
|
||||
xmlNodeAddContent(test_node, test_string1);
|
||||
|
||||
test_string2 = dom_tree_to_text(test_node);
|
||||
|
||||
if(!test_string2)
|
||||
{
|
||||
failure_args("dom_tree_to_text", __FILE__, __LINE__,
|
||||
"null return from dom_tree_to_text");
|
||||
xmlElemDump(stdout, NULL, test_node);
|
||||
}
|
||||
else if(safe_strcmp(test_string1, test_string2) == 0)
|
||||
{
|
||||
success_args("dom_tree_to_text", __FILE__, __LINE__, "with string %s",
|
||||
test_string1);
|
||||
}
|
||||
else
|
||||
{
|
||||
failure_args("dom_tree_to_text", __FILE__, __LINE__,
|
||||
"with string %s", test_string1);
|
||||
}
|
||||
|
||||
xmlFreeNode(test_node);
|
||||
g_free(test_string1);
|
||||
if(test_string2) g_free(test_string2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
test_dom_tree_to_timespec(void)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < 20; i++)
|
||||
{
|
||||
Timespec *test_spec1;
|
||||
Timespec *test_spec2;
|
||||
xmlNodePtr test_node;
|
||||
|
||||
test_spec1 = get_random_timespec();
|
||||
|
||||
test_node = timespec_to_dom_tree("test-spec", test_spec1);
|
||||
|
||||
test_spec2 = dom_tree_to_timespec(test_node);
|
||||
|
||||
if(test_spec2 == NULL)
|
||||
{
|
||||
failure_args("dom_tree_to_timespec",
|
||||
__FILE__, __LINE__, "NULL return");
|
||||
printf("Node looks like:\n");
|
||||
xmlElemDump(stdout, NULL, test_node);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
else if(timespec_cmp(test_spec1, test_spec2) == 0)
|
||||
{
|
||||
success("dom_tree_to_timespec");
|
||||
}
|
||||
else
|
||||
{
|
||||
failure("dom_tree_to_timespec");
|
||||
printf("Node looks like:\n");
|
||||
xmlElemDump(stdout, NULL, test_node);
|
||||
printf("\n");
|
||||
printf("Secs are %lld vs %lld :: ",
|
||||
test_spec1->tv_sec,
|
||||
test_spec2->tv_sec);
|
||||
printf("NSecs are %ld vs %ld\n",
|
||||
test_spec1->tv_nsec,
|
||||
test_spec2->tv_nsec);
|
||||
}
|
||||
|
||||
g_free(test_spec1);
|
||||
g_free(test_spec2);
|
||||
xmlFreeNode(test_node);
|
||||
}
|
||||
}
|
||||
|
||||
static gchar *
|
||||
test_gnc_nums_internal(gnc_numeric to_test)
|
||||
{
|
||||
gchar *ret = NULL;
|
||||
gnc_numeric *to_compare = NULL;
|
||||
xmlNodePtr to_gen = NULL;
|
||||
|
||||
to_gen = gnc_numeric_to_dom_tree("test-num", &to_test);
|
||||
if(!to_gen)
|
||||
{
|
||||
ret = "no dom tree created";
|
||||
}
|
||||
else
|
||||
{
|
||||
to_compare = dom_tree_to_gnc_numeric(to_gen);
|
||||
if(!to_compare)
|
||||
{
|
||||
ret = "no gnc_numeric parsed";
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!gnc_numeric_equal(to_test, *to_compare))
|
||||
{
|
||||
ret = "numerics compared different";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(to_compare)
|
||||
{
|
||||
g_free(to_compare);
|
||||
}
|
||||
if(to_gen)
|
||||
{
|
||||
xmlFreeNode(to_gen);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
test_dom_tree_to_gnc_numeric(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for(i = 0; i < 20; i++)
|
||||
{
|
||||
gchar *message = NULL;
|
||||
|
||||
message = test_gnc_nums_internal(get_random_gnc_numeric());
|
||||
|
||||
do_test_args(message == NULL, "dom_tree_to_gnc_numeric",
|
||||
__FILE__, __LINE__, message);
|
||||
}
|
||||
|
||||
{
|
||||
gchar *message = NULL;
|
||||
|
||||
message = test_gnc_nums_internal
|
||||
(gnc_numeric_create(18768786810, 100000));
|
||||
|
||||
do_test_args(message == NULL, "gnc_num 18768786810/100000",
|
||||
__FILE__, __LINE__, message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
test_dom_tree_to_guid(void)
|
||||
{
|
||||
int i;
|
||||
for(i = 0;i < 20; i++)
|
||||
{
|
||||
GUID *test_guid1;
|
||||
GUID *test_guid2;
|
||||
xmlNodePtr test_node;
|
||||
|
||||
test_guid1 = get_random_guid();
|
||||
|
||||
if (!(test_node = guid_to_dom_tree("test-guid", test_guid1)))
|
||||
{
|
||||
failure_args("guid_to_dom_tree", __FILE__, __LINE__,
|
||||
"conversion to dom tree failed");
|
||||
}
|
||||
|
||||
test_guid2 = dom_tree_to_guid(test_node);
|
||||
|
||||
do_test(guid_equal(test_guid1, test_guid2),
|
||||
"dom_tree_to_guid" );
|
||||
|
||||
xmlFreeNode(test_node);
|
||||
g_free(test_guid1);
|
||||
g_free(test_guid2);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
test_dom_tree_to_guid();
|
||||
fflush(stdout);
|
||||
test_dom_tree_to_commodity_ref();
|
||||
fflush(stdout);
|
||||
test_dom_tree_to_text();
|
||||
fflush(stdout);
|
||||
test_dom_tree_to_timespec();
|
||||
fflush(stdout);
|
||||
test_dom_tree_to_gnc_numeric();
|
||||
fflush(stdout);
|
||||
print_test_results();
|
||||
exit(get_rv());
|
||||
}
|
14
src/backend/file/test/test-dom-parser1-1.xml
Normal file
14
src/backend/file/test/test-dom-parser1-1.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<foobar>
|
||||
<blah anattr="my oh my">
|
||||
<this>
|
||||
is a silly idea
|
||||
</this>
|
||||
<there att1="try one" att2="try two">is nothing you can do</there>
|
||||
<but>
|
||||
I'll try to shoot</but>
|
||||
</blah>
|
||||
<you>
|
||||
<in>the foot</in>
|
||||
</you>
|
||||
</foobar>
|
73
src/backend/file/test/test-dom-parser1.c
Normal file
73
src/backend/file/test/test-dom-parser1.c
Normal file
@ -0,0 +1,73 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#include "gnc-test-stuff.h"
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "sixtp.h"
|
||||
#include "sixtp-parsers.h"
|
||||
#include "sixtp-utils.h"
|
||||
|
||||
static void parse_file(char *filename, sixtp *parser);
|
||||
|
||||
static sixtp*
|
||||
get_parser1_1_parser1(void)
|
||||
{
|
||||
sixtp *ret;
|
||||
|
||||
ret = sixtp_new();
|
||||
g_return_val_if_fail(ret, NULL);
|
||||
sixtp_set_chars(ret, allow_and_ignore_only_whitespace);
|
||||
|
||||
sixtp_add_sub_parser(ret, "foobar",
|
||||
sixtp_dom_parser_new(print_dom_tree, NULL, NULL));
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static sixtp*
|
||||
simple_parser(void)
|
||||
{
|
||||
sixtp*ret;
|
||||
ret = sixtp_new();
|
||||
sixtp_set_chars(ret, allow_and_ignore_only_whitespace);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static sixtp*
|
||||
get_parser1_1_parser2(void)
|
||||
{
|
||||
sixtp *ret;
|
||||
sixtp *foobarer;
|
||||
|
||||
ret = simple_parser();
|
||||
foobarer = simple_parser();
|
||||
|
||||
sixtp_add_sub_parser(ret, "foobar", foobarer);
|
||||
sixtp_add_sub_parser(foobarer, "blah",
|
||||
sixtp_dom_parser_new(print_dom_tree, NULL, NULL));
|
||||
sixtp_add_sub_parser(foobarer, "you",
|
||||
sixtp_dom_parser_new(print_dom_tree, NULL, NULL));
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
parse_file("test-dom-parser1-1.xml", get_parser1_1_parser1());
|
||||
parse_file("test-dom-parser1-1.xml", get_parser1_1_parser2());
|
||||
exit(0);
|
||||
}
|
||||
|
||||
static void
|
||||
parse_file(char *filename, sixtp* parser)
|
||||
{
|
||||
printf("STARTING: %s\n", filename);
|
||||
sixtp_parse_file(parser, filename, NULL, (gpointer)stdout, NULL);
|
||||
printf("\nENDING: %s\n", filename);
|
||||
sixtp_destroy(parser);
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
.deps
|
1
src/backend/file/test/test-files/Makefile.am
Normal file
1
src/backend/file/test/test-files/Makefile.am
Normal file
@ -0,0 +1 @@
|
||||
SUBDIRS = xml2
|
3
src/backend/file/test/test-files/xml1/.cvsignore
Normal file
3
src/backend/file/test/test-files/xml1/.cvsignore
Normal file
@ -0,0 +1,3 @@
|
||||
*.LNK
|
||||
*.LCK
|
||||
*.xac
|
4968
src/backend/file/test/test-files/xml1/Money95bank_fr.gml
Normal file
4968
src/backend/file/test/test-files/xml1/Money95bank_fr.gml
Normal file
File diff suppressed because it is too large
Load Diff
321
src/backend/file/test/test-files/xml1/Money95invst.gml
Normal file
321
src/backend/file/test/test-files/xml1/Money95invst.gml
Normal file
@ -0,0 +1,321 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc>
|
||||
<version>1</version>
|
||||
<ledger-data>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Compte courant</name>
|
||||
<guid>a68387e637bb8e7405bc949764b9aefd</guid>
|
||||
<type>BANK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>USD</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Livret bleu</name>
|
||||
<guid>cec92cd077aee62305910cfd929cc341</guid>
|
||||
<type>BANK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>USD</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Retained Earnings</name>
|
||||
<guid>afed1334dfcdc53865cafe61edbb0fc6</guid>
|
||||
<type>EQUITY</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>USD</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>ad7c592d0603871110acb8f2c7bcd215</guid>
|
||||
<date-posted>
|
||||
<s>1995-01-26 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:28:38 -0500</s>
|
||||
<ns>31238000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>524f8a36ece0437ba8b27284a2b78e06</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-250000/100</value>
|
||||
<quantity>-250000/100</quantity>
|
||||
<account>a68387e637bb8e7405bc949764b9aefd</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>4b93c9e41c978f00b3c4e0de5fa2fbef</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>250000/100</value>
|
||||
<quantity>250000/100</quantity>
|
||||
<account>cec92cd077aee62305910cfd929cc341</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>9c381dc6f595933f06ff11b574333f44</guid>
|
||||
<date-posted>
|
||||
<s>1995-02-26 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:28:38 -0500</s>
|
||||
<ns>32417000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>85f79dde160ba7f2f021d95d190b34c3</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-300000/100</value>
|
||||
<quantity>-300000/100</quantity>
|
||||
<account>a68387e637bb8e7405bc949764b9aefd</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>98b2c538910821d9cf37a9bff01ef60b</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>300000/100</value>
|
||||
<quantity>300000/100</quantity>
|
||||
<account>cec92cd077aee62305910cfd929cc341</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>3fd5cdd6a6772412d702124c1a786ef3</guid>
|
||||
<date-posted>
|
||||
<s>1995-03-26 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:28:38 -0500</s>
|
||||
<ns>33369000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>535b36edb9230c04b575034bde669ea3</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-300000/100</value>
|
||||
<quantity>-300000/100</quantity>
|
||||
<account>a68387e637bb8e7405bc949764b9aefd</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>249fbfb7601774a1f089f030299c8a3f</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>300000/100</value>
|
||||
<quantity>300000/100</quantity>
|
||||
<account>cec92cd077aee62305910cfd929cc341</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>ebff5d6fbfd69632db47a362789035c0</guid>
|
||||
<date-posted>
|
||||
<s>1995-04-26 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:28:38 -0500</s>
|
||||
<ns>34356000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>8f559a4b006fd31a238fc1c1819b911e</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-300000/100</value>
|
||||
<quantity>-300000/100</quantity>
|
||||
<account>a68387e637bb8e7405bc949764b9aefd</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>adda51b98341607acccbe48bc1c37dff</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>300000/100</value>
|
||||
<quantity>300000/100</quantity>
|
||||
<account>cec92cd077aee62305910cfd929cc341</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>4d44e44e9b16a58c562e0d938e58a69d</guid>
|
||||
<date-posted>
|
||||
<s>1995-05-26 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:28:38 -0500</s>
|
||||
<ns>36554000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>f7ff3dbb314786218f638276f8b3c3a8</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-300000/100</value>
|
||||
<quantity>-300000/100</quantity>
|
||||
<account>a68387e637bb8e7405bc949764b9aefd</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>e8a489904a8a4e684d7054fba8b288f2</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>300000/100</value>
|
||||
<quantity>300000/100</quantity>
|
||||
<account>cec92cd077aee62305910cfd929cc341</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>328e2319a21e15c8eaac3c5ae9e2f8d7</guid>
|
||||
<date-posted>
|
||||
<s>1995-06-26 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:28:38 -0500</s>
|
||||
<ns>37673000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>15e631fad619fffe13e291ca187bd7c9</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-300000/100</value>
|
||||
<quantity>-300000/100</quantity>
|
||||
<account>a68387e637bb8e7405bc949764b9aefd</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>d2e699960572bca531413fd4fcd530a3</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>300000/100</value>
|
||||
<quantity>300000/100</quantity>
|
||||
<account>cec92cd077aee62305910cfd929cc341</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>2f70aee8552b4929b9009a4cde3f3095</guid>
|
||||
<date-posted>
|
||||
<s>1995-07-26 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:28:38 -0500</s>
|
||||
<ns>38685000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>33b9ddd3fa6d915ce6d8b8440d4cd1b3</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-250000/100</value>
|
||||
<quantity>-250000/100</quantity>
|
||||
<account>a68387e637bb8e7405bc949764b9aefd</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>53935088af8824f72ebcb29571443e2f</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>250000/100</value>
|
||||
<quantity>250000/100</quantity>
|
||||
<account>cec92cd077aee62305910cfd929cc341</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>4564825b74f81412d309a8eb8cc58222</guid>
|
||||
<date-posted>
|
||||
<s>1995-11-12 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:28:38 -0500</s>
|
||||
<ns>39707000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>912aa7c8f0c8c01fdedd4c44ac7c4ade</guid>
|
||||
<memo>Pour équilibrage</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>450000/100</value>
|
||||
<quantity>450000/100</quantity>
|
||||
<account>a68387e637bb8e7405bc949764b9aefd</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>d8d24b073589acfda00585b67e2a4bf0</guid>
|
||||
<memo>Pour équilibrage</memo>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>-450000/100</value>
|
||||
<quantity>-450000/100</quantity>
|
||||
<account>cec92cd077aee62305910cfd929cc341</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>ec6f0cc19c5651db2c2dc8ff93efe697</guid>
|
||||
<date-posted>
|
||||
<s>1995-12-26 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:28:38 -0500</s>
|
||||
<ns>40707000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>11d0b29b056fc64215dbb37d0dfdd062</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-350000/100</value>
|
||||
<quantity>-350000/100</quantity>
|
||||
<account>a68387e637bb8e7405bc949764b9aefd</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>20dad7ae612bd303bc2d070bef3604ac</guid>
|
||||
<memo>Economies</memo>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>350000/100</value>
|
||||
<quantity>350000/100</quantity>
|
||||
<account>cec92cd077aee62305910cfd929cc341</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>f56c0707159f36caabc22df8ac71887a</guid>
|
||||
<date-posted>
|
||||
<s>1995-01-01 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:28:38 -0500</s>
|
||||
<ns>30261000</ns>
|
||||
</date-entered>
|
||||
<description>Opening Balance</description>
|
||||
<split>
|
||||
<guid>d20b8eff18aa85f3731145b77f0bc5de</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-14560800/100</value>
|
||||
<quantity>-14560800/100</quantity>
|
||||
<account>afed1334dfcdc53865cafe61edbb0fc6</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>9b4e17c7c367bf37367dda356a7e2670</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>14560800/100</value>
|
||||
<quantity>14560800/100</quantity>
|
||||
<account>cec92cd077aee62305910cfd929cc341</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
</ledger-data>
|
||||
</gnc>
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
174
src/backend/file/test/test-files/xml1/Money95mutual.gml
Normal file
174
src/backend/file/test/test-files/xml1/Money95mutual.gml
Normal file
@ -0,0 +1,174 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc>
|
||||
<version>1</version>
|
||||
<ledger-data>
|
||||
<commodity>
|
||||
<restore>
|
||||
<space>NYSE</space>
|
||||
<id>O-Sicav Plus</id>
|
||||
<name>O-Sicav Plus</name>
|
||||
<fraction>100000</fraction>
|
||||
</restore>
|
||||
</commodity>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Livret bleu</name>
|
||||
<guid>3bcb236af583d5bd7b6e0153fe97e7e3</guid>
|
||||
<type>BANK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>FRF</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Money95mfunds fr</name>
|
||||
<guid>89e091b3489a50957b400a868f101d59</guid>
|
||||
<type>STOCK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>FRF</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>O-Sicav Plus</name>
|
||||
<guid>e0e954412d6b31dfa1fcbb9937a125b0</guid>
|
||||
<type>STOCK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>FRF</id>
|
||||
</currency>
|
||||
<security>
|
||||
<space>NYSE</space>
|
||||
<id>O-Sicav Plus</id>
|
||||
</security>
|
||||
<parent>
|
||||
<guid>89e091b3489a50957b400a868f101d59</guid>
|
||||
</parent>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Commissions</name>
|
||||
<guid>41b9e953585cd5662712d62848e71789</guid>
|
||||
<type>EXPENSE</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>FRF</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Money95mfunds fr</name>
|
||||
<guid>c7a4746248d0677c6421077833477bba</guid>
|
||||
<type>EXPENSE</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>FRF</id>
|
||||
</currency>
|
||||
<parent>
|
||||
<guid>41b9e953585cd5662712d62848e71789</guid>
|
||||
</parent>
|
||||
</restore>
|
||||
</account>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>88ed4f76d273256aaa05eab3010731bf</guid>
|
||||
<date-posted>
|
||||
<s>1995-07-24 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:30:31 -0500</s>
|
||||
<ns>435420000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>df25dcb351c89a20062a5ea5d294e8e8</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>1828080/100</value>
|
||||
<quantity>6000000/100000</quantity>
|
||||
<account>e0e954412d6b31dfa1fcbb9937a125b0</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>a44971f955fa03a9318fff369962820a</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-2461820/100</value>
|
||||
<quantity>-2461820/100</quantity>
|
||||
<account>3bcb236af583d5bd7b6e0153fe97e7e3</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>1ec08747892bf80d01ff1dab46ccb150</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>633735/100</value>
|
||||
<quantity>633735/100</quantity>
|
||||
<account>c7a4746248d0677c6421077833477bba</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>21f58d6ddf8e529905db462291963e68</guid>
|
||||
<date-posted>
|
||||
<s>1995-10-08 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:30:31 -0500</s>
|
||||
<ns>436816000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>30f46d6ea24efb8f57ea386be57370c2</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>3051000/100</value>
|
||||
<quantity>9000000/100000</quantity>
|
||||
<account>e0e954412d6b31dfa1fcbb9937a125b0</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>15160cb2e5b32864c451842cde8ffcd9</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-3254400/100</value>
|
||||
<quantity>-3254400/100</quantity>
|
||||
<account>3bcb236af583d5bd7b6e0153fe97e7e3</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>66a01b46ebec63544ca133efa6706f6b</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>203400/100</value>
|
||||
<quantity>203400/100</quantity>
|
||||
<account>c7a4746248d0677c6421077833477bba</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>4cb943c207e102dbc22e5ef829bbc29d</guid>
|
||||
<date-posted>
|
||||
<s>1995-12-10 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:30:31 -0500</s>
|
||||
<ns>437989000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>27a56b13c4d24744f3cbb53329120abc</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>2053200/100</value>
|
||||
<quantity>6000000/100000</quantity>
|
||||
<account>e0e954412d6b31dfa1fcbb9937a125b0</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>19355bfa2d1208dd144aa7c32de06aa5</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-2053200/100</value>
|
||||
<quantity>-2053200/100</quantity>
|
||||
<account>3bcb236af583d5bd7b6e0153fe97e7e3</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
</ledger-data>
|
||||
</gnc>
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
866
src/backend/file/test/test-files/xml1/Money95stocks.gml
Normal file
866
src/backend/file/test/test-files/xml1/Money95stocks.gml
Normal file
@ -0,0 +1,866 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc>
|
||||
<version>1</version>
|
||||
<ledger-data>
|
||||
<commodity>
|
||||
<restore>
|
||||
<space>NYSE</space>
|
||||
<id>MSFT</id>
|
||||
<name>Microsoft</name>
|
||||
<fraction>100000</fraction>
|
||||
</restore>
|
||||
</commodity>
|
||||
<commodity>
|
||||
<restore>
|
||||
<space>NYSE</space>
|
||||
<id>USSA</id>
|
||||
<name>Usinor/Sacilor</name>
|
||||
<fraction>100000</fraction>
|
||||
</restore>
|
||||
</commodity>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Livret bleu</name>
|
||||
<guid>21db466b6be8b3f6a3043d0c0316de8c</guid>
|
||||
<type>BANK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>BRL</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Money95stocks fr</name>
|
||||
<guid>2a42eb5710ad4ddbf9352f070d603fe2</guid>
|
||||
<type>STOCK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>BRL</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Microsoft</name>
|
||||
<guid>c28902afc0e2168dab793b63dbf56e1f</guid>
|
||||
<type>STOCK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>BRL</id>
|
||||
</currency>
|
||||
<security>
|
||||
<space>NYSE</space>
|
||||
<id>MSFT</id>
|
||||
</security>
|
||||
<parent>
|
||||
<guid>2a42eb5710ad4ddbf9352f070d603fe2</guid>
|
||||
</parent>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Usinor/Sacilor</name>
|
||||
<guid>b3955645bed5651123986f415d0e81d6</guid>
|
||||
<type>STOCK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>BRL</id>
|
||||
</currency>
|
||||
<security>
|
||||
<space>NYSE</space>
|
||||
<id>USSA</id>
|
||||
</security>
|
||||
<parent>
|
||||
<guid>2a42eb5710ad4ddbf9352f070d603fe2</guid>
|
||||
</parent>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Unspecified</name>
|
||||
<guid>37d287c3550ab2810c386d1b33cc2d0b</guid>
|
||||
<type>INCOME</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>BRL</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Commissions</name>
|
||||
<guid>5efcfb966ef97810de2fbaaa2b352205</guid>
|
||||
<type>EXPENSE</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>BRL</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Money95stocks fr</name>
|
||||
<guid>da8e001155343694bd34f6aa248b1c28</guid>
|
||||
<type>EXPENSE</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>BRL</id>
|
||||
</currency>
|
||||
<parent>
|
||||
<guid>5efcfb966ef97810de2fbaaa2b352205</guid>
|
||||
</parent>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Retained Earnings</name>
|
||||
<guid>1aaa099850fe7a07e2b5ae97f18b9af2</guid>
|
||||
<type>EQUITY</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>BRL</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>67da2dc62331fb318640aa5a1a3da937</guid>
|
||||
<date-posted>
|
||||
<s>1995-01-01 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>563969000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>b05ab9cccb7addce264e3b5614f2d620</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>363849/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>58a836c409c2e4982bb89e9d98e6b65c</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>ef2ad6ef1a0d827db4b01caa6b340fbf</guid>
|
||||
<date-posted>
|
||||
<s>1995-01-16 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>569022000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>1395f3eb7d951d441962acee30ebb240</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>327773/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>b9cabeca13b398fb62a6d385ed4916a1</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>22b16ec9c03e00dd0150a22780426c93</guid>
|
||||
<date-posted>
|
||||
<s>1995-02-01 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>572348000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>c25135399d6f3f65e66ccdb541975a70</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>324101/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>f74b03f7a1b731f5a85afb2a99b11dc7</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>6fdeaddf8e62e0167f657eed23ea27c8</guid>
|
||||
<date-posted>
|
||||
<s>1995-02-16 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>576414000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>d6ac7052f05f821d4feeeda1ef746b65</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>321400/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>47c446ca0b094d087715591b7acefd76</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>e205d59680a7d1b3100c6f9c5fbd619c</guid>
|
||||
<date-posted>
|
||||
<s>1995-03-01 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>580193000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>8980728679535dcc6fbd5d0d3e187baf</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>320510/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>6757952464d7cf759ba6af1cedde80af</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>147fb5b3bf9c64a2cfa678b899617a1b</guid>
|
||||
<date-posted>
|
||||
<s>1995-03-16 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>584377000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>b0f2227be0f37117ff16816a9bba6bf8</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>317868/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>59f7f0a41217d556acab6df6315c416b</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>847b3db3292d79f04385d50678617d8f</guid>
|
||||
<date-posted>
|
||||
<s>1995-04-01 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>591148000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>d6e212645b08ac2db0029f302eaefa06</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>291079/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>02525e8f79dd3f95a6531b7b0a1eb9a7</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>01b7f8239992fe56d640e8db18b357d4</guid>
|
||||
<date-posted>
|
||||
<s>1995-04-16 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>607128000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>dccef28c5a743eabc50ed961fedce162</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>300140/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>abb5d05de4cb51be2e4e05a70e4ece1b</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>ba6f65b4506f3bab59fa821fc35edffc</guid>
|
||||
<date-posted>
|
||||
<s>1995-05-01 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>612605000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>b45c6aee3f5802971f66a9da91d01212</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>285689/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>64750ea3cec777596f1eb2062fb1f8b9</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>2dd0477429d450166c9995e753c01331</guid>
|
||||
<date-posted>
|
||||
<s>1995-05-16 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>760444000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>69748f8a33b3e85fc46adfa9af9a2c8f</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>287107/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>53d079dc07ea51d10f07f922dcb7c9c9</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>4f221b72a33d2e5403ebea07b30c60f8</guid>
|
||||
<date-posted>
|
||||
<s>1995-06-01 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>767487000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>f323236b9c860bd7582d8516cab014d2</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>279478/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>52fa897efe40206378e38ce37d25545c</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>97c6d186d2c827c0add7fa251adb80f5</guid>
|
||||
<date-posted>
|
||||
<s>1995-06-16 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>774300000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>69783df027e525bc1f4fe2aa61f1c5e3</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>259717/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>ebb117aa19dfef5ce5cceb9378c0bd6b</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>61bc2fba66b1b4a2b9d70a79c23d6b2a</guid>
|
||||
<date-posted>
|
||||
<s>1995-07-01 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>782986000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>eb33e77786d816e4df8c9b089a2417fe</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>228890/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>39d1bd743942efb895c00e1c8dad312b</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>044cff4a8437cba0611d3f1634ed1766</guid>
|
||||
<date-posted>
|
||||
<s>1995-07-06 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>788855000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>2158435efd7fba4b85440e2b291597dc</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>1800000/100</value>
|
||||
<quantity>10000000/100000</quantity>
|
||||
<account>b3955645bed5651123986f415d0e81d6</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>4a07fb7b6207731dba32e088b2f2273c</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-1800000/100</value>
|
||||
<quantity>-1800000/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>d30a071d0c23e1f7de5122768f572783</guid>
|
||||
<date-posted>
|
||||
<s>1995-07-16 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>793677000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>ee5be141ec71575e8d133dafb17fc475</guid>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>223583/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>85fd606ec412640bdc2394dceabb2863</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>3c1a1f2b9b25c700a529a88ea37673fa</guid>
|
||||
<date-posted>
|
||||
<s>1995-08-01 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>810277000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>9106d261d9313b94a1791c0346026ab5</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>234456/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>01f9fa805620e2753a088d5c7926a2a4</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>ef3e43991d16cedd21ae30424314ded3</guid>
|
||||
<date-posted>
|
||||
<s>1995-08-16 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>820724000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>70edfee7fda47ab599440e56c74d07bc</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>223583/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>6e6de8bc8de8edadd03d12fa27f8d3cf</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>ad374dbca2ceb69c621729110075eb6c</guid>
|
||||
<date-posted>
|
||||
<s>1995-09-01 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>831302000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>593961cd24af8fec7b7dded7980572a0</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>246441/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>0290760bda0c1263a29275dbc80c6e8e</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>3ecdbc520d5995c743b968df766dac53</guid>
|
||||
<date-posted>
|
||||
<s>1995-09-16 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>842924000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>a19fb70b311ab1d2995e99da8cc0dd60</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>234456/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>e8188b2256f426671644de3833c63823</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>b78ee35076e3c33e119b28ed28d9899e</guid>
|
||||
<date-posted>
|
||||
<s>1995-10-01 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>870500000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>edceb57dd1ae14b92495e6b802ea1fd0</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>240299/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>a2913b7d9d6b46f98f8312a18091435a</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>55e60fdaab33f498f39f00fdd7b90a54</guid>
|
||||
<date-posted>
|
||||
<s>1995-10-16 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>882549000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>b28c48aea5b2590373a9d7b30daac854</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>232805/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>fc7ea77d5aa50580342d7e96b2f49989</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>99346e3803a33ab9eca34b0c07950ca4</guid>
|
||||
<date-posted>
|
||||
<s>1995-11-01 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>903735000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>6498e7c2e6fb5904dd5cec26c24435ef</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>225105/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>1f017018b6a8e4d819e5b4cc7a390025</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>99e86a13ff4f2c9682de72afe1a88e93</guid>
|
||||
<date-posted>
|
||||
<s>1995-11-16 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>918545000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>dc7a3ba0b30130597a4fdcc6c3dcf369</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>246179/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>efaa1a65c36b2aa767ef5038205775d2</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>2622a1080ff6c00ea26a08b2b4ced682</guid>
|
||||
<date-posted>
|
||||
<s>1995-11-18 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>924478000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>de65d2b5bbf96ea77a2a68f6e1c9b78e</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>1720000/100</value>
|
||||
<quantity>8000000/100000</quantity>
|
||||
<account>b3955645bed5651123986f415d0e81d6</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>1d2ee8256a1205440df2a8fc8aafbbca</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-1720000/100</value>
|
||||
<quantity>-1720000/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>a881bcba9acd5cc108fc0a98036c5bc3</guid>
|
||||
<date-posted>
|
||||
<s>1995-12-01 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>933363000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>f64fda83b5354abc300e0daeacdbaf9d</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>246179/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>e5110d8191bf1d6fda128942062569ad</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>c00f255b41f7d2c35d67354264999478</guid>
|
||||
<date-posted>
|
||||
<s>1995-12-10 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>940053000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>b5effb985dc0657eec87fd8dbfc57451</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>1744000/100</value>
|
||||
<quantity>8000000/100000</quantity>
|
||||
<account>b3955645bed5651123986f415d0e81d6</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>a4db6abc4a2effb3f73275fb29948523</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-1744000/100</value>
|
||||
<quantity>-1744000/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>8e8e5d4125418c0579f3731e25777596</guid>
|
||||
<date-posted>
|
||||
<s>1995-12-16 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>958106000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>1557c89238dd07a8972b0686a0fa178b</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>48210/100</value>
|
||||
<quantity>245917/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>e005c31d25bd98288550acf63d16cfd2</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-48210/100</value>
|
||||
<quantity>-48210/100</quantity>
|
||||
<account>21db466b6be8b3f6a3043d0c0316de8c</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>2b59e457646dd04a190dcb17e050ef92</guid>
|
||||
<date-posted>
|
||||
<s>1995-01-01 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:05 -0500</s>
|
||||
<ns>561450000</ns>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>6d87f9e8bb10413b90e956356641630c</guid>
|
||||
<memo>Initial balance</memo>
|
||||
<reconcile-state>y</reconcile-state>
|
||||
<value>249123/100</value>
|
||||
<quantity>9400850/100000</quantity>
|
||||
<account>c28902afc0e2168dab793b63dbf56e1f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>f778537b61dab90054fe976b501cd986</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-449122/100</value>
|
||||
<quantity>-449122/100</quantity>
|
||||
<account>1aaa099850fe7a07e2b5ae97f18b9af2</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>b3a36622a46daa0cb4291ed15874fcf6</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>200000/100</value>
|
||||
<quantity>200000/100</quantity>
|
||||
<account>da8e001155343694bd34f6aa248b1c28</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
</ledger-data>
|
||||
</gnc>
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
266
src/backend/file/test/test-files/xml1/abc.gml
Normal file
266
src/backend/file/test/test-files/xml1/abc.gml
Normal file
@ -0,0 +1,266 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc>
|
||||
<version>1</version>
|
||||
<ledger-data>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Swipe Brokers</name>
|
||||
<guid>8a2778a7eef9bc606de8a12b489f737c</guid>
|
||||
<type>BANK</type>
|
||||
<description>My Investment Account</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>EUR</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>abc</name>
|
||||
<guid>8c054c66321f7be82287dbb0c6b7b8a2</guid>
|
||||
<type>BANK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>EUR</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Gift Received</name>
|
||||
<guid>07212c5f31968d8d55144f1fd5651d8c</guid>
|
||||
<type>INCOME</type>
|
||||
<description>Gift Received</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>EUR</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Other Inc</name>
|
||||
<guid>a2d8b63955baad46ddca87bbd96d399f</guid>
|
||||
<type>INCOME</type>
|
||||
<description>Other Income</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>EUR</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>f5f0146e8a242f5869cfa143e9c3ad82</guid>
|
||||
<num>TXFR</num>
|
||||
<date-posted>
|
||||
<s>1997-09-12 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:35:15 -0500</s>
|
||||
<ns>421794000</ns>
|
||||
</date-entered>
|
||||
<description>move a pile of money to trading acct</description>
|
||||
<split>
|
||||
<guid>3a460828038c8dfb7840c9c869372ad3</guid>
|
||||
<memo>another memo</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>500000/100</value>
|
||||
<quantity>500000/100</quantity>
|
||||
<account>8a2778a7eef9bc606de8a12b489f737c</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>e9924d2b6802002852cec90774e41f0f</guid>
|
||||
<memo>another memo</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-500000/100</value>
|
||||
<quantity>-500000/100</quantity>
|
||||
<account>8c054c66321f7be82287dbb0c6b7b8a2</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>25b6474f1d5f2cf787d52af107f41f91</guid>
|
||||
<num>TXFR</num>
|
||||
<date-posted>
|
||||
<s>1997-11-11 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:35:15 -0500</s>
|
||||
<ns>422791000</ns>
|
||||
</date-entered>
|
||||
<description>hal stock</description>
|
||||
<split>
|
||||
<guid>f6de5ff6932e0652b54160a945345378</guid>
|
||||
<memo>income</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-1200/100</value>
|
||||
<quantity>-1200/100</quantity>
|
||||
<account>8a2778a7eef9bc606de8a12b489f737c</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>a599cd75681fa150211fc28f46da50a4</guid>
|
||||
<memo>income</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>1200/100</value>
|
||||
<quantity>1200/100</quantity>
|
||||
<account>8c054c66321f7be82287dbb0c6b7b8a2</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>b15e27a638b77c04eb23aea715845627</guid>
|
||||
<num>TXFR</num>
|
||||
<date-posted>
|
||||
<s>1997-11-11 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:35:15 -0500</s>
|
||||
<ns>423736000</ns>
|
||||
</date-entered>
|
||||
<description>hal stock</description>
|
||||
<split>
|
||||
<guid>e944efe51adf6a037d2a05e975de0b9e</guid>
|
||||
<memo>income</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-1100/100</value>
|
||||
<quantity>-1100/100</quantity>
|
||||
<account>8a2778a7eef9bc606de8a12b489f737c</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>39b2adbce47a9a878c72dc802b8eb19d</guid>
|
||||
<memo>income</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>1100/100</value>
|
||||
<quantity>1100/100</quantity>
|
||||
<account>8c054c66321f7be82287dbb0c6b7b8a2</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>eede2259804df7746d1a5508f994f3cb</guid>
|
||||
<num>TXFR</num>
|
||||
<date-posted>
|
||||
<s>1997-11-12 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:35:15 -0500</s>
|
||||
<ns>424738000</ns>
|
||||
</date-entered>
|
||||
<description>hal stock</description>
|
||||
<split>
|
||||
<guid>6f795a04a0822e46488b82f49745db78</guid>
|
||||
<memo>sold some stock!</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-50000/100</value>
|
||||
<quantity>-50000/100</quantity>
|
||||
<account>8a2778a7eef9bc606de8a12b489f737c</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>325b94fb8e080a5a08b025a9cae2fd2a</guid>
|
||||
<memo>sold some stock!</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>50000/100</value>
|
||||
<quantity>50000/100</quantity>
|
||||
<account>8c054c66321f7be82287dbb0c6b7b8a2</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>2830957d31809c4c450db2c5d5d134a2</guid>
|
||||
<num>DEP</num>
|
||||
<date-posted>
|
||||
<s>1997-06-17 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:35:15 -0500</s>
|
||||
<ns>418417000</ns>
|
||||
</date-entered>
|
||||
<description>from my pillow case</description>
|
||||
<split>
|
||||
<guid>f5e209e5d118c1edeca8dc3d82dbd1aa</guid>
|
||||
<memo>my memo</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-234500/100</value>
|
||||
<quantity>-234500/100</quantity>
|
||||
<account>a2d8b63955baad46ddca87bbd96d399f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>df70142a754e943592bec193b9a208ee</guid>
|
||||
<memo>my memo</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>234500/100</value>
|
||||
<quantity>234500/100</quantity>
|
||||
<account>8c054c66321f7be82287dbb0c6b7b8a2</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>8a6f53be74b84e3557abdba90b8c325b</guid>
|
||||
<num>101</num>
|
||||
<date-posted>
|
||||
<s>1997-08-01 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:35:15 -0500</s>
|
||||
<ns>420785000</ns>
|
||||
</date-entered>
|
||||
<description>paycheck</description>
|
||||
<split>
|
||||
<guid>e6c7440d846774962fd62c68a89145cb</guid>
|
||||
<memo>the boss paid me today!</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-54300/100</value>
|
||||
<quantity>-54300/100</quantity>
|
||||
<account>07212c5f31968d8d55144f1fd5651d8c</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>91e6498ede7e1c5964c677e8cf14d2c1</guid>
|
||||
<memo>the boss paid me today!</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>54300/100</value>
|
||||
<quantity>54300/100</quantity>
|
||||
<account>8c054c66321f7be82287dbb0c6b7b8a2</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>976137eadff7b9c19fa0bf4527385781</guid>
|
||||
<num>DEP</num>
|
||||
<date-posted>
|
||||
<s>1997-08-01 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:35:15 -0500</s>
|
||||
<ns>419571000</ns>
|
||||
</date-entered>
|
||||
<description>put in more money</description>
|
||||
<split>
|
||||
<guid>eb7df1a49af1a9bbeac7484003dec5e1</guid>
|
||||
<memo>this came out of my pillowcas</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-330000/100</value>
|
||||
<quantity>-330000/100</quantity>
|
||||
<account>a2d8b63955baad46ddca87bbd96d399f</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>d2d6443cc766f3bf1cfc891530903f1e</guid>
|
||||
<memo>this came out of my pillowcas</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>330000/100</value>
|
||||
<quantity>330000/100</quantity>
|
||||
<account>8c054c66321f7be82287dbb0c6b7b8a2</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
</ledger-data>
|
||||
</gnc>
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
401
src/backend/file/test/test-files/xml1/abcall.gml
Normal file
401
src/backend/file/test/test-files/xml1/abcall.gml
Normal file
@ -0,0 +1,401 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc>
|
||||
<version>1</version>
|
||||
<ledger-data>
|
||||
<account>
|
||||
<restore>
|
||||
<name>ABC Bank</name>
|
||||
<guid>eda56e3c0c402d1816f845430caf362e</guid>
|
||||
<type>BANK</type>
|
||||
<description>Some Old Bank Acct</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>USD</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Swipe Brokers</name>
|
||||
<guid>729ae65a6c202a83a5335bcd32709888</guid>
|
||||
<type>BANK</type>
|
||||
<description>My Investment Account</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>USD</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>pocket cash</name>
|
||||
<guid>5d0b89cb9bcc5074cda514d0d4c10af4</guid>
|
||||
<type>CASH</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>USD</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>SlaveCardt</name>
|
||||
<guid>2b804a30e16e54a97da593fc1f71c386</guid>
|
||||
<type>CREDIT</type>
|
||||
<description>my credit card</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>USD</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Gift Received</name>
|
||||
<guid>04b5cbc4192f4790fac0586c5cc152f4</guid>
|
||||
<type>INCOME</type>
|
||||
<description>Gift Received</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>USD</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Invest Inc</name>
|
||||
<guid>d4f69b07cf7bb1a77c134f1b2c128684</guid>
|
||||
<type>INCOME</type>
|
||||
<description>Investment Income</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>USD</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Other Inc</name>
|
||||
<guid>0a241ed16a10c3be1836ce37f8a069e9</guid>
|
||||
<type>INCOME</type>
|
||||
<description>Other Income</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>USD</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>2277a65f698a0902c751d8d44db12eeb</guid>
|
||||
<num>DEP</num>
|
||||
<date-posted>
|
||||
<s>1997-06-17 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:55 -0500</s>
|
||||
<ns>994727000</ns>
|
||||
</date-entered>
|
||||
<description>from my pillow case</description>
|
||||
<split>
|
||||
<guid>12afd90bcb29753d5572ebec9b3a6fe8</guid>
|
||||
<memo>my memo</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-234500/100</value>
|
||||
<quantity>-234500/100</quantity>
|
||||
<account>0a241ed16a10c3be1836ce37f8a069e9</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>be0a8539128014e1f0d247eb54e8b07a</guid>
|
||||
<memo>my memo</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>234500/100</value>
|
||||
<quantity>234500/100</quantity>
|
||||
<account>eda56e3c0c402d1816f845430caf362e</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>62bb507b39f9cb5ce13cdbfe85d5dde9</guid>
|
||||
<date-posted>
|
||||
<s>1997-07-16 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:55 -0500</s>
|
||||
<ns>996065000</ns>
|
||||
</date-entered>
|
||||
<description>more from my pillow</description>
|
||||
<split>
|
||||
<guid>066346c0a87434491957713da1f3a3be</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-233300/100</value>
|
||||
<quantity>-233300/100</quantity>
|
||||
<account>04b5cbc4192f4790fac0586c5cc152f4</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>6552ad49f7202988165f0bfb0cab9f1d</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>233300/100</value>
|
||||
<quantity>233300/100</quantity>
|
||||
<account>eda56e3c0c402d1816f845430caf362e</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>ac62a8dedb6fafc4864d980e167d93b0</guid>
|
||||
<num>101</num>
|
||||
<date-posted>
|
||||
<s>1997-08-01 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:55 -0500</s>
|
||||
<ns>998739000</ns>
|
||||
</date-entered>
|
||||
<description>paycheck</description>
|
||||
<split>
|
||||
<guid>2f0880d0d28f0a38de0784f40f1364a1</guid>
|
||||
<memo>the boss paid me today!</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-54300/100</value>
|
||||
<quantity>-54300/100</quantity>
|
||||
<account>04b5cbc4192f4790fac0586c5cc152f4</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>f01abb3378f6a2c7dde4f4894540507b</guid>
|
||||
<memo>the boss paid me today!</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>54300/100</value>
|
||||
<quantity>54300/100</quantity>
|
||||
<account>eda56e3c0c402d1816f845430caf362e</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>5d33e9906feeb57fc22b723447c81605</guid>
|
||||
<num>DEP</num>
|
||||
<date-posted>
|
||||
<s>1997-08-01 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:55 -0500</s>
|
||||
<ns>997654000</ns>
|
||||
</date-entered>
|
||||
<description>put in more money</description>
|
||||
<split>
|
||||
<guid>cf74014d73e0ef079c0f10797b19ed55</guid>
|
||||
<memo>some other inc</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-30000/100</value>
|
||||
<quantity>-30000/100</quantity>
|
||||
<account>0a241ed16a10c3be1836ce37f8a069e9</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>686e0a76ab0ae02b10526729d4309509</guid>
|
||||
<memo>soem as invst</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-190000/100</value>
|
||||
<quantity>-190000/100</quantity>
|
||||
<account>d4f69b07cf7bb1a77c134f1b2c128684</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>8f08ab3bcae4fda2996a4d4ba58b2a65</guid>
|
||||
<memo>some as gift</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-110000/100</value>
|
||||
<quantity>-110000/100</quantity>
|
||||
<account>04b5cbc4192f4790fac0586c5cc152f4</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>008fcb736cbc9dda100dba888769caec</guid>
|
||||
<memo>some other inc</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>330000/100</value>
|
||||
<quantity>330000/100</quantity>
|
||||
<account>eda56e3c0c402d1816f845430caf362e</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>5e8d9293d5903ea18dc79e139b26dbc2</guid>
|
||||
<num>TXFR</num>
|
||||
<date-posted>
|
||||
<s>1997-09-12 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:56 -0500</s>
|
||||
<ns>9661000</ns>
|
||||
</date-entered>
|
||||
<description>move a pile of money to trading acct</description>
|
||||
<split>
|
||||
<guid>1630fe79d89d59a1c1b879dd705aaa41</guid>
|
||||
<memo>another memo</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>500000/100</value>
|
||||
<quantity>500000/100</quantity>
|
||||
<account>729ae65a6c202a83a5335bcd32709888</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>6113d75cfcdea42bf1bf001df8e8ef8c</guid>
|
||||
<memo>another memo</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-500000/100</value>
|
||||
<quantity>-500000/100</quantity>
|
||||
<account>eda56e3c0c402d1816f845430caf362e</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>5be926417dfce34c825504c32470f78f</guid>
|
||||
<num>TXFR</num>
|
||||
<date-posted>
|
||||
<s>1997-11-11 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:56 -0500</s>
|
||||
<ns>10837000</ns>
|
||||
</date-entered>
|
||||
<description>hal stock</description>
|
||||
<split>
|
||||
<guid>cd7d47aaee2a435c3901b3efd8e319fe</guid>
|
||||
<memo>income</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-1200/100</value>
|
||||
<quantity>-1200/100</quantity>
|
||||
<account>729ae65a6c202a83a5335bcd32709888</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>ceab9089fbca47c83a487f8ea5f06c50</guid>
|
||||
<memo>income</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>1200/100</value>
|
||||
<quantity>1200/100</quantity>
|
||||
<account>eda56e3c0c402d1816f845430caf362e</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>99fd0615f2db665f4bf90f438b2b5733</guid>
|
||||
<num>TXFR</num>
|
||||
<date-posted>
|
||||
<s>1997-11-11 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:56 -0500</s>
|
||||
<ns>11847000</ns>
|
||||
</date-entered>
|
||||
<description>hal stock</description>
|
||||
<split>
|
||||
<guid>bfa9de544784620d566abc08c6e91b3a</guid>
|
||||
<memo>income</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-1100/100</value>
|
||||
<quantity>-1100/100</quantity>
|
||||
<account>729ae65a6c202a83a5335bcd32709888</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>73a9e08aa5a660ca2fa2ab85acdff84f</guid>
|
||||
<memo>income</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>1100/100</value>
|
||||
<quantity>1100/100</quantity>
|
||||
<account>eda56e3c0c402d1816f845430caf362e</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>698e47a93b21837fd83babbfc5f6320d</guid>
|
||||
<num>TXFR</num>
|
||||
<date-posted>
|
||||
<s>1997-11-12 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:56 -0500</s>
|
||||
<ns>12862000</ns>
|
||||
</date-entered>
|
||||
<description>hal stock</description>
|
||||
<split>
|
||||
<guid>90e62018f0f3add84eb0ed68702ae942</guid>
|
||||
<memo>sold some stock!</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-50000/100</value>
|
||||
<quantity>-50000/100</quantity>
|
||||
<account>729ae65a6c202a83a5335bcd32709888</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>73fc5c8ae0c0468304bc9650d34f4194</guid>
|
||||
<memo>sold some stock!</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>50000/100</value>
|
||||
<quantity>50000/100</quantity>
|
||||
<account>eda56e3c0c402d1816f845430caf362e</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>249c2ccc0ada34b5027a64e0c18774c3</guid>
|
||||
<date-posted>
|
||||
<s>1997-11-28 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:56 -0500</s>
|
||||
<ns>13872000</ns>
|
||||
</date-entered>
|
||||
<description>pay the balance on the credit c</description>
|
||||
<split>
|
||||
<guid>d4b7da3a080da8fc44e75c4389790ada</guid>
|
||||
<memo>another memo</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>44500/100</value>
|
||||
<quantity>44500/100</quantity>
|
||||
<account>2b804a30e16e54a97da593fc1f71c386</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>51fc2af007ad07027dfbe3ba4d4b6304</guid>
|
||||
<memo>another memo</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-44500/100</value>
|
||||
<quantity>-44500/100</quantity>
|
||||
<account>eda56e3c0c402d1816f845430caf362e</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>b1a6b7fad984e769bd6c3dd56abcfbe8</guid>
|
||||
<date-posted>
|
||||
<s>1997-11-28 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:32:56 -0500</s>
|
||||
<ns>14844000</ns>
|
||||
</date-entered>
|
||||
<description>cash in my pocket</description>
|
||||
<split>
|
||||
<guid>c862917ad2379a5710b1431c395e658b</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>4500/100</value>
|
||||
<quantity>4500/100</quantity>
|
||||
<account>5d0b89cb9bcc5074cda514d0d4c10af4</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>b4ceb078101fd7b78f4a0a2c9d3e2768</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-4500/100</value>
|
||||
<quantity>-4500/100</quantity>
|
||||
<account>eda56e3c0c402d1816f845430caf362e</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
</ledger-data>
|
||||
</gnc>
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
1270
src/backend/file/test/test-files/xml1/carols-data-file
Normal file
1270
src/backend/file/test/test-files/xml1/carols-data-file
Normal file
File diff suppressed because it is too large
Load Diff
1270
src/backend/file/test/test-files/xml1/carols-data-file.gml
Normal file
1270
src/backend/file/test/test-files/xml1/carols-data-file.gml
Normal file
File diff suppressed because it is too large
Load Diff
430
src/backend/file/test/test-files/xml1/cbb-export.gml
Normal file
430
src/backend/file/test/test-files/xml1/cbb-export.gml
Normal file
@ -0,0 +1,430 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc>
|
||||
<version>1</version>
|
||||
<ledger-data>
|
||||
<account>
|
||||
<restore>
|
||||
<name>cbb export</name>
|
||||
<guid>504a8f7f0ff8e1e53c6df8b1bb714c47</guid>
|
||||
<type>BANK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>HRK</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Gifts</name>
|
||||
<guid>8cd43c12f1dc32ea8a51ec997fcf35ef</guid>
|
||||
<type>INCOME</type>
|
||||
<description>Gift Expenses</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>HRK</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Reimbursements</name>
|
||||
<guid>4f502fe69043087c2186dcac27cc56bf</guid>
|
||||
<type>INCOME</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>HRK</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Salary</name>
|
||||
<guid>077894556323647344da06d5f5fe6449</guid>
|
||||
<type>INCOME</type>
|
||||
<description>Salary Income</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>HRK</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Clothing</name>
|
||||
<guid>37539261eaf4bcf82c17eba0a5bf5949</guid>
|
||||
<type>EXPENSE</type>
|
||||
<description>Clothing</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>HRK</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Credit Card</name>
|
||||
<guid>3b09243ca91d85c7b2984dd5f2490701</guid>
|
||||
<type>EXPENSE</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>HRK</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Dining-Out</name>
|
||||
<guid>cd6d68365b6c9f80e4b68a552b71950b</guid>
|
||||
<type>EXPENSE</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>HRK</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Entertainment</name>
|
||||
<guid>47585dff7df1969ea961e4b1a7fa9f27</guid>
|
||||
<type>EXPENSE</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>HRK</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Household</name>
|
||||
<guid>46d28144c136899835833bca6cda4e52</guid>
|
||||
<type>EXPENSE</type>
|
||||
<description>Household Misc. Exp</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>HRK</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Personal Cash</name>
|
||||
<guid>98e07d070ecce19416db949e9124a45d</guid>
|
||||
<type>EXPENSE</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>HRK</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Telephone</name>
|
||||
<guid>72e555d138c8a1e7c5e8c7953a54a55e</guid>
|
||||
<type>EXPENSE</type>
|
||||
<description>Telephone Expense</description>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>HRK</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Textbooks</name>
|
||||
<guid>224840878e17f4f7c6a5d6418747cafa</guid>
|
||||
<type>EXPENSE</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>HRK</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>9d2c18d552ab4a405bee914ca188eb70</guid>
|
||||
<num>323</num>
|
||||
<date-posted>
|
||||
<s>1997-06-23 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:37:09 -0500</s>
|
||||
<ns>256981000</ns>
|
||||
</date-entered>
|
||||
<description>Eurest Dining</description>
|
||||
<split>
|
||||
<guid>d62de62239db355ba3597b6a68722cbf</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>435/100</value>
|
||||
<quantity>435/100</quantity>
|
||||
<account>cd6d68365b6c9f80e4b68a552b71950b</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>7cbe9fae8a6a7b5f53fb233e6cb19490</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-435/100</value>
|
||||
<quantity>-435/100</quantity>
|
||||
<account>504a8f7f0ff8e1e53c6df8b1bb714c47</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>7b855de3a9f29605b1d5e0cb63d4b4cf</guid>
|
||||
<num>331</num>
|
||||
<date-posted>
|
||||
<s>1997-07-12 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:37:09 -0500</s>
|
||||
<ns>251045000</ns>
|
||||
</date-entered>
|
||||
<description>Sally Wood</description>
|
||||
<split>
|
||||
<guid>2c298a4d03fbe7cf10a416d06f83abc0</guid>
|
||||
<memo>VISA Bill - June</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>51343/100</value>
|
||||
<quantity>51343/100</quantity>
|
||||
<account>3b09243ca91d85c7b2984dd5f2490701</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>31e772f55b364e2cdef8e02e12287e1f</guid>
|
||||
<memo>VISA Bill - June</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-51343/100</value>
|
||||
<quantity>-51343/100</quantity>
|
||||
<account>504a8f7f0ff8e1e53c6df8b1bb714c47</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>1964523ed04475405c7f841548c0ae75</guid>
|
||||
<num>ATM</num>
|
||||
<date-posted>
|
||||
<s>1997-09-20 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:37:09 -0500</s>
|
||||
<ns>252071000</ns>
|
||||
</date-entered>
|
||||
<description>Withdrawal</description>
|
||||
<split>
|
||||
<guid>fe76f038b9d07bc9a47c1824f9752f68</guid>
|
||||
<memo>Claremont</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>4000/100</value>
|
||||
<quantity>4000/100</quantity>
|
||||
<account>98e07d070ecce19416db949e9124a45d</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>bc707d062a5900ebb3ca4e313a7d0e96</guid>
|
||||
<memo>Claremont</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-4000/100</value>
|
||||
<quantity>-4000/100</quantity>
|
||||
<account>504a8f7f0ff8e1e53c6df8b1bb714c47</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>d32f7312b4970cde93b1814a69604c72</guid>
|
||||
<num>ATM</num>
|
||||
<date-posted>
|
||||
<s>1997-09-29 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:37:09 -0500</s>
|
||||
<ns>258296000</ns>
|
||||
</date-entered>
|
||||
<description>Deposit</description>
|
||||
<split>
|
||||
<guid>937572eea8894521984a6364b0a98128</guid>
|
||||
<memo>HMC Orientation -97</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-5042/100</value>
|
||||
<quantity>-5042/100</quantity>
|
||||
<account>4f502fe69043087c2186dcac27cc56bf</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>6e99285a28ef72ff06bc0e61a7af13d1</guid>
|
||||
<memo>AE paycheck</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-14300/100</value>
|
||||
<quantity>-14300/100</quantity>
|
||||
<account>077894556323647344da06d5f5fe6449</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>18927d376a09bad9b06565df5402518d</guid>
|
||||
<memo>HMC Orientation -97</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>19342/100</value>
|
||||
<quantity>19342/100</quantity>
|
||||
<account>504a8f7f0ff8e1e53c6df8b1bb714c47</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>6622109f3b62c5ccf1a95918c7a1c248</guid>
|
||||
<num>276</num>
|
||||
<date-posted>
|
||||
<s>1997-09-30 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:37:09 -0500</s>
|
||||
<ns>253063000</ns>
|
||||
</date-entered>
|
||||
<description>TCI</description>
|
||||
<split>
|
||||
<guid>605eeca327a57a30af2ed3ff6518c174</guid>
|
||||
<memo>Cable - August</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>1399/100</value>
|
||||
<quantity>1399/100</quantity>
|
||||
<account>47585dff7df1969ea961e4b1a7fa9f27</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>0c48c1184a392f5b95e998b4dca76ebc</guid>
|
||||
<memo>Cable - August</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-1399/100</value>
|
||||
<quantity>-1399/100</quantity>
|
||||
<account>504a8f7f0ff8e1e53c6df8b1bb714c47</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>3048039143626c17d3109ff7fc37467e</guid>
|
||||
<num>277</num>
|
||||
<date-posted>
|
||||
<s>1997-10-11 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:37:09 -0500</s>
|
||||
<ns>248714000</ns>
|
||||
</date-entered>
|
||||
<description>AT&T/063</description>
|
||||
<split>
|
||||
<guid>eac0bf2d0950dedbaae474e0c1d4e085</guid>
|
||||
<memo>Phone Bill - September</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>619/100</value>
|
||||
<quantity>619/100</quantity>
|
||||
<account>72e555d138c8a1e7c5e8c7953a54a55e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>79e1478ef9dcd2b207b22b943283049a</guid>
|
||||
<memo>Phone Bill - September</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-619/100</value>
|
||||
<quantity>-619/100</quantity>
|
||||
<account>504a8f7f0ff8e1e53c6df8b1bb714c47</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>8bf78f94bb539e8f904cc49ec7f99444</guid>
|
||||
<num>278</num>
|
||||
<date-posted>
|
||||
<s>1997-10-11 00:00:00 -0400</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:37:09 -0500</s>
|
||||
<ns>249996000</ns>
|
||||
</date-entered>
|
||||
<description>BofA</description>
|
||||
<split>
|
||||
<guid>3743498b2f1c99256bde3d3160826579</guid>
|
||||
<memo>Wal-Mart</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>4475/100</value>
|
||||
<quantity>4475/100</quantity>
|
||||
<account>46d28144c136899835833bca6cda4e52</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>c22bfdb9021873b31caedd002c22f036</guid>
|
||||
<memo>Fall 1997 - Huntley</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>5330/100</value>
|
||||
<quantity>5330/100</quantity>
|
||||
<account>224840878e17f4f7c6a5d6418747cafa</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>d67f1387b0bb534372a80e168cb6e1b8</guid>
|
||||
<memo>Wal-Mart</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-9805/100</value>
|
||||
<quantity>-9805/100</quantity>
|
||||
<account>504a8f7f0ff8e1e53c6df8b1bb714c47</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>4097ea8244e81a99d5862a7313e51ff8</guid>
|
||||
<num>279</num>
|
||||
<date-posted>
|
||||
<s>1997-10-27 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:37:09 -0500</s>
|
||||
<ns>255798000</ns>
|
||||
</date-entered>
|
||||
<description>Scripps College</description>
|
||||
<split>
|
||||
<guid>30a555c9081c84934ca827f652c2e1d3</guid>
|
||||
<memo>Orchestra T-Shirt</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>1000/100</value>
|
||||
<quantity>1000/100</quantity>
|
||||
<account>37539261eaf4bcf82c17eba0a5bf5949</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>a02cc758726391ec2c64e21d2188e987</guid>
|
||||
<memo>Orchestra T-Shirt</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-1000/100</value>
|
||||
<quantity>-1000/100</quantity>
|
||||
<account>504a8f7f0ff8e1e53c6df8b1bb714c47</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>c1b75a304185a70beefd55f9f3b5cb17</guid>
|
||||
<num>283</num>
|
||||
<date-posted>
|
||||
<s>1997-11-24 00:00:00 -0500</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-03-26 15:37:09 -0500</s>
|
||||
<ns>254099000</ns>
|
||||
</date-entered>
|
||||
<description>West Dorm</description>
|
||||
<split>
|
||||
<guid>ee024d6fed778265b1e6513d6ee7d8d4</guid>
|
||||
<memo>Dorm T-Shirts</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>1500/100</value>
|
||||
<quantity>1500/100</quantity>
|
||||
<account>8cd43c12f1dc32ea8a51ec997fcf35ef</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>cd59b6089604201628093e13dfd4bced</guid>
|
||||
<memo>Dorm T-Shirts</memo>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-1500/100</value>
|
||||
<quantity>-1500/100</quantity>
|
||||
<account>504a8f7f0ff8e1e53c6df8b1bb714c47</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
</ledger-data>
|
||||
</gnc>
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
449
src/backend/file/test/test-files/xml1/conrads-file
Normal file
449
src/backend/file/test/test-files/xml1/conrads-file
Normal file
@ -0,0 +1,449 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc>
|
||||
<version>1</version>
|
||||
<ledger-data>
|
||||
<commodity>
|
||||
<restore>
|
||||
<space>AMEX</space>
|
||||
<id>stk</id>
|
||||
<name>Stock</name>
|
||||
<fraction>100</fraction>
|
||||
</restore>
|
||||
</commodity>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Imbalance-AUD</name>
|
||||
<guid>ca36693eb25a602c171d07cb682b3e1b</guid>
|
||||
<type>BANK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>AUD</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Assets</name>
|
||||
<guid>a947017cbd3b26198484086f8d93863b</guid>
|
||||
<type>STOCK</type>
|
||||
<code>A0000</code>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>AUD</id>
|
||||
</currency>
|
||||
<slots>
|
||||
<s>
|
||||
<k>notes</k>
|
||||
<string></string>
|
||||
</s>
|
||||
</slots>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Stock1</name>
|
||||
<guid>33181c172f50aaa24792256f2db4690e</guid>
|
||||
<type>STOCK</type>
|
||||
<code>A0001</code>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>AUD</id>
|
||||
</currency>
|
||||
<security>
|
||||
<space>AMEX</space>
|
||||
<id>stk</id>
|
||||
</security>
|
||||
<slots>
|
||||
<s>
|
||||
<k>notes</k>
|
||||
<string></string>
|
||||
</s>
|
||||
</slots>
|
||||
<parent>
|
||||
<guid>a947017cbd3b26198484086f8d93863b</guid>
|
||||
</parent>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Stock2</name>
|
||||
<guid>4ca39e2f16ccf288ea0d956d2371bf82</guid>
|
||||
<type>STOCK</type>
|
||||
<code>A0002</code>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>AUD</id>
|
||||
</currency>
|
||||
<security>
|
||||
<space>AMEX</space>
|
||||
<id>stk</id>
|
||||
</security>
|
||||
<slots>
|
||||
<s>
|
||||
<k>notes</k>
|
||||
<string></string>
|
||||
</s>
|
||||
</slots>
|
||||
<parent>
|
||||
<guid>a947017cbd3b26198484086f8d93863b</guid>
|
||||
</parent>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Cash</name>
|
||||
<guid>dd0cfd17078251ec6ef03da8a081f2a3</guid>
|
||||
<type>ASSET</type>
|
||||
<code>C0000</code>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>AUD</id>
|
||||
</currency>
|
||||
<slots>
|
||||
<s>
|
||||
<k>notes</k>
|
||||
<string></string>
|
||||
</s>
|
||||
</slots>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Bank</name>
|
||||
<guid>6f8df62ae08403ee2a8eb5aa61cec772</guid>
|
||||
<type>BANK</type>
|
||||
<code>C0001</code>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>AUD</id>
|
||||
</currency>
|
||||
<slots>
|
||||
<s>
|
||||
<k>notes</k>
|
||||
<string></string>
|
||||
</s>
|
||||
</slots>
|
||||
<parent>
|
||||
<guid>dd0cfd17078251ec6ef03da8a081f2a3</guid>
|
||||
</parent>
|
||||
</restore>
|
||||
</account>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>5a77b2d61485f286aff878be6febef64</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-28 16:04:14 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-28 16:05:23 +1100</s>
|
||||
</date-entered>
|
||||
<description>Initial purchase of stock</description>
|
||||
<split>
|
||||
<guid>0c92275921282ef27f8ebf7389735ad2</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>15000/100</value>
|
||||
<quantity>10000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>4a2b02002eb5d1f854d4269dc42c6952</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-15000/100</value>
|
||||
<quantity>-15000/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>edc6b34f5d5f2a571843eb6033f7b8d9</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-28 22:39:20 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-28 23:31:28 +1100</s>
|
||||
</date-entered>
|
||||
<description>Sale (1)</description>
|
||||
<split>
|
||||
<guid>1dffcfc068e38f78ca5801e3487e6bdb</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-3600/100</value>
|
||||
<quantity>-2000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>ce0457f98bf2e1f2db98cefa1e418631</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>3600/100</value>
|
||||
<quantity>3600/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>e1382f1ac62f7c0d5e3be35b7c829a69</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-28 22:39:20 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-28 23:31:30 +1100</s>
|
||||
<ns>66309000</ns>
|
||||
</date-entered>
|
||||
<description>Sale (1)</description>
|
||||
<split>
|
||||
<guid>3146350195a33643ba3ab29a6cea463e</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-3600/100</value>
|
||||
<quantity>-2000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>a2ab877a4ab0387538d08493402bd186</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>3600/100</value>
|
||||
<quantity>3600/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>8243a16bf6e7baa7c3f03d1269b0af59</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-28 22:39:20 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-28 23:31:46 +1100</s>
|
||||
<ns>664262000</ns>
|
||||
</date-entered>
|
||||
<description>Sale (1)</description>
|
||||
<split>
|
||||
<guid>fc1ff0f23ef547885da036b1b9900a34</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-3600/100</value>
|
||||
<quantity>-2000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>99e7f2948ccaf69b77d3f5179e2236eb</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>3600/100</value>
|
||||
<quantity>3600/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>29d5624b4640a6020d9d37d9bc60b29b</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-28 22:39:20 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-28 23:32:08 +1100</s>
|
||||
<ns>413532000</ns>
|
||||
</date-entered>
|
||||
<description>Sale (1)</description>
|
||||
<split>
|
||||
<guid>e945659fa802e7b66a88674f1adc8cbb</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-6400/100</value>
|
||||
<quantity>-3000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>e9b926f5a8a48b12048e274119c119d3</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>6400/100</value>
|
||||
<quantity>6400/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>9dc249c5bbcea69ac8c7bf7c60ca34e0</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-29 11:01:14 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-29 11:01:39 +1100</s>
|
||||
</date-entered>
|
||||
<description>buy more</description>
|
||||
<split>
|
||||
<guid>7048bec4fcce79b3941de51944a48231</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>11000/100</value>
|
||||
<quantity>10000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>1e7d08ae4724c49593982e73449e9788</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-11000/100</value>
|
||||
<quantity>-11000/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>b585a0ac253ce4316fedab1b495a2006</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-30 11:18:25 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-30 11:19:12 +1100</s>
|
||||
</date-entered>
|
||||
<description>Sell lots</description>
|
||||
<split>
|
||||
<guid>18c80178f75af440f5a1a87081b2fecb</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-50000/100</value>
|
||||
<quantity>-40000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>5c96b06788eb8ab218c886ddb31dcd71</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>50000/100</value>
|
||||
<quantity>50000/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>507c9bcd04bb43dc96a58ba418fe86c5</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-30 11:43:12 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-30 11:45:18 +1100</s>
|
||||
</date-entered>
|
||||
<description>some purchases</description>
|
||||
<split>
|
||||
<guid>71ac0831a93fb732f93106f26a007469</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>32400/100</value>
|
||||
<quantity>30000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>4ea809cd49577ec887c10eb0022eb695</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-32400/100</value>
|
||||
<quantity>-32400/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>791ce0217b5edf0c923f9cc3dc64c169</guid>
|
||||
<date-posted>
|
||||
<s>2001-01-09 00:00:00 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-01-09 15:56:02 +1100</s>
|
||||
</date-entered>
|
||||
<description>gargle</description>
|
||||
<split>
|
||||
<guid>46fac7edef736a1cf3c3411de467dc14</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-2800/100</value>
|
||||
<quantity>-2000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>234e1618beaaeb3dac31e931338020f2</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>2800/100</value>
|
||||
<quantity>2800/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>716b216f13e16d9e7afd49b3e8e4ffb6</guid>
|
||||
<date-posted>
|
||||
<s>2001-01-09 00:00:00 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-01-09 20:22:12 +1100</s>
|
||||
</date-entered>
|
||||
<description>fandangle</description>
|
||||
<split>
|
||||
<guid>e673423c75e9eb1b9443aa40bed778d0</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>25000/100</value>
|
||||
<quantity>20000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>49d24a29bb1bb67e44f9426265597262</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-25000/100</value>
|
||||
<quantity>-25000/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>b74ee5f973e0b477eddc968384d2a594</guid>
|
||||
<date-posted>
|
||||
<s>2001-01-09 00:00:00 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-01-09 22:57:22 +1100</s>
|
||||
</date-entered>
|
||||
<description>A small sale</description>
|
||||
<split>
|
||||
<guid>da6264665f23b934aa5913308bfeb172</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-38000/100</value>
|
||||
<quantity>-19000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>8c22cbc933e39c0c0226938c0eca8751</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>38000/100</value>
|
||||
<quantity>24000/100</quantity>
|
||||
<account>4ca39e2f16ccf288ea0d956d2371bf82</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>f9386ebc4654856d9f2c8d991f9060d8</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-28 16:03:09 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-28 16:03:58 +1100</s>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>59d526f5b19077cded2e38a7726d69f7</guid>
|
||||
<action>Deposit</action>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>100000000/100</value>
|
||||
<quantity>100000000/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>615e1758e9b8c958e596747191ec3226</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-100000000000/100000</value>
|
||||
<quantity>0/100000</quantity>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
</ledger-data>
|
||||
</gnc>
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
449
src/backend/file/test/test-files/xml1/conrads-file.gml
Normal file
449
src/backend/file/test/test-files/xml1/conrads-file.gml
Normal file
@ -0,0 +1,449 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc>
|
||||
<version>1</version>
|
||||
<ledger-data>
|
||||
<commodity>
|
||||
<restore>
|
||||
<space>AMEX</space>
|
||||
<id>stk</id>
|
||||
<name>Stock</name>
|
||||
<fraction>100</fraction>
|
||||
</restore>
|
||||
</commodity>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Imbalance-AUD</name>
|
||||
<guid>ca36693eb25a602c171d07cb682b3e1b</guid>
|
||||
<type>BANK</type>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>AUD</id>
|
||||
</currency>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Assets</name>
|
||||
<guid>a947017cbd3b26198484086f8d93863b</guid>
|
||||
<type>STOCK</type>
|
||||
<code>A0000</code>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>AUD</id>
|
||||
</currency>
|
||||
<slots>
|
||||
<s>
|
||||
<k>notes</k>
|
||||
<string></string>
|
||||
</s>
|
||||
</slots>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Stock1</name>
|
||||
<guid>33181c172f50aaa24792256f2db4690e</guid>
|
||||
<type>STOCK</type>
|
||||
<code>A0001</code>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>AUD</id>
|
||||
</currency>
|
||||
<security>
|
||||
<space>AMEX</space>
|
||||
<id>stk</id>
|
||||
</security>
|
||||
<slots>
|
||||
<s>
|
||||
<k>notes</k>
|
||||
<string></string>
|
||||
</s>
|
||||
</slots>
|
||||
<parent>
|
||||
<guid>a947017cbd3b26198484086f8d93863b</guid>
|
||||
</parent>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Stock2</name>
|
||||
<guid>4ca39e2f16ccf288ea0d956d2371bf82</guid>
|
||||
<type>STOCK</type>
|
||||
<code>A0002</code>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>AUD</id>
|
||||
</currency>
|
||||
<security>
|
||||
<space>AMEX</space>
|
||||
<id>stk</id>
|
||||
</security>
|
||||
<slots>
|
||||
<s>
|
||||
<k>notes</k>
|
||||
<string></string>
|
||||
</s>
|
||||
</slots>
|
||||
<parent>
|
||||
<guid>a947017cbd3b26198484086f8d93863b</guid>
|
||||
</parent>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Cash</name>
|
||||
<guid>dd0cfd17078251ec6ef03da8a081f2a3</guid>
|
||||
<type>ASSET</type>
|
||||
<code>C0000</code>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>AUD</id>
|
||||
</currency>
|
||||
<slots>
|
||||
<s>
|
||||
<k>notes</k>
|
||||
<string></string>
|
||||
</s>
|
||||
</slots>
|
||||
</restore>
|
||||
</account>
|
||||
<account>
|
||||
<restore>
|
||||
<name>Bank</name>
|
||||
<guid>6f8df62ae08403ee2a8eb5aa61cec772</guid>
|
||||
<type>BANK</type>
|
||||
<code>C0001</code>
|
||||
<currency>
|
||||
<space>ISO4217</space>
|
||||
<id>AUD</id>
|
||||
</currency>
|
||||
<slots>
|
||||
<s>
|
||||
<k>notes</k>
|
||||
<string></string>
|
||||
</s>
|
||||
</slots>
|
||||
<parent>
|
||||
<guid>dd0cfd17078251ec6ef03da8a081f2a3</guid>
|
||||
</parent>
|
||||
</restore>
|
||||
</account>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>5a77b2d61485f286aff878be6febef64</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-28 16:04:14 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-28 16:05:23 +1100</s>
|
||||
</date-entered>
|
||||
<description>Initial purchase of stock</description>
|
||||
<split>
|
||||
<guid>0c92275921282ef27f8ebf7389735ad2</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>15000/100</value>
|
||||
<quantity>10000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>4a2b02002eb5d1f854d4269dc42c6952</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-15000/100</value>
|
||||
<quantity>-15000/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>edc6b34f5d5f2a571843eb6033f7b8d9</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-28 22:39:20 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-28 23:31:28 +1100</s>
|
||||
</date-entered>
|
||||
<description>Sale (1)</description>
|
||||
<split>
|
||||
<guid>1dffcfc068e38f78ca5801e3487e6bdb</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-3600/100</value>
|
||||
<quantity>-2000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>ce0457f98bf2e1f2db98cefa1e418631</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>3600/100</value>
|
||||
<quantity>3600/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>e1382f1ac62f7c0d5e3be35b7c829a69</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-28 22:39:20 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-28 23:31:30 +1100</s>
|
||||
<ns>66309000</ns>
|
||||
</date-entered>
|
||||
<description>Sale (1)</description>
|
||||
<split>
|
||||
<guid>3146350195a33643ba3ab29a6cea463e</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-3600/100</value>
|
||||
<quantity>-2000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>a2ab877a4ab0387538d08493402bd186</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>3600/100</value>
|
||||
<quantity>3600/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>8243a16bf6e7baa7c3f03d1269b0af59</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-28 22:39:20 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-28 23:31:46 +1100</s>
|
||||
<ns>664262000</ns>
|
||||
</date-entered>
|
||||
<description>Sale (1)</description>
|
||||
<split>
|
||||
<guid>fc1ff0f23ef547885da036b1b9900a34</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-3600/100</value>
|
||||
<quantity>-2000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>99e7f2948ccaf69b77d3f5179e2236eb</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>3600/100</value>
|
||||
<quantity>3600/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>29d5624b4640a6020d9d37d9bc60b29b</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-28 22:39:20 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-28 23:32:08 +1100</s>
|
||||
<ns>413532000</ns>
|
||||
</date-entered>
|
||||
<description>Sale (1)</description>
|
||||
<split>
|
||||
<guid>e945659fa802e7b66a88674f1adc8cbb</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-6400/100</value>
|
||||
<quantity>-3000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>e9b926f5a8a48b12048e274119c119d3</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>6400/100</value>
|
||||
<quantity>6400/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>9dc249c5bbcea69ac8c7bf7c60ca34e0</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-29 11:01:14 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-29 11:01:39 +1100</s>
|
||||
</date-entered>
|
||||
<description>buy more</description>
|
||||
<split>
|
||||
<guid>7048bec4fcce79b3941de51944a48231</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>11000/100</value>
|
||||
<quantity>10000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>1e7d08ae4724c49593982e73449e9788</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-11000/100</value>
|
||||
<quantity>-11000/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>b585a0ac253ce4316fedab1b495a2006</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-30 11:18:25 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-30 11:19:12 +1100</s>
|
||||
</date-entered>
|
||||
<description>Sell lots</description>
|
||||
<split>
|
||||
<guid>18c80178f75af440f5a1a87081b2fecb</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-50000/100</value>
|
||||
<quantity>-40000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>5c96b06788eb8ab218c886ddb31dcd71</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>50000/100</value>
|
||||
<quantity>50000/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>507c9bcd04bb43dc96a58ba418fe86c5</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-30 11:43:12 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-30 11:45:18 +1100</s>
|
||||
</date-entered>
|
||||
<description>some purchases</description>
|
||||
<split>
|
||||
<guid>71ac0831a93fb732f93106f26a007469</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>32400/100</value>
|
||||
<quantity>30000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>4ea809cd49577ec887c10eb0022eb695</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-32400/100</value>
|
||||
<quantity>-32400/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>791ce0217b5edf0c923f9cc3dc64c169</guid>
|
||||
<date-posted>
|
||||
<s>2001-01-09 00:00:00 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-01-09 15:56:02 +1100</s>
|
||||
</date-entered>
|
||||
<description>gargle</description>
|
||||
<split>
|
||||
<guid>46fac7edef736a1cf3c3411de467dc14</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-2800/100</value>
|
||||
<quantity>-2000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>234e1618beaaeb3dac31e931338020f2</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>2800/100</value>
|
||||
<quantity>2800/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>716b216f13e16d9e7afd49b3e8e4ffb6</guid>
|
||||
<date-posted>
|
||||
<s>2001-01-09 00:00:00 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-01-09 20:22:12 +1100</s>
|
||||
</date-entered>
|
||||
<description>fandangle</description>
|
||||
<split>
|
||||
<guid>e673423c75e9eb1b9443aa40bed778d0</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>25000/100</value>
|
||||
<quantity>20000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>49d24a29bb1bb67e44f9426265597262</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-25000/100</value>
|
||||
<quantity>-25000/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>b74ee5f973e0b477eddc968384d2a594</guid>
|
||||
<date-posted>
|
||||
<s>2001-01-09 00:00:00 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2001-01-09 22:57:22 +1100</s>
|
||||
</date-entered>
|
||||
<description>A small sale</description>
|
||||
<split>
|
||||
<guid>da6264665f23b934aa5913308bfeb172</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-38000/100</value>
|
||||
<quantity>-19000/100</quantity>
|
||||
<account>33181c172f50aaa24792256f2db4690e</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>8c22cbc933e39c0c0226938c0eca8751</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>38000/100</value>
|
||||
<quantity>24000/100</quantity>
|
||||
<account>4ca39e2f16ccf288ea0d956d2371bf82</account>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
<transaction>
|
||||
<restore>
|
||||
<guid>f9386ebc4654856d9f2c8d991f9060d8</guid>
|
||||
<date-posted>
|
||||
<s>2000-11-28 16:03:09 +1100</s>
|
||||
</date-posted>
|
||||
<date-entered>
|
||||
<s>2000-11-28 16:03:58 +1100</s>
|
||||
</date-entered>
|
||||
<split>
|
||||
<guid>59d526f5b19077cded2e38a7726d69f7</guid>
|
||||
<action>Deposit</action>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>100000000/100</value>
|
||||
<quantity>100000000/100</quantity>
|
||||
<account>6f8df62ae08403ee2a8eb5aa61cec772</account>
|
||||
</split>
|
||||
<split>
|
||||
<guid>615e1758e9b8c958e596747191ec3226</guid>
|
||||
<reconcile-state>n</reconcile-state>
|
||||
<value>-100000000000/100000</value>
|
||||
<quantity>0/100000</quantity>
|
||||
</split>
|
||||
</restore>
|
||||
</transaction>
|
||||
</ledger-data>
|
||||
</gnc>
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
4760
src/backend/file/test/test-files/xml1/every.gml
Normal file
4760
src/backend/file/test/test-files/xml1/every.gml
Normal file
File diff suppressed because it is too large
Load Diff
10085
src/backend/file/test/test-files/xml1/ms-money.gml
Normal file
10085
src/backend/file/test/test-files/xml1/ms-money.gml
Normal file
File diff suppressed because it is too large
Load Diff
5361
src/backend/file/test/test-files/xml1/pricedb1.gml
Normal file
5361
src/backend/file/test/test-files/xml1/pricedb1.gml
Normal file
File diff suppressed because it is too large
Load Diff
6
src/backend/file/test/test-files/xml2/.cvsignore
Normal file
6
src/backend/file/test/test-files/xml2/.cvsignore
Normal file
@ -0,0 +1,6 @@
|
||||
*.LNK
|
||||
*.LCK
|
||||
*.xac
|
||||
*.log
|
||||
Makefile
|
||||
Makefile.in
|
15
src/backend/file/test/test-files/xml2/Makefile.am
Normal file
15
src/backend/file/test/test-files/xml2/Makefile.am
Normal file
@ -0,0 +1,15 @@
|
||||
EXTRA_DIST = \
|
||||
Money95bank_fr.gml2 \
|
||||
Money95invst.gml2 \
|
||||
Money95mutual.gml2 \
|
||||
Money95stocks.gml2 \
|
||||
abc.gml2 \
|
||||
abcall.gml2 \
|
||||
carols-data-file.gml2 \
|
||||
cbb-export.gml2 \
|
||||
conrads-file.gml2 \
|
||||
every.gml2 \
|
||||
goonies-file.gml2 \
|
||||
hierachical-data-file.gml2 \
|
||||
ms-money.gml2 \
|
||||
pricedb1.gml2
|
4862
src/backend/file/test/test-files/xml2/Money95bank_fr.gml2
Normal file
4862
src/backend/file/test/test-files/xml2/Money95bank_fr.gml2
Normal file
File diff suppressed because it is too large
Load Diff
327
src/backend/file/test/test-files/xml2/Money95invst.gml2
Normal file
327
src/backend/file/test/test-files/xml2/Money95invst.gml2
Normal file
@ -0,0 +1,327 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc-v2>
|
||||
<gnc:count-data cd:type="account">3</gnc:count-data>
|
||||
<gnc:count-data cd:type="transaction">10</gnc:count-data>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Compte courant</act:name>
|
||||
<act:id type="guid">a68387e637bb8e7405bc949764b9aefd</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Livret bleu</act:name>
|
||||
<act:id type="guid">cec92cd077aee62305910cfd929cc341</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Retained Earnings</act:name>
|
||||
<act:id type="guid">afed1334dfcdc53865cafe61edbb0fc6</act:id>
|
||||
<act:type>EQUITY</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">ad7c592d0603871110acb8f2c7bcd215</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-01-26 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:28:38 -0500</ts:date>
|
||||
<ts:ns>31238000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">524f8a36ece0437ba8b27284a2b78e06</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-250000/100</split:value>
|
||||
<split:quantity>-250000/100</split:quantity>
|
||||
<split:account type="guid">a68387e637bb8e7405bc949764b9aefd</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">4b93c9e41c978f00b3c4e0de5fa2fbef</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>250000/100</split:value>
|
||||
<split:quantity>250000/100</split:quantity>
|
||||
<split:account type="guid">cec92cd077aee62305910cfd929cc341</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">9c381dc6f595933f06ff11b574333f44</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-02-26 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:28:38 -0500</ts:date>
|
||||
<ts:ns>32417000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">85f79dde160ba7f2f021d95d190b34c3</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-300000/100</split:value>
|
||||
<split:quantity>-300000/100</split:quantity>
|
||||
<split:account type="guid">a68387e637bb8e7405bc949764b9aefd</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">98b2c538910821d9cf37a9bff01ef60b</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>300000/100</split:value>
|
||||
<split:quantity>300000/100</split:quantity>
|
||||
<split:account type="guid">cec92cd077aee62305910cfd929cc341</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">3fd5cdd6a6772412d702124c1a786ef3</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-03-26 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:28:38 -0500</ts:date>
|
||||
<ts:ns>33369000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">535b36edb9230c04b575034bde669ea3</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-300000/100</split:value>
|
||||
<split:quantity>-300000/100</split:quantity>
|
||||
<split:account type="guid">a68387e637bb8e7405bc949764b9aefd</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">249fbfb7601774a1f089f030299c8a3f</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>300000/100</split:value>
|
||||
<split:quantity>300000/100</split:quantity>
|
||||
<split:account type="guid">cec92cd077aee62305910cfd929cc341</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">ebff5d6fbfd69632db47a362789035c0</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-04-26 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:28:38 -0500</ts:date>
|
||||
<ts:ns>34356000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">8f559a4b006fd31a238fc1c1819b911e</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-300000/100</split:value>
|
||||
<split:quantity>-300000/100</split:quantity>
|
||||
<split:account type="guid">a68387e637bb8e7405bc949764b9aefd</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">adda51b98341607acccbe48bc1c37dff</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>300000/100</split:value>
|
||||
<split:quantity>300000/100</split:quantity>
|
||||
<split:account type="guid">cec92cd077aee62305910cfd929cc341</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">4d44e44e9b16a58c562e0d938e58a69d</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-05-26 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:28:38 -0500</ts:date>
|
||||
<ts:ns>36554000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">f7ff3dbb314786218f638276f8b3c3a8</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-300000/100</split:value>
|
||||
<split:quantity>-300000/100</split:quantity>
|
||||
<split:account type="guid">a68387e637bb8e7405bc949764b9aefd</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">e8a489904a8a4e684d7054fba8b288f2</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>300000/100</split:value>
|
||||
<split:quantity>300000/100</split:quantity>
|
||||
<split:account type="guid">cec92cd077aee62305910cfd929cc341</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">328e2319a21e15c8eaac3c5ae9e2f8d7</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-06-26 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:28:38 -0500</ts:date>
|
||||
<ts:ns>37673000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">15e631fad619fffe13e291ca187bd7c9</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-300000/100</split:value>
|
||||
<split:quantity>-300000/100</split:quantity>
|
||||
<split:account type="guid">a68387e637bb8e7405bc949764b9aefd</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">d2e699960572bca531413fd4fcd530a3</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>300000/100</split:value>
|
||||
<split:quantity>300000/100</split:quantity>
|
||||
<split:account type="guid">cec92cd077aee62305910cfd929cc341</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">2f70aee8552b4929b9009a4cde3f3095</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-07-26 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:28:38 -0500</ts:date>
|
||||
<ts:ns>38685000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">33b9ddd3fa6d915ce6d8b8440d4cd1b3</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-250000/100</split:value>
|
||||
<split:quantity>-250000/100</split:quantity>
|
||||
<split:account type="guid">a68387e637bb8e7405bc949764b9aefd</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">53935088af8824f72ebcb29571443e2f</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>250000/100</split:value>
|
||||
<split:quantity>250000/100</split:quantity>
|
||||
<split:account type="guid">cec92cd077aee62305910cfd929cc341</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">4564825b74f81412d309a8eb8cc58222</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-11-12 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:28:38 -0500</ts:date>
|
||||
<ts:ns>39707000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">912aa7c8f0c8c01fdedd4c44ac7c4ade</split:id>
|
||||
<split:memo>Pour équilibrage</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>450000/100</split:value>
|
||||
<split:quantity>450000/100</split:quantity>
|
||||
<split:account type="guid">a68387e637bb8e7405bc949764b9aefd</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">d8d24b073589acfda00585b67e2a4bf0</split:id>
|
||||
<split:memo>Pour équilibrage</split:memo>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>-450000/100</split:value>
|
||||
<split:quantity>-450000/100</split:quantity>
|
||||
<split:account type="guid">cec92cd077aee62305910cfd929cc341</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">ec6f0cc19c5651db2c2dc8ff93efe697</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-12-26 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:28:38 -0500</ts:date>
|
||||
<ts:ns>40707000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">11d0b29b056fc64215dbb37d0dfdd062</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-350000/100</split:value>
|
||||
<split:quantity>-350000/100</split:quantity>
|
||||
<split:account type="guid">a68387e637bb8e7405bc949764b9aefd</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">20dad7ae612bd303bc2d070bef3604ac</split:id>
|
||||
<split:memo>Economies</split:memo>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>350000/100</split:value>
|
||||
<split:quantity>350000/100</split:quantity>
|
||||
<split:account type="guid">cec92cd077aee62305910cfd929cc341</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">f56c0707159f36caabc22df8ac71887a</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-01-01 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:28:38 -0500</ts:date>
|
||||
<ts:ns>30261000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>Opening Balance</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">d20b8eff18aa85f3731145b77f0bc5de</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-14560800/100</split:value>
|
||||
<split:quantity>-14560800/100</split:quantity>
|
||||
<split:account type="guid">afed1334dfcdc53865cafe61edbb0fc6</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">9b4e17c7c367bf37367dda356a7e2670</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>14560800/100</split:value>
|
||||
<split:quantity>14560800/100</split:quantity>
|
||||
<split:account type="guid">cec92cd077aee62305910cfd929cc341</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
</gnc-v2>
|
||||
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
168
src/backend/file/test/test-files/xml2/Money95mutual.gml2
Normal file
168
src/backend/file/test/test-files/xml2/Money95mutual.gml2
Normal file
@ -0,0 +1,168 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc-v2>
|
||||
<gnc:count-data cd:type="commodity">1</gnc:count-data>
|
||||
<gnc:count-data cd:type="account">5</gnc:count-data>
|
||||
<gnc:count-data cd:type="transaction">3</gnc:count-data>
|
||||
<gnc:commodity version="2.0.0">
|
||||
<cmdty:space>NYSE</cmdty:space>
|
||||
<cmdty:id>O-Sicav Plus</cmdty:id>
|
||||
<cmdty:name>O-Sicav Plus</cmdty:name>
|
||||
<cmdty:fraction>100000</cmdty:fraction>
|
||||
</gnc:commodity>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Livret bleu</act:name>
|
||||
<act:id type="guid">3bcb236af583d5bd7b6e0153fe97e7e3</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>FRF</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Money95mfunds fr</act:name>
|
||||
<act:id type="guid">89e091b3489a50957b400a868f101d59</act:id>
|
||||
<act:type>STOCK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>FRF</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>O-Sicav Plus</act:name>
|
||||
<act:id type="guid">e0e954412d6b31dfa1fcbb9937a125b0</act:id>
|
||||
<act:type>STOCK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>FRF</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:security>
|
||||
<cmdty:space>NYSE</cmdty:space>
|
||||
<cmdty:id>O-Sicav Plus</cmdty:id>
|
||||
</act:security>
|
||||
<act:security-scu>100000</act:security-scu>
|
||||
<act:parent type="guid">89e091b3489a50957b400a868f101d59</act:parent>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Commissions</act:name>
|
||||
<act:id type="guid">41b9e953585cd5662712d62848e71789</act:id>
|
||||
<act:type>EXPENSE</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>FRF</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Money95mfunds fr</act:name>
|
||||
<act:id type="guid">c7a4746248d0677c6421077833477bba</act:id>
|
||||
<act:type>EXPENSE</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>FRF</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:parent type="guid">41b9e953585cd5662712d62848e71789</act:parent>
|
||||
</gnc:account>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">88ed4f76d273256aaa05eab3010731bf</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-07-24 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:30:31 -0500</ts:date>
|
||||
<ts:ns>435420000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">df25dcb351c89a20062a5ea5d294e8e8</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>1828080/100</split:value>
|
||||
<split:quantity>6000000/100000</split:quantity>
|
||||
<split:account type="guid">e0e954412d6b31dfa1fcbb9937a125b0</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">a44971f955fa03a9318fff369962820a</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-2461820/100</split:value>
|
||||
<split:quantity>-2461820/100</split:quantity>
|
||||
<split:account type="guid">3bcb236af583d5bd7b6e0153fe97e7e3</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">1ec08747892bf80d01ff1dab46ccb150</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>633735/100</split:value>
|
||||
<split:quantity>633735/100</split:quantity>
|
||||
<split:account type="guid">c7a4746248d0677c6421077833477bba</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">21f58d6ddf8e529905db462291963e68</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-10-08 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:30:31 -0500</ts:date>
|
||||
<ts:ns>436816000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">30f46d6ea24efb8f57ea386be57370c2</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>3051000/100</split:value>
|
||||
<split:quantity>9000000/100000</split:quantity>
|
||||
<split:account type="guid">e0e954412d6b31dfa1fcbb9937a125b0</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">15160cb2e5b32864c451842cde8ffcd9</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-3254400/100</split:value>
|
||||
<split:quantity>-3254400/100</split:quantity>
|
||||
<split:account type="guid">3bcb236af583d5bd7b6e0153fe97e7e3</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">66a01b46ebec63544ca133efa6706f6b</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>203400/100</split:value>
|
||||
<split:quantity>203400/100</split:quantity>
|
||||
<split:account type="guid">c7a4746248d0677c6421077833477bba</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">4cb943c207e102dbc22e5ef829bbc29d</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-12-10 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:30:31 -0500</ts:date>
|
||||
<ts:ns>437989000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">27a56b13c4d24744f3cbb53329120abc</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>2053200/100</split:value>
|
||||
<split:quantity>6000000/100000</split:quantity>
|
||||
<split:account type="guid">e0e954412d6b31dfa1fcbb9937a125b0</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">19355bfa2d1208dd144aa7c32de06aa5</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-2053200/100</split:value>
|
||||
<split:quantity>-2053200/100</split:quantity>
|
||||
<split:account type="guid">3bcb236af583d5bd7b6e0153fe97e7e3</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
</gnc-v2>
|
||||
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
879
src/backend/file/test/test-files/xml2/Money95stocks.gml2
Normal file
879
src/backend/file/test/test-files/xml2/Money95stocks.gml2
Normal file
@ -0,0 +1,879 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc-v2>
|
||||
<gnc:count-data cd:type="commodity">2</gnc:count-data>
|
||||
<gnc:count-data cd:type="account">8</gnc:count-data>
|
||||
<gnc:count-data cd:type="transaction">28</gnc:count-data>
|
||||
<gnc:commodity version="2.0.0">
|
||||
<cmdty:space>NYSE</cmdty:space>
|
||||
<cmdty:id>MSFT</cmdty:id>
|
||||
<cmdty:name>Microsoft</cmdty:name>
|
||||
<cmdty:fraction>100000</cmdty:fraction>
|
||||
</gnc:commodity>
|
||||
<gnc:commodity version="2.0.0">
|
||||
<cmdty:space>NYSE</cmdty:space>
|
||||
<cmdty:id>USSA</cmdty:id>
|
||||
<cmdty:name>Usinor/Sacilor</cmdty:name>
|
||||
<cmdty:fraction>100000</cmdty:fraction>
|
||||
</gnc:commodity>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Livret bleu</act:name>
|
||||
<act:id type="guid">21db466b6be8b3f6a3043d0c0316de8c</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>BRL</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Money95stocks fr</act:name>
|
||||
<act:id type="guid">2a42eb5710ad4ddbf9352f070d603fe2</act:id>
|
||||
<act:type>STOCK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>BRL</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Microsoft</act:name>
|
||||
<act:id type="guid">c28902afc0e2168dab793b63dbf56e1f</act:id>
|
||||
<act:type>STOCK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>BRL</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:security>
|
||||
<cmdty:space>NYSE</cmdty:space>
|
||||
<cmdty:id>MSFT</cmdty:id>
|
||||
</act:security>
|
||||
<act:security-scu>100000</act:security-scu>
|
||||
<act:parent type="guid">2a42eb5710ad4ddbf9352f070d603fe2</act:parent>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Usinor/Sacilor</act:name>
|
||||
<act:id type="guid">b3955645bed5651123986f415d0e81d6</act:id>
|
||||
<act:type>STOCK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>BRL</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:security>
|
||||
<cmdty:space>NYSE</cmdty:space>
|
||||
<cmdty:id>USSA</cmdty:id>
|
||||
</act:security>
|
||||
<act:security-scu>100000</act:security-scu>
|
||||
<act:parent type="guid">2a42eb5710ad4ddbf9352f070d603fe2</act:parent>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Unspecified</act:name>
|
||||
<act:id type="guid">37d287c3550ab2810c386d1b33cc2d0b</act:id>
|
||||
<act:type>INCOME</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>BRL</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Commissions</act:name>
|
||||
<act:id type="guid">5efcfb966ef97810de2fbaaa2b352205</act:id>
|
||||
<act:type>EXPENSE</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>BRL</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Money95stocks fr</act:name>
|
||||
<act:id type="guid">da8e001155343694bd34f6aa248b1c28</act:id>
|
||||
<act:type>EXPENSE</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>BRL</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:parent type="guid">5efcfb966ef97810de2fbaaa2b352205</act:parent>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Retained Earnings</act:name>
|
||||
<act:id type="guid">1aaa099850fe7a07e2b5ae97f18b9af2</act:id>
|
||||
<act:type>EQUITY</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>BRL</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">67da2dc62331fb318640aa5a1a3da937</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-01-01 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>563969000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">b05ab9cccb7addce264e3b5614f2d620</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>363849/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">58a836c409c2e4982bb89e9d98e6b65c</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">ef2ad6ef1a0d827db4b01caa6b340fbf</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-01-16 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>569022000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">1395f3eb7d951d441962acee30ebb240</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>327773/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">b9cabeca13b398fb62a6d385ed4916a1</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">22b16ec9c03e00dd0150a22780426c93</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-02-01 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>572348000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">c25135399d6f3f65e66ccdb541975a70</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>324101/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">f74b03f7a1b731f5a85afb2a99b11dc7</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">6fdeaddf8e62e0167f657eed23ea27c8</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-02-16 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>576414000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">d6ac7052f05f821d4feeeda1ef746b65</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>321400/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">47c446ca0b094d087715591b7acefd76</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">e205d59680a7d1b3100c6f9c5fbd619c</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-03-01 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>580193000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">8980728679535dcc6fbd5d0d3e187baf</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>320510/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">6757952464d7cf759ba6af1cedde80af</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">147fb5b3bf9c64a2cfa678b899617a1b</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-03-16 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>584377000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">b0f2227be0f37117ff16816a9bba6bf8</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>317868/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">59f7f0a41217d556acab6df6315c416b</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">847b3db3292d79f04385d50678617d8f</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-04-01 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>591148000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">d6e212645b08ac2db0029f302eaefa06</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>291079/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">02525e8f79dd3f95a6531b7b0a1eb9a7</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">01b7f8239992fe56d640e8db18b357d4</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-04-16 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>607128000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">dccef28c5a743eabc50ed961fedce162</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>300140/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">abb5d05de4cb51be2e4e05a70e4ece1b</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">ba6f65b4506f3bab59fa821fc35edffc</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-05-01 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>612605000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">b45c6aee3f5802971f66a9da91d01212</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>285689/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">64750ea3cec777596f1eb2062fb1f8b9</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">2dd0477429d450166c9995e753c01331</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-05-16 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>760444000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">69748f8a33b3e85fc46adfa9af9a2c8f</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>287107/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">53d079dc07ea51d10f07f922dcb7c9c9</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">4f221b72a33d2e5403ebea07b30c60f8</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-06-01 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>767487000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">f323236b9c860bd7582d8516cab014d2</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>279478/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">52fa897efe40206378e38ce37d25545c</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">97c6d186d2c827c0add7fa251adb80f5</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-06-16 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>774300000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">69783df027e525bc1f4fe2aa61f1c5e3</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>259717/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">ebb117aa19dfef5ce5cceb9378c0bd6b</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">61bc2fba66b1b4a2b9d70a79c23d6b2a</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-07-01 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>782986000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">eb33e77786d816e4df8c9b089a2417fe</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>228890/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">39d1bd743942efb895c00e1c8dad312b</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">044cff4a8437cba0611d3f1634ed1766</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-07-06 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>788855000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">2158435efd7fba4b85440e2b291597dc</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>1800000/100</split:value>
|
||||
<split:quantity>10000000/100000</split:quantity>
|
||||
<split:account type="guid">b3955645bed5651123986f415d0e81d6</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">4a07fb7b6207731dba32e088b2f2273c</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-1800000/100</split:value>
|
||||
<split:quantity>-1800000/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">d30a071d0c23e1f7de5122768f572783</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-07-16 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>793677000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">ee5be141ec71575e8d133dafb17fc475</split:id>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>223583/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">85fd606ec412640bdc2394dceabb2863</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">3c1a1f2b9b25c700a529a88ea37673fa</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-08-01 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>810277000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">9106d261d9313b94a1791c0346026ab5</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>234456/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">01f9fa805620e2753a088d5c7926a2a4</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">ef3e43991d16cedd21ae30424314ded3</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-08-16 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>820724000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">70edfee7fda47ab599440e56c74d07bc</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>223583/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">6e6de8bc8de8edadd03d12fa27f8d3cf</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">ad374dbca2ceb69c621729110075eb6c</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-09-01 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>831302000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">593961cd24af8fec7b7dded7980572a0</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>246441/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">0290760bda0c1263a29275dbc80c6e8e</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">3ecdbc520d5995c743b968df766dac53</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-09-16 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>842924000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">a19fb70b311ab1d2995e99da8cc0dd60</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>234456/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">e8188b2256f426671644de3833c63823</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">b78ee35076e3c33e119b28ed28d9899e</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-10-01 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>870500000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">edceb57dd1ae14b92495e6b802ea1fd0</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>240299/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">a2913b7d9d6b46f98f8312a18091435a</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">55e60fdaab33f498f39f00fdd7b90a54</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-10-16 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>882549000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">b28c48aea5b2590373a9d7b30daac854</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>232805/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">fc7ea77d5aa50580342d7e96b2f49989</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">99346e3803a33ab9eca34b0c07950ca4</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-11-01 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>903735000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">6498e7c2e6fb5904dd5cec26c24435ef</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>225105/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">1f017018b6a8e4d819e5b4cc7a390025</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">99e86a13ff4f2c9682de72afe1a88e93</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-11-16 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>918545000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">dc7a3ba0b30130597a4fdcc6c3dcf369</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>246179/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">efaa1a65c36b2aa767ef5038205775d2</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">2622a1080ff6c00ea26a08b2b4ced682</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-11-18 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>924478000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">de65d2b5bbf96ea77a2a68f6e1c9b78e</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>1720000/100</split:value>
|
||||
<split:quantity>8000000/100000</split:quantity>
|
||||
<split:account type="guid">b3955645bed5651123986f415d0e81d6</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">1d2ee8256a1205440df2a8fc8aafbbca</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-1720000/100</split:value>
|
||||
<split:quantity>-1720000/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">a881bcba9acd5cc108fc0a98036c5bc3</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-12-01 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>933363000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">f64fda83b5354abc300e0daeacdbaf9d</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>246179/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">e5110d8191bf1d6fda128942062569ad</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">c00f255b41f7d2c35d67354264999478</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-12-10 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>940053000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">b5effb985dc0657eec87fd8dbfc57451</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>1744000/100</split:value>
|
||||
<split:quantity>8000000/100000</split:quantity>
|
||||
<split:account type="guid">b3955645bed5651123986f415d0e81d6</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">a4db6abc4a2effb3f73275fb29948523</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-1744000/100</split:value>
|
||||
<split:quantity>-1744000/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">8e8e5d4125418c0579f3731e25777596</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-12-16 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>958106000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">1557c89238dd07a8972b0686a0fa178b</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>48210/100</split:value>
|
||||
<split:quantity>245917/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">e005c31d25bd98288550acf63d16cfd2</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-48210/100</split:value>
|
||||
<split:quantity>-48210/100</split:quantity>
|
||||
<split:account type="guid">21db466b6be8b3f6a3043d0c0316de8c</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">2b59e457646dd04a190dcb17e050ef92</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1995-01-01 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:05 -0500</ts:date>
|
||||
<ts:ns>561450000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">6d87f9e8bb10413b90e956356641630c</split:id>
|
||||
<split:memo>Initial balance</split:memo>
|
||||
<split:reconciled-state>y</split:reconciled-state>
|
||||
<split:value>249123/100</split:value>
|
||||
<split:quantity>9400850/100000</split:quantity>
|
||||
<split:account type="guid">c28902afc0e2168dab793b63dbf56e1f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">f778537b61dab90054fe976b501cd986</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-449122/100</split:value>
|
||||
<split:quantity>-449122/100</split:quantity>
|
||||
<split:account type="guid">1aaa099850fe7a07e2b5ae97f18b9af2</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">b3a36622a46daa0cb4291ed15874fcf6</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>200000/100</split:value>
|
||||
<split:quantity>200000/100</split:quantity>
|
||||
<split:account type="guid">da8e001155343694bd34f6aa248b1c28</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
</gnc-v2>
|
||||
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
262
src/backend/file/test/test-files/xml2/abc.gml2
Normal file
262
src/backend/file/test/test-files/xml2/abc.gml2
Normal file
@ -0,0 +1,262 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc-v2>
|
||||
<gnc:count-data cd:type="account">4</gnc:count-data>
|
||||
<gnc:count-data cd:type="transaction">7</gnc:count-data>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Swipe Brokers</act:name>
|
||||
<act:id type="guid">8a2778a7eef9bc606de8a12b489f737c</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>EUR</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>My Investment Account</act:description>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>abc</act:name>
|
||||
<act:id type="guid">8c054c66321f7be82287dbb0c6b7b8a2</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>EUR</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Gift Received</act:name>
|
||||
<act:id type="guid">07212c5f31968d8d55144f1fd5651d8c</act:id>
|
||||
<act:type>INCOME</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>EUR</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>Gift Received</act:description>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Other Inc</act:name>
|
||||
<act:id type="guid">a2d8b63955baad46ddca87bbd96d399f</act:id>
|
||||
<act:type>INCOME</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>EUR</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>Other Income</act:description>
|
||||
</gnc:account>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">f5f0146e8a242f5869cfa143e9c3ad82</trn:id>
|
||||
<trn:num>TXFR</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-09-12 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:35:15 -0500</ts:date>
|
||||
<ts:ns>421794000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>move a pile of money to trading acct</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">3a460828038c8dfb7840c9c869372ad3</split:id>
|
||||
<split:memo>another memo</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>500000/100</split:value>
|
||||
<split:quantity>500000/100</split:quantity>
|
||||
<split:account type="guid">8a2778a7eef9bc606de8a12b489f737c</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">e9924d2b6802002852cec90774e41f0f</split:id>
|
||||
<split:memo>another memo</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-500000/100</split:value>
|
||||
<split:quantity>-500000/100</split:quantity>
|
||||
<split:account type="guid">8c054c66321f7be82287dbb0c6b7b8a2</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">25b6474f1d5f2cf787d52af107f41f91</trn:id>
|
||||
<trn:num>TXFR</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-11-11 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:35:15 -0500</ts:date>
|
||||
<ts:ns>422791000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>hal stock</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">f6de5ff6932e0652b54160a945345378</split:id>
|
||||
<split:memo>income</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-1200/100</split:value>
|
||||
<split:quantity>-1200/100</split:quantity>
|
||||
<split:account type="guid">8a2778a7eef9bc606de8a12b489f737c</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">a599cd75681fa150211fc28f46da50a4</split:id>
|
||||
<split:memo>income</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>1200/100</split:value>
|
||||
<split:quantity>1200/100</split:quantity>
|
||||
<split:account type="guid">8c054c66321f7be82287dbb0c6b7b8a2</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">b15e27a638b77c04eb23aea715845627</trn:id>
|
||||
<trn:num>TXFR</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-11-11 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:35:15 -0500</ts:date>
|
||||
<ts:ns>423736000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>hal stock</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">e944efe51adf6a037d2a05e975de0b9e</split:id>
|
||||
<split:memo>income</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-1100/100</split:value>
|
||||
<split:quantity>-1100/100</split:quantity>
|
||||
<split:account type="guid">8a2778a7eef9bc606de8a12b489f737c</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">39b2adbce47a9a878c72dc802b8eb19d</split:id>
|
||||
<split:memo>income</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>1100/100</split:value>
|
||||
<split:quantity>1100/100</split:quantity>
|
||||
<split:account type="guid">8c054c66321f7be82287dbb0c6b7b8a2</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">eede2259804df7746d1a5508f994f3cb</trn:id>
|
||||
<trn:num>TXFR</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-11-12 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:35:15 -0500</ts:date>
|
||||
<ts:ns>424738000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>hal stock</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">6f795a04a0822e46488b82f49745db78</split:id>
|
||||
<split:memo>sold some stock!</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-50000/100</split:value>
|
||||
<split:quantity>-50000/100</split:quantity>
|
||||
<split:account type="guid">8a2778a7eef9bc606de8a12b489f737c</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">325b94fb8e080a5a08b025a9cae2fd2a</split:id>
|
||||
<split:memo>sold some stock!</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>50000/100</split:value>
|
||||
<split:quantity>50000/100</split:quantity>
|
||||
<split:account type="guid">8c054c66321f7be82287dbb0c6b7b8a2</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">2830957d31809c4c450db2c5d5d134a2</trn:id>
|
||||
<trn:num>DEP</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-06-17 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:35:15 -0500</ts:date>
|
||||
<ts:ns>418417000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>from my pillow case</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">f5e209e5d118c1edeca8dc3d82dbd1aa</split:id>
|
||||
<split:memo>my memo</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-234500/100</split:value>
|
||||
<split:quantity>-234500/100</split:quantity>
|
||||
<split:account type="guid">a2d8b63955baad46ddca87bbd96d399f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">df70142a754e943592bec193b9a208ee</split:id>
|
||||
<split:memo>my memo</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>234500/100</split:value>
|
||||
<split:quantity>234500/100</split:quantity>
|
||||
<split:account type="guid">8c054c66321f7be82287dbb0c6b7b8a2</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">8a6f53be74b84e3557abdba90b8c325b</trn:id>
|
||||
<trn:num>101</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-08-01 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:35:15 -0500</ts:date>
|
||||
<ts:ns>420785000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>paycheck</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">e6c7440d846774962fd62c68a89145cb</split:id>
|
||||
<split:memo>the boss paid me today!</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-54300/100</split:value>
|
||||
<split:quantity>-54300/100</split:quantity>
|
||||
<split:account type="guid">07212c5f31968d8d55144f1fd5651d8c</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">91e6498ede7e1c5964c677e8cf14d2c1</split:id>
|
||||
<split:memo>the boss paid me today!</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>54300/100</split:value>
|
||||
<split:quantity>54300/100</split:quantity>
|
||||
<split:account type="guid">8c054c66321f7be82287dbb0c6b7b8a2</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">976137eadff7b9c19fa0bf4527385781</trn:id>
|
||||
<trn:num>DEP</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-08-01 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:35:15 -0500</ts:date>
|
||||
<ts:ns>419571000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>put in more money</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">eb7df1a49af1a9bbeac7484003dec5e1</split:id>
|
||||
<split:memo>this came out of my pillowcas</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-330000/100</split:value>
|
||||
<split:quantity>-330000/100</split:quantity>
|
||||
<split:account type="guid">a2d8b63955baad46ddca87bbd96d399f</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">d2d6443cc766f3bf1cfc891530903f1e</split:id>
|
||||
<split:memo>this came out of my pillowcas</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>330000/100</split:value>
|
||||
<split:quantity>330000/100</split:quantity>
|
||||
<split:account type="guid">8c054c66321f7be82287dbb0c6b7b8a2</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
</gnc-v2>
|
||||
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
394
src/backend/file/test/test-files/xml2/abcall.gml2
Normal file
394
src/backend/file/test/test-files/xml2/abcall.gml2
Normal file
@ -0,0 +1,394 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc-v2>
|
||||
<gnc:count-data cd:type="account">7</gnc:count-data>
|
||||
<gnc:count-data cd:type="transaction">10</gnc:count-data>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>ABC Bank</act:name>
|
||||
<act:id type="guid">eda56e3c0c402d1816f845430caf362e</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>Some Old Bank Acct</act:description>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Swipe Brokers</act:name>
|
||||
<act:id type="guid">729ae65a6c202a83a5335bcd32709888</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>My Investment Account</act:description>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>pocket cash</act:name>
|
||||
<act:id type="guid">5d0b89cb9bcc5074cda514d0d4c10af4</act:id>
|
||||
<act:type>CASH</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>SlaveCardt</act:name>
|
||||
<act:id type="guid">2b804a30e16e54a97da593fc1f71c386</act:id>
|
||||
<act:type>CREDIT</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>my credit card</act:description>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Gift Received</act:name>
|
||||
<act:id type="guid">04b5cbc4192f4790fac0586c5cc152f4</act:id>
|
||||
<act:type>INCOME</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>Gift Received</act:description>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Invest Inc</act:name>
|
||||
<act:id type="guid">d4f69b07cf7bb1a77c134f1b2c128684</act:id>
|
||||
<act:type>INCOME</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>Investment Income</act:description>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Other Inc</act:name>
|
||||
<act:id type="guid">0a241ed16a10c3be1836ce37f8a069e9</act:id>
|
||||
<act:type>INCOME</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>Other Income</act:description>
|
||||
</gnc:account>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">2277a65f698a0902c751d8d44db12eeb</trn:id>
|
||||
<trn:num>DEP</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-06-17 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:55 -0500</ts:date>
|
||||
<ts:ns>994727000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>from my pillow case</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">12afd90bcb29753d5572ebec9b3a6fe8</split:id>
|
||||
<split:memo>my memo</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-234500/100</split:value>
|
||||
<split:quantity>-234500/100</split:quantity>
|
||||
<split:account type="guid">0a241ed16a10c3be1836ce37f8a069e9</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">be0a8539128014e1f0d247eb54e8b07a</split:id>
|
||||
<split:memo>my memo</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>234500/100</split:value>
|
||||
<split:quantity>234500/100</split:quantity>
|
||||
<split:account type="guid">eda56e3c0c402d1816f845430caf362e</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">62bb507b39f9cb5ce13cdbfe85d5dde9</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-07-16 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:55 -0500</ts:date>
|
||||
<ts:ns>996065000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>more from my pillow</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">066346c0a87434491957713da1f3a3be</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-233300/100</split:value>
|
||||
<split:quantity>-233300/100</split:quantity>
|
||||
<split:account type="guid">04b5cbc4192f4790fac0586c5cc152f4</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">6552ad49f7202988165f0bfb0cab9f1d</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>233300/100</split:value>
|
||||
<split:quantity>233300/100</split:quantity>
|
||||
<split:account type="guid">eda56e3c0c402d1816f845430caf362e</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">ac62a8dedb6fafc4864d980e167d93b0</trn:id>
|
||||
<trn:num>101</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-08-01 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:55 -0500</ts:date>
|
||||
<ts:ns>998739000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>paycheck</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">2f0880d0d28f0a38de0784f40f1364a1</split:id>
|
||||
<split:memo>the boss paid me today!</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-54300/100</split:value>
|
||||
<split:quantity>-54300/100</split:quantity>
|
||||
<split:account type="guid">04b5cbc4192f4790fac0586c5cc152f4</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">f01abb3378f6a2c7dde4f4894540507b</split:id>
|
||||
<split:memo>the boss paid me today!</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>54300/100</split:value>
|
||||
<split:quantity>54300/100</split:quantity>
|
||||
<split:account type="guid">eda56e3c0c402d1816f845430caf362e</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">5d33e9906feeb57fc22b723447c81605</trn:id>
|
||||
<trn:num>DEP</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-08-01 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:55 -0500</ts:date>
|
||||
<ts:ns>997654000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>put in more money</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">cf74014d73e0ef079c0f10797b19ed55</split:id>
|
||||
<split:memo>some other inc</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-30000/100</split:value>
|
||||
<split:quantity>-30000/100</split:quantity>
|
||||
<split:account type="guid">0a241ed16a10c3be1836ce37f8a069e9</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">686e0a76ab0ae02b10526729d4309509</split:id>
|
||||
<split:memo>soem as invst</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-190000/100</split:value>
|
||||
<split:quantity>-190000/100</split:quantity>
|
||||
<split:account type="guid">d4f69b07cf7bb1a77c134f1b2c128684</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">8f08ab3bcae4fda2996a4d4ba58b2a65</split:id>
|
||||
<split:memo>some as gift</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-110000/100</split:value>
|
||||
<split:quantity>-110000/100</split:quantity>
|
||||
<split:account type="guid">04b5cbc4192f4790fac0586c5cc152f4</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">008fcb736cbc9dda100dba888769caec</split:id>
|
||||
<split:memo>some other inc</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>330000/100</split:value>
|
||||
<split:quantity>330000/100</split:quantity>
|
||||
<split:account type="guid">eda56e3c0c402d1816f845430caf362e</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">5e8d9293d5903ea18dc79e139b26dbc2</trn:id>
|
||||
<trn:num>TXFR</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-09-12 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:56 -0500</ts:date>
|
||||
<ts:ns>9661000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>move a pile of money to trading acct</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">1630fe79d89d59a1c1b879dd705aaa41</split:id>
|
||||
<split:memo>another memo</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>500000/100</split:value>
|
||||
<split:quantity>500000/100</split:quantity>
|
||||
<split:account type="guid">729ae65a6c202a83a5335bcd32709888</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">6113d75cfcdea42bf1bf001df8e8ef8c</split:id>
|
||||
<split:memo>another memo</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-500000/100</split:value>
|
||||
<split:quantity>-500000/100</split:quantity>
|
||||
<split:account type="guid">eda56e3c0c402d1816f845430caf362e</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">5be926417dfce34c825504c32470f78f</trn:id>
|
||||
<trn:num>TXFR</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-11-11 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:56 -0500</ts:date>
|
||||
<ts:ns>10837000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>hal stock</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">cd7d47aaee2a435c3901b3efd8e319fe</split:id>
|
||||
<split:memo>income</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-1200/100</split:value>
|
||||
<split:quantity>-1200/100</split:quantity>
|
||||
<split:account type="guid">729ae65a6c202a83a5335bcd32709888</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">ceab9089fbca47c83a487f8ea5f06c50</split:id>
|
||||
<split:memo>income</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>1200/100</split:value>
|
||||
<split:quantity>1200/100</split:quantity>
|
||||
<split:account type="guid">eda56e3c0c402d1816f845430caf362e</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">99fd0615f2db665f4bf90f438b2b5733</trn:id>
|
||||
<trn:num>TXFR</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-11-11 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:56 -0500</ts:date>
|
||||
<ts:ns>11847000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>hal stock</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">bfa9de544784620d566abc08c6e91b3a</split:id>
|
||||
<split:memo>income</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-1100/100</split:value>
|
||||
<split:quantity>-1100/100</split:quantity>
|
||||
<split:account type="guid">729ae65a6c202a83a5335bcd32709888</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">73a9e08aa5a660ca2fa2ab85acdff84f</split:id>
|
||||
<split:memo>income</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>1100/100</split:value>
|
||||
<split:quantity>1100/100</split:quantity>
|
||||
<split:account type="guid">eda56e3c0c402d1816f845430caf362e</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">698e47a93b21837fd83babbfc5f6320d</trn:id>
|
||||
<trn:num>TXFR</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-11-12 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:56 -0500</ts:date>
|
||||
<ts:ns>12862000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>hal stock</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">90e62018f0f3add84eb0ed68702ae942</split:id>
|
||||
<split:memo>sold some stock!</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-50000/100</split:value>
|
||||
<split:quantity>-50000/100</split:quantity>
|
||||
<split:account type="guid">729ae65a6c202a83a5335bcd32709888</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">73fc5c8ae0c0468304bc9650d34f4194</split:id>
|
||||
<split:memo>sold some stock!</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>50000/100</split:value>
|
||||
<split:quantity>50000/100</split:quantity>
|
||||
<split:account type="guid">eda56e3c0c402d1816f845430caf362e</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">249c2ccc0ada34b5027a64e0c18774c3</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-11-28 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:56 -0500</ts:date>
|
||||
<ts:ns>13872000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>pay the balance on the credit c</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">d4b7da3a080da8fc44e75c4389790ada</split:id>
|
||||
<split:memo>another memo</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>44500/100</split:value>
|
||||
<split:quantity>44500/100</split:quantity>
|
||||
<split:account type="guid">2b804a30e16e54a97da593fc1f71c386</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">51fc2af007ad07027dfbe3ba4d4b6304</split:id>
|
||||
<split:memo>another memo</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-44500/100</split:value>
|
||||
<split:quantity>-44500/100</split:quantity>
|
||||
<split:account type="guid">eda56e3c0c402d1816f845430caf362e</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">b1a6b7fad984e769bd6c3dd56abcfbe8</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-11-28 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:32:56 -0500</ts:date>
|
||||
<ts:ns>14844000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>cash in my pocket</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">c862917ad2379a5710b1431c395e658b</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>4500/100</split:value>
|
||||
<split:quantity>4500/100</split:quantity>
|
||||
<split:account type="guid">5d0b89cb9bcc5074cda514d0d4c10af4</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">b4ceb078101fd7b78f4a0a2c9d3e2768</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-4500/100</split:value>
|
||||
<split:quantity>-4500/100</split:quantity>
|
||||
<split:account type="guid">eda56e3c0c402d1816f845430caf362e</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
</gnc-v2>
|
||||
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
1169
src/backend/file/test/test-files/xml2/carols-data-file.gml2
Normal file
1169
src/backend/file/test/test-files/xml2/carols-data-file.gml2
Normal file
File diff suppressed because it is too large
Load Diff
418
src/backend/file/test/test-files/xml2/cbb-export.gml2
Normal file
418
src/backend/file/test/test-files/xml2/cbb-export.gml2
Normal file
@ -0,0 +1,418 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc-v2>
|
||||
<gnc:count-data cd:type="account">12</gnc:count-data>
|
||||
<gnc:count-data cd:type="transaction">9</gnc:count-data>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>cbb export</act:name>
|
||||
<act:id type="guid">504a8f7f0ff8e1e53c6df8b1bb714c47</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>HRK</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Gifts</act:name>
|
||||
<act:id type="guid">8cd43c12f1dc32ea8a51ec997fcf35ef</act:id>
|
||||
<act:type>INCOME</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>HRK</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>Gift Expenses</act:description>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Reimbursements</act:name>
|
||||
<act:id type="guid">4f502fe69043087c2186dcac27cc56bf</act:id>
|
||||
<act:type>INCOME</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>HRK</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Salary</act:name>
|
||||
<act:id type="guid">077894556323647344da06d5f5fe6449</act:id>
|
||||
<act:type>INCOME</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>HRK</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>Salary Income</act:description>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Clothing</act:name>
|
||||
<act:id type="guid">37539261eaf4bcf82c17eba0a5bf5949</act:id>
|
||||
<act:type>EXPENSE</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>HRK</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>Clothing</act:description>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Credit Card</act:name>
|
||||
<act:id type="guid">3b09243ca91d85c7b2984dd5f2490701</act:id>
|
||||
<act:type>EXPENSE</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>HRK</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Dining-Out</act:name>
|
||||
<act:id type="guid">cd6d68365b6c9f80e4b68a552b71950b</act:id>
|
||||
<act:type>EXPENSE</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>HRK</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Entertainment</act:name>
|
||||
<act:id type="guid">47585dff7df1969ea961e4b1a7fa9f27</act:id>
|
||||
<act:type>EXPENSE</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>HRK</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Household</act:name>
|
||||
<act:id type="guid">46d28144c136899835833bca6cda4e52</act:id>
|
||||
<act:type>EXPENSE</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>HRK</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>Household Misc. Exp</act:description>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Personal Cash</act:name>
|
||||
<act:id type="guid">98e07d070ecce19416db949e9124a45d</act:id>
|
||||
<act:type>EXPENSE</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>HRK</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Telephone</act:name>
|
||||
<act:id type="guid">72e555d138c8a1e7c5e8c7953a54a55e</act:id>
|
||||
<act:type>EXPENSE</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>HRK</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:description>Telephone Expense</act:description>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Textbooks</act:name>
|
||||
<act:id type="guid">224840878e17f4f7c6a5d6418747cafa</act:id>
|
||||
<act:type>EXPENSE</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>HRK</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">9d2c18d552ab4a405bee914ca188eb70</trn:id>
|
||||
<trn:num>323</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-06-23 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:37:09 -0500</ts:date>
|
||||
<ts:ns>256981000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>Eurest Dining</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">d62de62239db355ba3597b6a68722cbf</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>435/100</split:value>
|
||||
<split:quantity>435/100</split:quantity>
|
||||
<split:account type="guid">cd6d68365b6c9f80e4b68a552b71950b</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">7cbe9fae8a6a7b5f53fb233e6cb19490</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-435/100</split:value>
|
||||
<split:quantity>-435/100</split:quantity>
|
||||
<split:account type="guid">504a8f7f0ff8e1e53c6df8b1bb714c47</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">7b855de3a9f29605b1d5e0cb63d4b4cf</trn:id>
|
||||
<trn:num>331</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-07-12 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:37:09 -0500</ts:date>
|
||||
<ts:ns>251045000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>Sally Wood</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">2c298a4d03fbe7cf10a416d06f83abc0</split:id>
|
||||
<split:memo>VISA Bill - June</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>51343/100</split:value>
|
||||
<split:quantity>51343/100</split:quantity>
|
||||
<split:account type="guid">3b09243ca91d85c7b2984dd5f2490701</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">31e772f55b364e2cdef8e02e12287e1f</split:id>
|
||||
<split:memo>VISA Bill - June</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-51343/100</split:value>
|
||||
<split:quantity>-51343/100</split:quantity>
|
||||
<split:account type="guid">504a8f7f0ff8e1e53c6df8b1bb714c47</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">1964523ed04475405c7f841548c0ae75</trn:id>
|
||||
<trn:num>ATM</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-09-20 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:37:09 -0500</ts:date>
|
||||
<ts:ns>252071000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>Withdrawal</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">fe76f038b9d07bc9a47c1824f9752f68</split:id>
|
||||
<split:memo>Claremont</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>4000/100</split:value>
|
||||
<split:quantity>4000/100</split:quantity>
|
||||
<split:account type="guid">98e07d070ecce19416db949e9124a45d</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">bc707d062a5900ebb3ca4e313a7d0e96</split:id>
|
||||
<split:memo>Claremont</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-4000/100</split:value>
|
||||
<split:quantity>-4000/100</split:quantity>
|
||||
<split:account type="guid">504a8f7f0ff8e1e53c6df8b1bb714c47</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">d32f7312b4970cde93b1814a69604c72</trn:id>
|
||||
<trn:num>ATM</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-09-29 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:37:09 -0500</ts:date>
|
||||
<ts:ns>258296000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>Deposit</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">937572eea8894521984a6364b0a98128</split:id>
|
||||
<split:memo>HMC Orientation -97</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-5042/100</split:value>
|
||||
<split:quantity>-5042/100</split:quantity>
|
||||
<split:account type="guid">4f502fe69043087c2186dcac27cc56bf</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">6e99285a28ef72ff06bc0e61a7af13d1</split:id>
|
||||
<split:memo>AE paycheck</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-14300/100</split:value>
|
||||
<split:quantity>-14300/100</split:quantity>
|
||||
<split:account type="guid">077894556323647344da06d5f5fe6449</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">18927d376a09bad9b06565df5402518d</split:id>
|
||||
<split:memo>HMC Orientation -97</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>19342/100</split:value>
|
||||
<split:quantity>19342/100</split:quantity>
|
||||
<split:account type="guid">504a8f7f0ff8e1e53c6df8b1bb714c47</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">6622109f3b62c5ccf1a95918c7a1c248</trn:id>
|
||||
<trn:num>276</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-09-30 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:37:09 -0500</ts:date>
|
||||
<ts:ns>253063000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>TCI</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">605eeca327a57a30af2ed3ff6518c174</split:id>
|
||||
<split:memo>Cable - August</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>1399/100</split:value>
|
||||
<split:quantity>1399/100</split:quantity>
|
||||
<split:account type="guid">47585dff7df1969ea961e4b1a7fa9f27</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">0c48c1184a392f5b95e998b4dca76ebc</split:id>
|
||||
<split:memo>Cable - August</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-1399/100</split:value>
|
||||
<split:quantity>-1399/100</split:quantity>
|
||||
<split:account type="guid">504a8f7f0ff8e1e53c6df8b1bb714c47</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">3048039143626c17d3109ff7fc37467e</trn:id>
|
||||
<trn:num>277</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-10-11 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:37:09 -0500</ts:date>
|
||||
<ts:ns>248714000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>AT&T/063</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">eac0bf2d0950dedbaae474e0c1d4e085</split:id>
|
||||
<split:memo>Phone Bill - September</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>619/100</split:value>
|
||||
<split:quantity>619/100</split:quantity>
|
||||
<split:account type="guid">72e555d138c8a1e7c5e8c7953a54a55e</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">79e1478ef9dcd2b207b22b943283049a</split:id>
|
||||
<split:memo>Phone Bill - September</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-619/100</split:value>
|
||||
<split:quantity>-619/100</split:quantity>
|
||||
<split:account type="guid">504a8f7f0ff8e1e53c6df8b1bb714c47</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">8bf78f94bb539e8f904cc49ec7f99444</trn:id>
|
||||
<trn:num>278</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-10-11 00:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:37:09 -0500</ts:date>
|
||||
<ts:ns>249996000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>BofA</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">3743498b2f1c99256bde3d3160826579</split:id>
|
||||
<split:memo>Wal-Mart</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>4475/100</split:value>
|
||||
<split:quantity>4475/100</split:quantity>
|
||||
<split:account type="guid">46d28144c136899835833bca6cda4e52</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">c22bfdb9021873b31caedd002c22f036</split:id>
|
||||
<split:memo>Fall 1997 - Huntley</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>5330/100</split:value>
|
||||
<split:quantity>5330/100</split:quantity>
|
||||
<split:account type="guid">224840878e17f4f7c6a5d6418747cafa</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">d67f1387b0bb534372a80e168cb6e1b8</split:id>
|
||||
<split:memo>Wal-Mart</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-9805/100</split:value>
|
||||
<split:quantity>-9805/100</split:quantity>
|
||||
<split:account type="guid">504a8f7f0ff8e1e53c6df8b1bb714c47</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">4097ea8244e81a99d5862a7313e51ff8</trn:id>
|
||||
<trn:num>279</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-10-27 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:37:09 -0500</ts:date>
|
||||
<ts:ns>255798000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>Scripps College</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">30a555c9081c84934ca827f652c2e1d3</split:id>
|
||||
<split:memo>Orchestra T-Shirt</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>1000/100</split:value>
|
||||
<split:quantity>1000/100</split:quantity>
|
||||
<split:account type="guid">37539261eaf4bcf82c17eba0a5bf5949</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">a02cc758726391ec2c64e21d2188e987</split:id>
|
||||
<split:memo>Orchestra T-Shirt</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-1000/100</split:value>
|
||||
<split:quantity>-1000/100</split:quantity>
|
||||
<split:account type="guid">504a8f7f0ff8e1e53c6df8b1bb714c47</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">c1b75a304185a70beefd55f9f3b5cb17</trn:id>
|
||||
<trn:num>283</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>1997-11-24 00:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 15:37:09 -0500</ts:date>
|
||||
<ts:ns>254099000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>West Dorm</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">ee024d6fed778265b1e6513d6ee7d8d4</split:id>
|
||||
<split:memo>Dorm T-Shirts</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>1500/100</split:value>
|
||||
<split:quantity>1500/100</split:quantity>
|
||||
<split:account type="guid">8cd43c12f1dc32ea8a51ec997fcf35ef</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">cd59b6089604201628093e13dfd4bced</split:id>
|
||||
<split:memo>Dorm T-Shirts</split:memo>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-1500/100</split:value>
|
||||
<split:quantity>-1500/100</split:quantity>
|
||||
<split:account type="guid">504a8f7f0ff8e1e53c6df8b1bb714c47</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
</gnc-v2>
|
||||
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
439
src/backend/file/test/test-files/xml2/conrads-file.gml2
Normal file
439
src/backend/file/test/test-files/xml2/conrads-file.gml2
Normal file
@ -0,0 +1,439 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc-v2>
|
||||
<gnc:count-data cd:type="commodity">1</gnc:count-data>
|
||||
<gnc:count-data cd:type="account">6</gnc:count-data>
|
||||
<gnc:count-data cd:type="transaction">12</gnc:count-data>
|
||||
<gnc:commodity version="2.0.0">
|
||||
<cmdty:space>AMEX</cmdty:space>
|
||||
<cmdty:id>stk</cmdty:id>
|
||||
<cmdty:name>Stock</cmdty:name>
|
||||
<cmdty:fraction>100</cmdty:fraction>
|
||||
</gnc:commodity>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Imbalance-AUD</act:name>
|
||||
<act:id type="guid">ca36693eb25a602c171d07cb682b3e1b</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>AUD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Assets</act:name>
|
||||
<act:id type="guid">a947017cbd3b26198484086f8d93863b</act:id>
|
||||
<act:type>STOCK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>AUD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:code>A0000</act:code>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Stock1</act:name>
|
||||
<act:id type="guid">33181c172f50aaa24792256f2db4690e</act:id>
|
||||
<act:type>STOCK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>AUD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:code>A0001</act:code>
|
||||
<act:security>
|
||||
<cmdty:space>AMEX</cmdty:space>
|
||||
<cmdty:id>stk</cmdty:id>
|
||||
</act:security>
|
||||
<act:security-scu>100</act:security-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
<act:parent type="guid">a947017cbd3b26198484086f8d93863b</act:parent>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Stock2</act:name>
|
||||
<act:id type="guid">4ca39e2f16ccf288ea0d956d2371bf82</act:id>
|
||||
<act:type>STOCK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>AUD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:code>A0002</act:code>
|
||||
<act:security>
|
||||
<cmdty:space>AMEX</cmdty:space>
|
||||
<cmdty:id>stk</cmdty:id>
|
||||
</act:security>
|
||||
<act:security-scu>100</act:security-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
<act:parent type="guid">a947017cbd3b26198484086f8d93863b</act:parent>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Cash</act:name>
|
||||
<act:id type="guid">dd0cfd17078251ec6ef03da8a081f2a3</act:id>
|
||||
<act:type>ASSET</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>AUD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:code>C0000</act:code>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Bank</act:name>
|
||||
<act:id type="guid">6f8df62ae08403ee2a8eb5aa61cec772</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>AUD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:code>C0001</act:code>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
<act:parent type="guid">dd0cfd17078251ec6ef03da8a081f2a3</act:parent>
|
||||
</gnc:account>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">5a77b2d61485f286aff878be6febef64</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2000-11-28 00:04:14 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2000-11-28 00:05:23 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description>Initial purchase of stock</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">0c92275921282ef27f8ebf7389735ad2</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>15000/100</split:value>
|
||||
<split:quantity>10000/100</split:quantity>
|
||||
<split:account type="guid">33181c172f50aaa24792256f2db4690e</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">4a2b02002eb5d1f854d4269dc42c6952</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-15000/100</split:value>
|
||||
<split:quantity>-15000/100</split:quantity>
|
||||
<split:account type="guid">6f8df62ae08403ee2a8eb5aa61cec772</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">edc6b34f5d5f2a571843eb6033f7b8d9</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2000-11-28 06:39:20 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2000-11-28 07:31:28 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description>Sale (1)</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">1dffcfc068e38f78ca5801e3487e6bdb</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-3600/100</split:value>
|
||||
<split:quantity>-2000/100</split:quantity>
|
||||
<split:account type="guid">33181c172f50aaa24792256f2db4690e</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">ce0457f98bf2e1f2db98cefa1e418631</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>3600/100</split:value>
|
||||
<split:quantity>3600/100</split:quantity>
|
||||
<split:account type="guid">6f8df62ae08403ee2a8eb5aa61cec772</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">e1382f1ac62f7c0d5e3be35b7c829a69</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2000-11-28 06:39:20 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2000-11-28 07:31:30 -0500</ts:date>
|
||||
<ts:ns>66309000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>Sale (1)</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">3146350195a33643ba3ab29a6cea463e</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-3600/100</split:value>
|
||||
<split:quantity>-2000/100</split:quantity>
|
||||
<split:account type="guid">33181c172f50aaa24792256f2db4690e</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">a2ab877a4ab0387538d08493402bd186</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>3600/100</split:value>
|
||||
<split:quantity>3600/100</split:quantity>
|
||||
<split:account type="guid">6f8df62ae08403ee2a8eb5aa61cec772</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">8243a16bf6e7baa7c3f03d1269b0af59</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2000-11-28 06:39:20 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2000-11-28 07:31:46 -0500</ts:date>
|
||||
<ts:ns>664262000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>Sale (1)</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">fc1ff0f23ef547885da036b1b9900a34</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-3600/100</split:value>
|
||||
<split:quantity>-2000/100</split:quantity>
|
||||
<split:account type="guid">33181c172f50aaa24792256f2db4690e</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">99e7f2948ccaf69b77d3f5179e2236eb</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>3600/100</split:value>
|
||||
<split:quantity>3600/100</split:quantity>
|
||||
<split:account type="guid">6f8df62ae08403ee2a8eb5aa61cec772</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">29d5624b4640a6020d9d37d9bc60b29b</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2000-11-28 06:39:20 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2000-11-28 07:32:08 -0500</ts:date>
|
||||
<ts:ns>413532000</ts:ns>
|
||||
</trn:date-entered>
|
||||
<trn:description>Sale (1)</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">e945659fa802e7b66a88674f1adc8cbb</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-6400/100</split:value>
|
||||
<split:quantity>-3000/100</split:quantity>
|
||||
<split:account type="guid">33181c172f50aaa24792256f2db4690e</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">e9b926f5a8a48b12048e274119c119d3</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>6400/100</split:value>
|
||||
<split:quantity>6400/100</split:quantity>
|
||||
<split:account type="guid">6f8df62ae08403ee2a8eb5aa61cec772</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">9dc249c5bbcea69ac8c7bf7c60ca34e0</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2000-11-28 19:01:14 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2000-11-28 19:01:39 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description>buy more</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">7048bec4fcce79b3941de51944a48231</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>11000/100</split:value>
|
||||
<split:quantity>10000/100</split:quantity>
|
||||
<split:account type="guid">33181c172f50aaa24792256f2db4690e</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">1e7d08ae4724c49593982e73449e9788</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-11000/100</split:value>
|
||||
<split:quantity>-11000/100</split:quantity>
|
||||
<split:account type="guid">6f8df62ae08403ee2a8eb5aa61cec772</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">b585a0ac253ce4316fedab1b495a2006</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2000-11-29 19:18:25 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2000-11-29 19:19:12 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description>Sell lots</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">18c80178f75af440f5a1a87081b2fecb</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-50000/100</split:value>
|
||||
<split:quantity>-40000/100</split:quantity>
|
||||
<split:account type="guid">33181c172f50aaa24792256f2db4690e</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">5c96b06788eb8ab218c886ddb31dcd71</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>50000/100</split:value>
|
||||
<split:quantity>50000/100</split:quantity>
|
||||
<split:account type="guid">6f8df62ae08403ee2a8eb5aa61cec772</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">507c9bcd04bb43dc96a58ba418fe86c5</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2000-11-29 19:43:12 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2000-11-29 19:45:18 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description>some purchases</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">71ac0831a93fb732f93106f26a007469</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>32400/100</split:value>
|
||||
<split:quantity>30000/100</split:quantity>
|
||||
<split:account type="guid">33181c172f50aaa24792256f2db4690e</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">4ea809cd49577ec887c10eb0022eb695</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-32400/100</split:value>
|
||||
<split:quantity>-32400/100</split:quantity>
|
||||
<split:account type="guid">6f8df62ae08403ee2a8eb5aa61cec772</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">791ce0217b5edf0c923f9cc3dc64c169</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2001-01-08 08:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-01-08 23:56:02 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description>gargle</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">46fac7edef736a1cf3c3411de467dc14</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-2800/100</split:value>
|
||||
<split:quantity>-2000/100</split:quantity>
|
||||
<split:account type="guid">33181c172f50aaa24792256f2db4690e</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">234e1618beaaeb3dac31e931338020f2</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>2800/100</split:value>
|
||||
<split:quantity>2800/100</split:quantity>
|
||||
<split:account type="guid">6f8df62ae08403ee2a8eb5aa61cec772</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">716b216f13e16d9e7afd49b3e8e4ffb6</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2001-01-08 08:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-01-09 04:22:12 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description>fandangle</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">e673423c75e9eb1b9443aa40bed778d0</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>25000/100</split:value>
|
||||
<split:quantity>20000/100</split:quantity>
|
||||
<split:account type="guid">33181c172f50aaa24792256f2db4690e</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">49d24a29bb1bb67e44f9426265597262</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-25000/100</split:value>
|
||||
<split:quantity>-25000/100</split:quantity>
|
||||
<split:account type="guid">6f8df62ae08403ee2a8eb5aa61cec772</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">b74ee5f973e0b477eddc968384d2a594</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2001-01-08 08:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-01-09 06:57:22 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description>A small sale</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">da6264665f23b934aa5913308bfeb172</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-38000/100</split:value>
|
||||
<split:quantity>-19000/100</split:quantity>
|
||||
<split:account type="guid">33181c172f50aaa24792256f2db4690e</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">8c22cbc933e39c0c0226938c0eca8751</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>38000/100</split:value>
|
||||
<split:quantity>24000/100</split:quantity>
|
||||
<split:account type="guid">4ca39e2f16ccf288ea0d956d2371bf82</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">f9386ebc4654856d9f2c8d991f9060d8</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2000-11-28 00:03:09 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2000-11-28 00:03:58 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">59d526f5b19077cded2e38a7726d69f7</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>100000000/100</split:value>
|
||||
<split:quantity>100000000/100</split:quantity>
|
||||
<split:account type="guid">6f8df62ae08403ee2a8eb5aa61cec772</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">615e1758e9b8c958e596747191ec3226</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-100000000000/100000</split:value>
|
||||
<split:quantity>0/100000</split:quantity>
|
||||
<split:account type="guid">00000000000000000000000000000000</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
</gnc-v2>
|
||||
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
4862
src/backend/file/test/test-files/xml2/every.gml2
Normal file
4862
src/backend/file/test/test-files/xml2/every.gml2
Normal file
File diff suppressed because it is too large
Load Diff
203
src/backend/file/test/test-files/xml2/goonies-file.gml2
Normal file
203
src/backend/file/test/test-files/xml2/goonies-file.gml2
Normal file
@ -0,0 +1,203 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc-v2>
|
||||
<gnc:count-data cd:type="commodity">2</gnc:count-data>
|
||||
<gnc:count-data cd:type="account">4</gnc:count-data>
|
||||
<gnc:count-data cd:type="transaction">4</gnc:count-data>
|
||||
<gnc:commodity version="2.0.0">
|
||||
<cmdty:space>NYSE</cmdty:space>
|
||||
<cmdty:id>HAL</cmdty:id>
|
||||
<cmdty:name>HAL Stock</cmdty:name>
|
||||
<cmdty:fraction>1</cmdty:fraction>
|
||||
</gnc:commodity>
|
||||
<gnc:commodity version="2.0.0">
|
||||
<cmdty:space>NYSE</cmdty:space>
|
||||
<cmdty:id>HN</cmdty:id>
|
||||
<cmdty:name>HN Stock</cmdty:name>
|
||||
<cmdty:fraction>100</cmdty:fraction>
|
||||
</gnc:commodity>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Bank Account</act:name>
|
||||
<act:id type="guid">117841ae858b1700a017d752b7f02b09</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>HAL Stock</act:name>
|
||||
<act:id type="guid">3619a4f1c902a2f6e39ed311321034c3</act:id>
|
||||
<act:type>STOCK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:security>
|
||||
<cmdty:space>NYSE</cmdty:space>
|
||||
<cmdty:id>HAL</cmdty:id>
|
||||
</act:security>
|
||||
<act:security-scu>1</act:security-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>HN Stock</act:name>
|
||||
<act:id type="guid">b0a11711e0f804f7a51981f32556191d</act:id>
|
||||
<act:type>STOCK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:security>
|
||||
<cmdty:space>NYSE</cmdty:space>
|
||||
<cmdty:id>HN</cmdty:id>
|
||||
</act:security>
|
||||
<act:security-scu>100</act:security-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Initial Equity</act:name>
|
||||
<act:id type="guid">c421c81f4c3c4c8337b9c9bcac82c8d5</act:id>
|
||||
<act:type>EQUITY</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
</gnc:account>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">69ebbc554a972eaf56f8817990cf4cd9</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2001-03-26 09:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 21:26:10 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description>Initial Balance</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">d17d077b72b60b8a2181579d8ac67d60</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>100000/100</split:value>
|
||||
<split:quantity>100000/100</split:quantity>
|
||||
<split:account type="guid">117841ae858b1700a017d752b7f02b09</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">1c8624f5f9c9fbb5117cdc14d56e4544</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-100000/100</split:value>
|
||||
<split:quantity>-100000/100</split:quantity>
|
||||
<split:account type="guid">c421c81f4c3c4c8337b9c9bcac82c8d5</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">f7aa7c9b3b8b9de253919540af3d0de0</trn:id>
|
||||
<trn:num>0001</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>2001-03-26 09:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 21:26:30 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description>Buy stock</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">33ae98439eca012d42a0da3920784421</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>7500/100</split:value>
|
||||
<split:quantity>25/1</split:quantity>
|
||||
<split:account type="guid">3619a4f1c902a2f6e39ed311321034c3</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">ceb6b5a44cf012760ec29a1ed538d4ec</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-7500/100</split:value>
|
||||
<split:quantity>-7500/100</split:quantity>
|
||||
<split:account type="guid">117841ae858b1700a017d752b7f02b09</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">2cefabdbeaf2c66aa1998024efda6dab</trn:id>
|
||||
<trn:num>002</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>2001-03-26 09:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 21:26:44 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description>Buy stock</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">61dc6e69f93bb92779404ee67218c762</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>6670/100</split:value>
|
||||
<split:quantity>23/1</split:quantity>
|
||||
<split:account type="guid">3619a4f1c902a2f6e39ed311321034c3</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">3271a6089c6b05bd688ddf34a4032b21</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-6670/100</split:value>
|
||||
<split:quantity>-6670/100</split:quantity>
|
||||
<split:account type="guid">117841ae858b1700a017d752b7f02b09</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">df124638424fb790b19e7b02ad1a6237</trn:id>
|
||||
<trn:num>003</trn:num>
|
||||
<trn:date-posted>
|
||||
<ts:date>2001-03-26 09:00:00 -0500</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-03-26 21:27:05 -0500</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description>Buy Stock</trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">81474a2c840ed5a7ffea8e5943481b05</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>57500/100</split:value>
|
||||
<split:quantity>2500/100</split:quantity>
|
||||
<split:account type="guid">b0a11711e0f804f7a51981f32556191d</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">1ab439d20097af8eba6fc5ea2df2bc22</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-57500/100</split:value>
|
||||
<split:quantity>-57500/100</split:quantity>
|
||||
<split:account type="guid">117841ae858b1700a017d752b7f02b09</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
</gnc-v2>
|
||||
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
297
src/backend/file/test/test-files/xml2/hierachical-data-file.gml2
Normal file
297
src/backend/file/test/test-files/xml2/hierachical-data-file.gml2
Normal file
@ -0,0 +1,297 @@
|
||||
<?xml version="1.0"?>
|
||||
<gnc-v2>
|
||||
<gnc:count-data cd:type="account">8</gnc:count-data>
|
||||
<gnc:count-data cd:type="transaction">6</gnc:count-data>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Bank Accounts</act:name>
|
||||
<act:id type="guid">ec511fd83bdb2fb877d7b23042968c7e</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Bank 1</act:name>
|
||||
<act:id type="guid">c8ceb48e3378ae638357508a041ca61a</act:id>
|
||||
<act:type>BANK</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
<act:parent type="guid">ec511fd83bdb2fb877d7b23042968c7e</act:parent>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Credit Card B</act:name>
|
||||
<act:id type="guid">f5423230f8cb39ef01fc0a2696627d5d</act:id>
|
||||
<act:type>CREDIT</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Liabilities</act:name>
|
||||
<act:id type="guid">7241c921241f5ccb8f8fade580109f75</act:id>
|
||||
<act:type>LIABILITY</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Credit card A</act:name>
|
||||
<act:id type="guid">9b2119ed0a2eb7449d0209137a2410de</act:id>
|
||||
<act:type>CREDIT</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
<act:parent type="guid">7241c921241f5ccb8f8fade580109f75</act:parent>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Liability 1</act:name>
|
||||
<act:id type="guid">37bdf5369928876a5f20900458bc84a8</act:id>
|
||||
<act:type>LIABILITY</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
<act:parent type="guid">7241c921241f5ccb8f8fade580109f75</act:parent>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Liability 2</act:name>
|
||||
<act:id type="guid">4178e5b449bdec62dd02ff69d45795ef</act:id>
|
||||
<act:type>LIABILITY</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
<act:parent type="guid">7241c921241f5ccb8f8fade580109f75</act:parent>
|
||||
</gnc:account>
|
||||
<gnc:account version="2.0.0">
|
||||
<act:name>Equity</act:name>
|
||||
<act:id type="guid">7f7955a48b6a2436d8f4d0d31ca4f6c8</act:id>
|
||||
<act:type>EQUITY</act:type>
|
||||
<act:currency>
|
||||
<cmdty:space>ISO4217</cmdty:space>
|
||||
<cmdty:id>USD</cmdty:id>
|
||||
</act:currency>
|
||||
<act:currency-scu>100</act:currency-scu>
|
||||
<act:slots>
|
||||
<slot>
|
||||
<slot:key>notes</slot:key>
|
||||
<slot:value type="string"/>
|
||||
</slot>
|
||||
</act:slots>
|
||||
</gnc:account>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">9926159b3af5a5cdb1f0de7ff72fe751</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2001-04-04 10:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-04-05 03:43:14 -0400</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">55d3805d566ec9516c0c0bcc8a265e8d</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-100000/100</split:value>
|
||||
<split:quantity>-100000/100</split:quantity>
|
||||
<split:account type="guid">7241c921241f5ccb8f8fade580109f75</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">1f7d223dd36ff745a9463bdc17d20d2f</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>100000/100</split:value>
|
||||
<split:quantity>100000/100</split:quantity>
|
||||
<split:account type="guid">ec511fd83bdb2fb877d7b23042968c7e</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">3ae95f7210a67e83bf7f53adac572857</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2001-04-04 10:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-04-05 03:00:17 -0400</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">0dd5b1d3676282c89bc88c54c53828b8</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>50000/100</split:value>
|
||||
<split:quantity>50000/100</split:quantity>
|
||||
<split:account type="guid">c8ceb48e3378ae638357508a041ca61a</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">0cb370b15cf16fbaa772ae10b53ba906</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-50000/100</split:value>
|
||||
<split:quantity>-50000/100</split:quantity>
|
||||
<split:account type="guid">7f7955a48b6a2436d8f4d0d31ca4f6c8</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">50eae9025b2f98260d372d017c13ad00</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2001-04-04 10:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-04-05 03:00:40 -0400</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">0301fada51604eaf37eb180c29b1397a</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>50000/100</split:value>
|
||||
<split:quantity>50000/100</split:quantity>
|
||||
<split:account type="guid">c8ceb48e3378ae638357508a041ca61a</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">85bb45926405afa3bb790df1fca10a11</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-50000/100</split:value>
|
||||
<split:quantity>-50000/100</split:quantity>
|
||||
<split:account type="guid">4178e5b449bdec62dd02ff69d45795ef</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">ca0b226a20d5d30387c5cdeee9033fb2</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2001-04-04 10:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-04-05 03:21:15 -0400</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">b298ee084fc4fb7992097d25c567cdf4</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-25000/100</split:value>
|
||||
<split:quantity>-25000/100</split:quantity>
|
||||
<split:account type="guid">9b2119ed0a2eb7449d0209137a2410de</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">012ecbeb74ee4e64f4704fff9956abd7</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>25000/100</split:value>
|
||||
<split:quantity>25000/100</split:quantity>
|
||||
<split:account type="guid">c8ceb48e3378ae638357508a041ca61a</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">1c9c58d27d44a85565eb9d2a01341052</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2001-04-04 10:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-04-05 03:22:12 -0400</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">c9a9e4dafebcfefb21f34ab439958d30</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-25000/100</split:value>
|
||||
<split:quantity>-25000/100</split:quantity>
|
||||
<split:account type="guid">f5423230f8cb39ef01fc0a2696627d5d</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">e9eadfab55cafb17e02b71aba6ac9b80</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>25000/100</split:value>
|
||||
<split:quantity>25000/100</split:quantity>
|
||||
<split:account type="guid">c8ceb48e3378ae638357508a041ca61a</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
<gnc:transaction version="2.0.0">
|
||||
<trn:id type="guid">c8762190f365c705d10fc1e34e01b44a</trn:id>
|
||||
<trn:date-posted>
|
||||
<ts:date>2002-08-12 10:00:00 -0400</ts:date>
|
||||
</trn:date-posted>
|
||||
<trn:date-entered>
|
||||
<ts:date>2001-04-05 03:00:32 -0400</ts:date>
|
||||
</trn:date-entered>
|
||||
<trn:description></trn:description>
|
||||
<trn:splits>
|
||||
<trn:split>
|
||||
<split:id type="guid">3cd2306aee06cf7e99254b520782feee</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>50000/100</split:value>
|
||||
<split:quantity>50000/100</split:quantity>
|
||||
<split:account type="guid">c8ceb48e3378ae638357508a041ca61a</split:account>
|
||||
</trn:split>
|
||||
<trn:split>
|
||||
<split:id type="guid">c99dd9d7c59c53ac79e4eea0e477eb73</split:id>
|
||||
<split:reconciled-state>n</split:reconciled-state>
|
||||
<split:value>-50000/100</split:value>
|
||||
<split:quantity>-50000/100</split:quantity>
|
||||
<split:account type="guid">37bdf5369928876a5f20900458bc84a8</split:account>
|
||||
</trn:split>
|
||||
</trn:splits>
|
||||
</gnc:transaction>
|
||||
</gnc-v2>
|
||||
|
||||
<!-- Local variables: -->
|
||||
<!-- mode: xml -->
|
||||
<!-- End: -->
|
10022
src/backend/file/test/test-files/xml2/ms-money.gml2
Normal file
10022
src/backend/file/test/test-files/xml2/ms-money.gml2
Normal file
File diff suppressed because it is too large
Load Diff
5336
src/backend/file/test/test-files/xml2/pricedb1.gml2
Normal file
5336
src/backend/file/test/test-files/xml2/pricedb1.gml2
Normal file
File diff suppressed because it is too large
Load Diff
214
src/backend/file/test/test-kvp-frames.c
Normal file
214
src/backend/file/test/test-kvp-frames.c
Normal file
@ -0,0 +1,214 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "gnc-test-stuff.h"
|
||||
|
||||
#include "kvp_frame.h"
|
||||
|
||||
#include "sixtp-dom-generators.h"
|
||||
#include "sixtp-dom-parsers.h"
|
||||
|
||||
|
||||
static void
|
||||
test_kvp_get_slot(int run,
|
||||
kvp_frame *test_frame1, const kvp_value *test_val1,
|
||||
const gchar *test_key)
|
||||
{
|
||||
const kvp_value *test_val2;
|
||||
test_val2 = kvp_frame_get_slot(test_frame1, test_key);
|
||||
if(kvp_value_compare(test_val1, test_val2) == 0)
|
||||
{
|
||||
success_args("kvp_frame_get_slot", __FILE__, __LINE__, "run=%d", run);
|
||||
}
|
||||
else
|
||||
{
|
||||
gchar *tmp;
|
||||
failure_args("kvp_frame_get_slot", __FILE__, __LINE__, "run=%d", run);
|
||||
tmp = kvp_value_to_string(test_val2);
|
||||
printf(" Value is %s\n", tmp);
|
||||
g_free(tmp);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
test_kvp_copy_compare(int run,
|
||||
kvp_frame *test_frame1, const kvp_value *test_val1,
|
||||
const gchar *test_key)
|
||||
{
|
||||
kvp_frame *test_frame2;
|
||||
|
||||
test_frame2 = kvp_frame_copy(test_frame1);
|
||||
|
||||
do_test_args(test_frame2 != NULL, "kvp_frame_copy", __FILE__, __LINE__, "run=%d", run);
|
||||
|
||||
if(kvp_frame_compare(test_frame1, test_frame2) == 0)
|
||||
{
|
||||
success_args("kvp_frame_copy->kvp_frame_compare", __FILE__, __LINE__, "run=%d",run);
|
||||
}
|
||||
else
|
||||
{
|
||||
gchar *tmp;
|
||||
failure_args("kvp_frame_copy->kvp_frame_compare", __FILE__, __LINE__, "run=%d", run);
|
||||
tmp = kvp_frame_to_string(test_frame1);
|
||||
printf("Frame1 is %s\n", tmp);
|
||||
g_free(tmp);
|
||||
tmp = kvp_frame_to_string(test_frame2);
|
||||
printf("Frame2 is %s\n", tmp);
|
||||
g_free(tmp);
|
||||
}
|
||||
|
||||
kvp_frame_delete(test_frame2);
|
||||
}
|
||||
|
||||
static void
|
||||
test_kvp_copy_get_slot(int run,
|
||||
kvp_frame *test_frame1, const kvp_value *test_val1,
|
||||
const gchar *test_key)
|
||||
{
|
||||
kvp_frame *test_frame2;
|
||||
const kvp_value *test_val2;
|
||||
|
||||
test_frame2 = kvp_frame_copy(test_frame1);
|
||||
test_val2 = kvp_frame_get_slot(test_frame2, test_key);
|
||||
if(kvp_value_compare(test_val1, test_val2) == 0)
|
||||
{
|
||||
success_args("kvp_frame_copy->kvp_frame_get_slot", __FILE__, __LINE__, "run=%d", run);
|
||||
}
|
||||
else
|
||||
{
|
||||
gchar *tmp;
|
||||
failure_args("kvp_frame_copy->kvp_frame_get_slot", __FILE__, __LINE__, "run=%d", run);
|
||||
tmp = kvp_frame_to_string(test_frame1);
|
||||
printf("Frame1 is %s\n", tmp);
|
||||
g_free(tmp);
|
||||
tmp = kvp_frame_to_string(test_frame2);
|
||||
printf("Frame2 is %s\n", tmp);
|
||||
g_free(tmp);
|
||||
}
|
||||
kvp_frame_delete(test_frame2);
|
||||
}
|
||||
|
||||
static void
|
||||
test_kvp_create_delete(void)
|
||||
{
|
||||
kvp_frame *test_frame;
|
||||
|
||||
test_frame = kvp_frame_new();
|
||||
|
||||
if(test_frame != NULL)
|
||||
{
|
||||
kvp_frame_delete(test_frame);
|
||||
test_frame = NULL;
|
||||
success("kvp_frame_new");
|
||||
}
|
||||
else
|
||||
{
|
||||
failure("kvp_frame_new");
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
test_kvp_frames1(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for(i = 0; i < 20; i++)
|
||||
{
|
||||
kvp_frame *test_frame1;
|
||||
gchar *test_key;
|
||||
kvp_value *test_val1;
|
||||
|
||||
test_val1 = get_random_kvp_value(i % KVP_TYPE_FRAME);
|
||||
|
||||
test_frame1 = kvp_frame_new();
|
||||
test_key = get_random_string();
|
||||
|
||||
kvp_frame_set_slot(test_frame1, test_key, test_val1);
|
||||
|
||||
test_kvp_get_slot(i, test_frame1, test_val1, test_key);
|
||||
test_kvp_copy_compare(i, test_frame1, test_val1, test_key);
|
||||
test_kvp_copy_get_slot(i, test_frame1, test_val1, test_key);
|
||||
|
||||
kvp_value_delete(test_val1);
|
||||
g_free(test_key);
|
||||
kvp_frame_delete(test_frame1);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
test_kvp_printing(void)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < 20; i++)
|
||||
{
|
||||
kvp_frame *ran_frame;
|
||||
gchar *char_rep;
|
||||
|
||||
ran_frame = get_random_kvp_frame();
|
||||
char_rep = kvp_frame_to_string(ran_frame);
|
||||
|
||||
/* if we don't crash it's good :) */
|
||||
/* puts(char_rep); */
|
||||
|
||||
g_free(char_rep);
|
||||
kvp_frame_delete(ran_frame);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
test_kvp_xml_stuff(void)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < 20; i++)
|
||||
{
|
||||
kvp_frame *test_frame1;
|
||||
kvp_frame *test_frame2;
|
||||
xmlNodePtr test_node;
|
||||
|
||||
test_frame1 = get_random_kvp_frame();
|
||||
|
||||
test_node = kvp_frame_to_dom_tree("test-kvp", test_frame1);
|
||||
|
||||
if(!test_node)
|
||||
{
|
||||
failure_args("xml stuff",__FILE__, __LINE__,
|
||||
"kvp_frame_to_dom_tree produced NULL");
|
||||
}
|
||||
else
|
||||
{
|
||||
test_frame2 = dom_tree_to_kvp_frame(test_node);
|
||||
|
||||
if(kvp_frame_compare(test_frame1, test_frame2) == 0)
|
||||
{
|
||||
success("xml stuff");
|
||||
}
|
||||
else
|
||||
{
|
||||
gchar *tmp;
|
||||
failure("xml stuff");
|
||||
printf(" with xml:\n");
|
||||
xmlElemDump(stdout, NULL, test_node);
|
||||
printf("\n");
|
||||
tmp = kvp_frame_to_string(test_frame2);
|
||||
printf(" and kvp_frame:\n%s\n", tmp);
|
||||
g_free(tmp);
|
||||
}
|
||||
kvp_frame_delete(test_frame2);
|
||||
xmlFreeNode(test_node);
|
||||
}
|
||||
|
||||
kvp_frame_delete(test_frame1);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char** argv)
|
||||
{
|
||||
test_kvp_create_delete();
|
||||
test_kvp_printing();
|
||||
test_kvp_frames1();
|
||||
test_kvp_xml_stuff();
|
||||
print_test_results();
|
||||
exit(get_rv());
|
||||
}
|
94
src/backend/file/test/test-load-example-account.c
Normal file
94
src/backend/file/test/test-load-example-account.c
Normal file
@ -0,0 +1,94 @@
|
||||
#include <glib.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <dirent.h>
|
||||
|
||||
#include "gnc-engine-util.h"
|
||||
#include "io-gncxml-v2.h"
|
||||
#include "gnc-engine.h"
|
||||
#include "gnc-book.h"
|
||||
|
||||
#include "io-example-account.h"
|
||||
|
||||
#include "gnc-test-stuff.h"
|
||||
|
||||
static const gchar *da_ending = ".gnucash-xea";
|
||||
|
||||
static void
|
||||
test_load_file(const char *filename)
|
||||
{
|
||||
GncExampleAccount *gea;
|
||||
|
||||
gea = gnc_read_example_account(filename);
|
||||
|
||||
if(gea != NULL)
|
||||
{
|
||||
success("example account load");
|
||||
gnc_destroy_example_account(gea);
|
||||
}
|
||||
else
|
||||
{
|
||||
failure_args("example account load", __FILE__, __LINE__, "for file %s",
|
||||
filename);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
const char *location = "../../../../accounts/C";
|
||||
DIR *ea_dir;
|
||||
GSList *list;
|
||||
|
||||
list = NULL;
|
||||
|
||||
gnc_engine_init(argc, argv);
|
||||
|
||||
if((ea_dir = opendir(location)) == NULL)
|
||||
{
|
||||
failure("unable to open ea directory");
|
||||
}
|
||||
else
|
||||
{
|
||||
struct dirent *entry;
|
||||
|
||||
while((entry = readdir(ea_dir)) != NULL)
|
||||
{
|
||||
struct stat file_info;
|
||||
if(strstr(entry->d_name, da_ending) != NULL)
|
||||
{
|
||||
char *to_open = g_strdup_printf("%s/%s", location,
|
||||
entry->d_name);
|
||||
if(stat(to_open, &file_info) != 0)
|
||||
{
|
||||
failure("unable to stat file");
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!S_ISDIR(file_info.st_mode))
|
||||
{
|
||||
test_load_file(to_open);
|
||||
}
|
||||
}
|
||||
g_free(to_open);
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir(ea_dir);
|
||||
|
||||
{
|
||||
list = gnc_load_example_account_list(location);
|
||||
|
||||
do_test(list != NULL, "gnc_load_example_account_list");
|
||||
|
||||
gnc_free_example_account_list(list);
|
||||
}
|
||||
|
||||
|
||||
print_test_results();
|
||||
exit(get_rv());
|
||||
}
|
18
src/backend/file/test/test-load-module
Executable file
18
src/backend/file/test/test-load-module
Executable file
@ -0,0 +1,18 @@
|
||||
#! /bin/sh
|
||||
exec guile -s "$0"
|
||||
!#
|
||||
|
||||
(display " testing file backend load ... ")
|
||||
(use-modules (gnucash gnc-module))
|
||||
(gnc:module-system-init)
|
||||
|
||||
(if (gnc:module-load "gnucash/backend/file" 0)
|
||||
(begin
|
||||
(display "ok\n")
|
||||
(exit 0))
|
||||
(begin
|
||||
(display "failed\n")
|
||||
(exit -1)))
|
||||
|
||||
|
||||
|
107
src/backend/file/test/test-load-xml2.c
Normal file
107
src/backend/file/test/test-load-xml2.c
Normal file
@ -0,0 +1,107 @@
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <dirent.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "io-gncxml-v2.h"
|
||||
#include "gnc-engine.h"
|
||||
#include "gnc-book.h"
|
||||
|
||||
#include "gnc-book.h"
|
||||
#include "Backend.h"
|
||||
#include "TransLog.h"
|
||||
|
||||
#include "gnc-test-stuff.h"
|
||||
|
||||
static void
|
||||
remove_files_pattern(const char *begining, const char *ending)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
remove_locks(const char *filename)
|
||||
{
|
||||
struct stat buf;
|
||||
char *to_remove;
|
||||
|
||||
{
|
||||
to_remove = g_strdup_printf("%s.LCK", filename);
|
||||
if(stat(to_remove, &buf) != -1)
|
||||
{
|
||||
unlink(to_remove);
|
||||
}
|
||||
g_free(to_remove);
|
||||
}
|
||||
|
||||
remove_files_pattern(filename, ".LCK");
|
||||
}
|
||||
|
||||
static void
|
||||
test_load_file(const char *filename)
|
||||
{
|
||||
GNCBook *book;
|
||||
|
||||
book = gnc_book_new();
|
||||
|
||||
remove_locks(filename);
|
||||
|
||||
gnc_book_begin(book, filename, FALSE, FALSE);
|
||||
|
||||
gnc_book_load_from_xml_file_v2(book, NULL);
|
||||
|
||||
do_test_args(
|
||||
gnc_book_get_error(book) == ERR_BACKEND_NO_ERR,
|
||||
"book load xml2", __FILE__, __LINE__, "%d for file %s",
|
||||
gnc_book_get_error(book), filename);
|
||||
|
||||
gnc_book_destroy(book);
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
const char *location = "test-files/xml2";
|
||||
DIR *xml2_dir;
|
||||
|
||||
gnc_engine_init(argc, argv);
|
||||
xaccLogDisable();
|
||||
|
||||
if((xml2_dir = opendir(location)) == NULL)
|
||||
{
|
||||
failure("unable to open xml2 directory");
|
||||
}
|
||||
else
|
||||
{
|
||||
struct dirent *entry;
|
||||
|
||||
while((entry = readdir(xml2_dir)) != NULL)
|
||||
{
|
||||
if(strstr(entry->d_name, ".gml2") != NULL)
|
||||
{
|
||||
struct stat file_info;
|
||||
char *to_open = g_strdup_printf("%s/%s", location,
|
||||
entry->d_name);
|
||||
if(stat(to_open, &file_info) != 0)
|
||||
{
|
||||
failure("unable to stat file");
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!S_ISDIR(file_info.st_mode))
|
||||
{
|
||||
test_load_file(to_open);
|
||||
}
|
||||
}
|
||||
g_free(to_open);
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir(xml2_dir);
|
||||
|
||||
print_test_results();
|
||||
exit(get_rv());
|
||||
}
|
29
src/backend/file/test/test-real-data.sh
Executable file
29
src/backend/file/test/test-real-data.sh
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
#set -e
|
||||
|
||||
EXIT_VALUE=0
|
||||
|
||||
for i in test-files/xml2/*.gml2 ; do
|
||||
|
||||
if [ ! -d $i ] ; then
|
||||
for j in account commodity transaction ; do
|
||||
|
||||
rm -rf $j
|
||||
|
||||
mkdir $j
|
||||
FILES=`perl grab-types.pl "gnc:$j" $i "$j/dataXXX.xml"`
|
||||
if [ ! -z "$FILES" ] ; then
|
||||
echo "Testing file $i, section $j"
|
||||
|
||||
eval "./test-xml-$j $FILES"
|
||||
if [ $? != 0 ] ; then
|
||||
EXIT_VALUE=1
|
||||
fi
|
||||
fi
|
||||
rm -rf $j
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
exit $EXIT_VALUE
|
185
src/backend/file/test/test-save-in-lang.c
Normal file
185
src/backend/file/test/test-save-in-lang.c
Normal file
@ -0,0 +1,185 @@
|
||||
#include <glib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "gnc-test-stuff.h"
|
||||
#include "test-stuff.h"
|
||||
#include "gnc-book.h"
|
||||
#include "gnc-engine.h"
|
||||
#include "TransLog.h"
|
||||
|
||||
#include "io-gncxml-v2.h"
|
||||
|
||||
const char *possible_envs[] = {
|
||||
"C", "af", "ar", "az", "be", "bg", "bg_BG.cp1251", "br", "ca", "cs",
|
||||
"cy", "cz", "da", "de", "de_AT", "el", "en", "en_AU", "en_CA", "en_GB",
|
||||
"eo", "es", "es_DO", "es_ES", "es_GT", "es_HN", "es_MX", "es_PA",
|
||||
"es_PE", "es_SV", "et", "et_EE", "eu", "fi", "fi_FI", "fr", "ga",
|
||||
"gd", "gl", "gr", "gv", "he", "hr", "hu", "id", "is", "it", "ja",
|
||||
"ja_JP", "ja_JP.SJIS", "ko", "ko_KR", "ko_KR.eucKR", "kw", "l10n",
|
||||
"locale.alias", "lt", "nl", "nn", "no", "no@nynorsk", "no_NO", "no_NY",
|
||||
"pl", "pl_PL", "pt", "pt_BR", "pt_PT", "ro", "ru", "ru_RU", "rudos",
|
||||
"rukoi8", "ruwin", "sk", "sl", "sl_SI", "sp", "sr", "sr_YU", "sv", "ta",
|
||||
"tr", "uk", "vi", "vi_VN.VISCII", "wa", "zh", "zh_CN", "zh_CN.EUC",
|
||||
"zh_CN.GB2312", "zh_TW", "zh_TW.Big5",
|
||||
NULL
|
||||
};
|
||||
|
||||
const char *possible_vars[] = {
|
||||
"LANG", "LC_CTYPE", "LC_COLLATE", "LC_TIME", "LC_NUMERIC",
|
||||
"LC_MONETARY", "LC_MESSAGES",
|
||||
NULL
|
||||
};
|
||||
|
||||
const char *diff_command = "cmp %s %s";
|
||||
const char *test_dir = "test-files/xml2";
|
||||
const char *base_env = "C";
|
||||
|
||||
static char*
|
||||
gen_new_file_name(const char *filename, const char *env)
|
||||
{
|
||||
char *ret;
|
||||
|
||||
ret = g_new(char, strlen(filename) + strlen(env) + 2);
|
||||
strcpy(ret, filename);
|
||||
strcat(ret, "-");
|
||||
strcat(ret, env);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int
|
||||
run_command_get_return(const char *command)
|
||||
{
|
||||
return system(command);
|
||||
}
|
||||
|
||||
static char *
|
||||
test_file(const char *filename)
|
||||
{
|
||||
int i;
|
||||
|
||||
for(i = 0; possible_envs[i] != NULL; i++)
|
||||
{
|
||||
GNCBook *book;
|
||||
char *cmd;
|
||||
char *new_file = gen_new_file_name(filename, possible_envs[i]);
|
||||
char *putenv_str;
|
||||
GNCBook *new_book;
|
||||
|
||||
book = gnc_book_new();
|
||||
|
||||
if(!gnc_book_begin(book, filename, TRUE, FALSE))
|
||||
{
|
||||
gnc_book_destroy(book);
|
||||
return g_strdup("gnc_book_begin");
|
||||
}
|
||||
|
||||
if(!gnc_book_load(book))
|
||||
{
|
||||
int error = gnc_book_get_error(book);
|
||||
gnc_book_destroy(book);
|
||||
return g_strdup_printf("gnc_book_load errorid %d", error);
|
||||
}
|
||||
|
||||
putenv_str = g_strdup_printf ("%s=%s", "LANG", possible_envs[i]);
|
||||
putenv (putenv_str);
|
||||
g_free (putenv_str);
|
||||
|
||||
new_book = gnc_book_new();
|
||||
|
||||
if(!gnc_book_begin(new_book, new_file, FALSE, FALSE))
|
||||
{
|
||||
g_free(new_file);
|
||||
gnc_book_destroy(book);
|
||||
gnc_book_destroy(new_book);
|
||||
return g_strdup_printf("gnc_book_begin 2 with LANG=%s",
|
||||
possible_envs[i]);
|
||||
}
|
||||
|
||||
gnc_book_save(new_book);
|
||||
|
||||
cmd = g_strdup_printf(diff_command, filename, new_file);
|
||||
|
||||
if(run_command_get_return(cmd) != 0)
|
||||
{
|
||||
g_free(cmd);
|
||||
g_free(new_file);
|
||||
gnc_book_destroy(book);
|
||||
gnc_book_destroy(new_book);
|
||||
return g_strdup_printf("run_command_get_return with LANG=%s",
|
||||
possible_envs[i]);
|
||||
}
|
||||
|
||||
g_free(new_file);
|
||||
g_free(cmd);
|
||||
gnc_book_destroy(book);
|
||||
gnc_book_destroy(new_book);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
DIR *adir;
|
||||
|
||||
gnc_engine_init(argc, argv);
|
||||
xaccLogDisable();
|
||||
|
||||
if((adir = opendir(test_dir)) == NULL)
|
||||
{
|
||||
failure_args("opendir", __FILE__, __LINE__,
|
||||
"couldn't open dir %s", test_dir);
|
||||
}
|
||||
else
|
||||
{
|
||||
struct dirent *next_file;
|
||||
|
||||
while((next_file = readdir(adir)) != NULL)
|
||||
{
|
||||
struct stat file_info;
|
||||
char* filename;
|
||||
char* putenv_str;
|
||||
|
||||
filename = g_strdup_printf("%s/%s", test_dir, next_file->d_name);
|
||||
|
||||
if(stat(filename, &file_info) != 0)
|
||||
{
|
||||
failure_args("stat", __FILE__, __LINE__,
|
||||
"couldn't stat file %s: %s", filename,
|
||||
strerror(errno));
|
||||
g_free(filename);
|
||||
break;
|
||||
}
|
||||
|
||||
putenv_str = g_strdup_printf ("%s=%s", "LANG", base_env);
|
||||
putenv (putenv_str);
|
||||
g_free (putenv_str);
|
||||
|
||||
if(!S_ISDIR(file_info.st_mode))
|
||||
{
|
||||
char *msg = test_file(filename);
|
||||
|
||||
if(msg != NULL)
|
||||
{
|
||||
failure_args("test_file", __FILE__, __LINE__,
|
||||
"failure testing file %s with msg %s",
|
||||
filename, msg);
|
||||
}
|
||||
g_free(msg);
|
||||
}
|
||||
|
||||
g_free(filename);
|
||||
}
|
||||
}
|
||||
|
||||
print_test_results();
|
||||
exit(get_rv());
|
||||
}
|
113
src/backend/file/test/test-string-converters.c
Normal file
113
src/backend/file/test/test-string-converters.c
Normal file
@ -0,0 +1,113 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "sixtp-dom-parsers.h"
|
||||
#include "sixtp-dom-generators.h"
|
||||
|
||||
#include "gnc-engine-util.h"
|
||||
|
||||
#include "gnc-test-stuff.h"
|
||||
|
||||
#include "guid.h"
|
||||
#include "date.h"
|
||||
#include "gnc-numeric.h"
|
||||
|
||||
static void
|
||||
test_binary()
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < 20; i++)
|
||||
{
|
||||
bin_data *test_data1;
|
||||
void *test_data2;
|
||||
guint64 test_data2_len;
|
||||
gchar *converted;
|
||||
|
||||
test_data1 = get_random_binary_data();
|
||||
|
||||
converted = binary_to_string(test_data1->data, test_data1->len);
|
||||
|
||||
if(!converted)
|
||||
{
|
||||
failure_args("binary_data", __FILE__, __LINE__, "binary_to_string returned NULL");
|
||||
continue;
|
||||
}
|
||||
|
||||
if(!string_to_binary(converted, &test_data2, &test_data2_len))
|
||||
{
|
||||
failure_args("binary_data", __FILE__, __LINE__,
|
||||
"string_to_binary returned FALSE with data:\n%s\n",
|
||||
converted);
|
||||
continue;
|
||||
}
|
||||
|
||||
if(test_data2_len != test_data1->len)
|
||||
{
|
||||
failure_args("binary_data", __FILE__, __LINE__,
|
||||
"lengths don't match: %lld vs %d",
|
||||
(long long int) test_data2_len, test_data1->len);
|
||||
continue;
|
||||
}
|
||||
|
||||
{
|
||||
int j;
|
||||
guchar *d1 = test_data1->data;
|
||||
guchar *d2 = (guchar*)test_data2;
|
||||
|
||||
for(j = 0; j < test_data2_len; j++)
|
||||
{
|
||||
if(d1[j] != d2[j])
|
||||
{
|
||||
failure_args("binary_data", __FILE__, __LINE__,
|
||||
"data doesn't match at point %d.\n%d vs %d",
|
||||
i, d1[j], d2[j]);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
success("binary_data");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static char *test_strings[] = {
|
||||
"FooBar",
|
||||
"<Ugly crap>",
|
||||
"Something with a & in it",
|
||||
"Ugly(*!&@#$NTHOEAUTF\"ntaheu09.h,. \n\t",
|
||||
"\n\t\n\t",
|
||||
NULL
|
||||
};
|
||||
|
||||
static void
|
||||
test_string_converters(void)
|
||||
{
|
||||
char *mark;
|
||||
int i;
|
||||
|
||||
for(i = 0, mark = test_strings[i]; mark; i++, mark = test_strings[i])
|
||||
{
|
||||
xmlNodePtr test_node;
|
||||
gchar *backout;
|
||||
test_node = text_to_dom_tree("test-string", mark);
|
||||
|
||||
backout = dom_tree_to_text(test_node);
|
||||
|
||||
do_test_args(
|
||||
safe_strcmp(backout, mark) == 0,
|
||||
"string converting", __FILE__, __LINE__, "with string %s", mark);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
test_binary();
|
||||
fflush(stdout);
|
||||
test_string_converters();
|
||||
fflush(stdout);
|
||||
print_test_results();
|
||||
exit(get_rv());
|
||||
}
|
190
src/backend/file/test/test-stuff.c
Normal file
190
src/backend/file/test/test-stuff.c
Normal file
@ -0,0 +1,190 @@
|
||||
/*
|
||||
* Created 20010320 by bstanley to hold only those
|
||||
* testing functions which are independent of the rest of
|
||||
* the GNUCash system.
|
||||
*
|
||||
* This allows me to compile simple test programs standalone...
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <glib.h>
|
||||
#include "test-stuff.h"
|
||||
|
||||
void vsuccess_args(
|
||||
const char *test_title,
|
||||
const char *file,
|
||||
int line,
|
||||
const char *format,
|
||||
va_list ap);
|
||||
|
||||
void vfailure_args(
|
||||
const char *test_title,
|
||||
const char *file,
|
||||
int line,
|
||||
const char *format,
|
||||
va_list ap);
|
||||
|
||||
static guint successes;
|
||||
static guint failures;
|
||||
static gboolean success_should_print = FALSE;
|
||||
|
||||
void
|
||||
success_call(
|
||||
const char *test_title,
|
||||
const char* file,
|
||||
int line )
|
||||
{
|
||||
success_args( test_title, file, line, "" );
|
||||
}
|
||||
|
||||
void
|
||||
success_args(
|
||||
const char *test_title,
|
||||
const char *file,
|
||||
int line,
|
||||
const char *format,
|
||||
... )
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap,format);
|
||||
vsuccess_args( test_title, file, line, format, ap );
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
void
|
||||
vsuccess_args(
|
||||
const char *test_title,
|
||||
const char *file,
|
||||
int line,
|
||||
const char *format,
|
||||
va_list ap)
|
||||
{
|
||||
if( success_should_print ) {
|
||||
printf("SUCCESS: %s, %s:%d ", test_title, file, line );
|
||||
vprintf(format, ap);
|
||||
printf("\n");
|
||||
fflush(stdout);
|
||||
}
|
||||
++successes;
|
||||
}
|
||||
|
||||
void
|
||||
failure_call(
|
||||
const char *test_title,
|
||||
const char *file,
|
||||
int line)
|
||||
{
|
||||
failure_args( test_title, file, line, "" );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
failure_args(
|
||||
const char *test_title,
|
||||
const char *file,
|
||||
int line,
|
||||
const char *format,
|
||||
... )
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap,format);
|
||||
vfailure_args( test_title, file, line, format, ap );
|
||||
va_end(ap);
|
||||
}
|
||||
void
|
||||
vfailure_args(
|
||||
const char *test_title,
|
||||
const char* file,
|
||||
int line,
|
||||
const char *format,
|
||||
va_list ap)
|
||||
{
|
||||
printf("FAILURE %s %s:%d ", test_title, file, line );
|
||||
vprintf(format, ap);
|
||||
printf("\n");
|
||||
fflush(stdout);
|
||||
|
||||
++failures;
|
||||
}
|
||||
|
||||
int
|
||||
get_rv(void)
|
||||
{
|
||||
if( failures ) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
do_test_call(
|
||||
gboolean result,
|
||||
const char* test_title,
|
||||
const char* filename,
|
||||
int line )
|
||||
{
|
||||
if( result ) {
|
||||
success_args( test_title, filename, line, "" );
|
||||
} else {
|
||||
failure_args( test_title, filename, line, "" );
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
do_test_args(
|
||||
gboolean result,
|
||||
const char* test_title,
|
||||
const char* filename,
|
||||
int line,
|
||||
const char* format,
|
||||
... )
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, format);
|
||||
|
||||
if( result ) {
|
||||
vsuccess_args( test_title, filename, line, format, ap );
|
||||
} else {
|
||||
vfailure_args( test_title, filename, line, format, ap );
|
||||
}
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
void
|
||||
print_test_results(void)
|
||||
{
|
||||
guint total = successes+failures;
|
||||
if( total == 1 ) {
|
||||
printf( "Executed 1 test." );
|
||||
} else {
|
||||
printf("Executed %d tests.", successes+failures );
|
||||
}
|
||||
if( failures ) {
|
||||
if( failures == 1 ) {
|
||||
printf(" There was 1 failure." );
|
||||
} else {
|
||||
printf(" There were %d failures.", failures );
|
||||
}
|
||||
} else {
|
||||
printf(" All tests passed.");
|
||||
}
|
||||
printf("\n");
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
void
|
||||
set_success_print( gboolean in_should_print )
|
||||
{
|
||||
success_should_print = in_should_print;
|
||||
}
|
||||
|
121
src/backend/file/test/test-stuff.h
Normal file
121
src/backend/file/test/test-stuff.h
Normal file
@ -0,0 +1,121 @@
|
||||
/* Modified by bstanley 20010320
|
||||
* Added do_test macro, do_test_call and do_test_call_args,
|
||||
* print_test_results, set_success_print.
|
||||
*
|
||||
* Modified by bstanley 20010323
|
||||
* removed testing functionality which depends on the rest of gnucash -
|
||||
* sepearated into gnc-test-stuff.h
|
||||
*
|
||||
*/
|
||||
|
||||
/* Outline of a test program using the new testing functions:
|
||||
#include "test-stuff.h"
|
||||
int main( int argc, char* argv[] )
|
||||
{
|
||||
int a, b;
|
||||
g_log_set_always_fatal( G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING );
|
||||
a = b = 1;
|
||||
do_test( a == b, 'integer equality" );
|
||||
do_test( a != b, 'integer inequality? (should fail)" );
|
||||
|
||||
do_test_args( a == b, "fancy info", __FILE__, __LINE__, "a = %d, b = %b", a, b );
|
||||
|
||||
print_test_results();
|
||||
return get_rv();
|
||||
}
|
||||
*/
|
||||
/* If you want to see test passes, use
|
||||
set_success_print(TRUE);
|
||||
before you execute the tests.
|
||||
Otherwise, only failures are printed out.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef TEST_STUFF_H
|
||||
#define TEST_STUFF_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/**
|
||||
* Use this to indicate the result of a test.
|
||||
* The result is TRUE for success, FALSE for failure.
|
||||
* title describes the test
|
||||
* Tests are automatically identified by their source file and line.
|
||||
*/
|
||||
#define do_test( result, title ) do_test_call( result, title, __FILE__, __LINE__ );
|
||||
#define success( title ) success_call( title, __FILE__, __LINE__ );
|
||||
#define failure( title ) failure_call( title, __FILE__, __LINE__ );
|
||||
|
||||
/** This one doesn't work because macros can't take a variable number of arguments.
|
||||
* well, apparently gcc can, but it's non-standard.
|
||||
* Apparently C99 can, too, but it's not exactly standard either.
|
||||
#define do_test_args( result, title, format ) do_test_call( result, title, __FILE__, __LINE__, format, ... );
|
||||
*/
|
||||
|
||||
/* Privately used to indicate a test result. You may use these if you
|
||||
* wish, but it's easier to use the do_test macro above.
|
||||
*/
|
||||
void do_test_call(
|
||||
gboolean result,
|
||||
const char* test_title,
|
||||
const char* filename,
|
||||
int line );
|
||||
void do_test_args(
|
||||
gboolean result,
|
||||
const char* test_title,
|
||||
const char* filename,
|
||||
int line,
|
||||
const char* format, ... );
|
||||
|
||||
|
||||
/**
|
||||
* Prints out the number of tests passed and failed.
|
||||
*/
|
||||
void print_test_results(void);
|
||||
|
||||
/**
|
||||
* Use this to set whether successful tests
|
||||
* should print a message.
|
||||
* Default is false.
|
||||
* Successful test messages are useful while initally constructing the
|
||||
* test suite, but when it's completed, no news is good news.
|
||||
* A successful test run will be indicated by the message
|
||||
* from print_test_results().
|
||||
*/
|
||||
void set_success_print( gboolean in_should_print );
|
||||
|
||||
/* Value to return from main. Set to 1 if there were any fails, 0 otherwise. */
|
||||
int get_rv(void);
|
||||
|
||||
/** Testing primitives.
|
||||
* Sometimes you just have to put the results of
|
||||
* a test into different forks of the code.
|
||||
*/
|
||||
void success_call(
|
||||
const char *test_title,
|
||||
const char *file,
|
||||
int line );
|
||||
|
||||
void success_args(
|
||||
const char *test_title,
|
||||
const char *file,
|
||||
int line,
|
||||
const char *format,
|
||||
... );
|
||||
|
||||
void failure_call(
|
||||
const char *test_title,
|
||||
const char *file,
|
||||
int line);
|
||||
|
||||
void failure_args(
|
||||
const char *test_title,
|
||||
const char *file,
|
||||
int line,
|
||||
const char *format,
|
||||
... );
|
||||
|
||||
#endif /* TEST_STUFF_H */
|
351
src/backend/file/test/test-xml-account.c
Normal file
351
src/backend/file/test/test-xml-account.c
Normal file
@ -0,0 +1,351 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "gnc-xml.h"
|
||||
#include "gnc-engine-util.h"
|
||||
#include "gnc-engine.h"
|
||||
|
||||
#include "sixtp-parsers.h"
|
||||
#include "sixtp-dom-parsers.h"
|
||||
|
||||
#include "gnc-test-stuff.h"
|
||||
|
||||
#include "Account.h"
|
||||
#include "GNCIdP.h"
|
||||
#include "Group.h"
|
||||
#include "Scrub.h"
|
||||
#include "gnc-book.h"
|
||||
|
||||
static gchar*
|
||||
node_and_account_equal(xmlNodePtr node, Account *act)
|
||||
{
|
||||
xmlNodePtr mark;
|
||||
|
||||
if(!check_dom_tree_version(node, "2.0.0"))
|
||||
{
|
||||
return g_strdup("version wrong. Not 2.0.0 or not there");
|
||||
}
|
||||
|
||||
if(!node->name || safe_strcmp(node->name, "gnc:account"))
|
||||
{
|
||||
return g_strdup("Name of toplevel node is bad");
|
||||
}
|
||||
|
||||
for(mark = node->xmlChildrenNode; mark; mark = mark->next)
|
||||
{
|
||||
if(safe_strcmp(mark->name, "act:name") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_string(mark, xaccAccountGetName(act)))
|
||||
{
|
||||
return g_strdup("names differ");
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "act:id") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_guid(mark, xaccAccountGetGUID(act)))
|
||||
{
|
||||
return g_strdup("ids differ");
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "act:type") == 0)
|
||||
{
|
||||
gchar *txt;
|
||||
int type;
|
||||
|
||||
txt = dom_tree_to_text(mark);
|
||||
|
||||
if(!txt)
|
||||
{
|
||||
return g_strdup("couldn't get type string");
|
||||
}
|
||||
else if(!xaccAccountStringToType(txt, &type))
|
||||
{
|
||||
g_free(txt);
|
||||
return g_strdup("couldn't convert type string to int");
|
||||
}
|
||||
else if(type != xaccAccountGetType(act))
|
||||
{
|
||||
g_free(txt);
|
||||
return g_strdup("types differ");
|
||||
}
|
||||
else
|
||||
{
|
||||
g_free(txt);
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "act:commodity") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_commodity(
|
||||
mark, xaccAccountGetCommodity(act)))
|
||||
{
|
||||
return g_strdup("commodities differ");
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "act:currency") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_commodity(
|
||||
mark, DxaccAccountGetCurrency(act)))
|
||||
{
|
||||
return g_strdup("currencies differ");
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "act:code") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_string(mark, xaccAccountGetCode(act)))
|
||||
{
|
||||
return g_strdup("codes differ");
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "act:description") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_string(
|
||||
mark, xaccAccountGetDescription(act)))
|
||||
{
|
||||
return g_strdup("descriptions differ");
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "act:security") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_commodity(
|
||||
mark, DxaccAccountGetSecurity(act)))
|
||||
{
|
||||
return g_strdup("securities differ");
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "act:slots") == 0)
|
||||
{
|
||||
xaccAccountDeleteOldData (act);
|
||||
|
||||
if(!equals_node_val_vs_kvp_frame(mark, xaccAccountGetSlots(act)))
|
||||
{
|
||||
return g_strdup("slots differ");
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "act:parent") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_guid(
|
||||
mark, xaccAccountGetGUID(xaccGroupGetParentAccount(
|
||||
xaccAccountGetParent(act)))))
|
||||
{
|
||||
return g_strdup("parent ids differ");
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "act:commodity-scu") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_int(mark, xaccAccountGetCommoditySCU(act)))
|
||||
{
|
||||
return g_strdup("commodity scus differ");
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "act:currency-scu") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_int(mark, DxaccAccountGetCurrencySCU(act)))
|
||||
{
|
||||
return g_strdup("currency scus differ");
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "act:security-scu") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_int(mark, xaccAccountGetCommoditySCU(act)))
|
||||
{
|
||||
return g_strdup("commodity scus differ");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return g_strdup_printf("unknown node in dom tree: %s", mark->name);
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
delete_random_account(Account *act)
|
||||
{
|
||||
gnc_commodity_destroy(xaccAccountGetCommodity(act));
|
||||
|
||||
xaccAccountBeginEdit(act);
|
||||
xaccAccountDestroy(act);
|
||||
}
|
||||
|
||||
struct act_data_struct
|
||||
{
|
||||
Account *act;
|
||||
int value;
|
||||
};
|
||||
typedef struct act_data_struct act_data;
|
||||
|
||||
static gboolean
|
||||
test_add_account(const char *tag, gpointer globaldata, gpointer data)
|
||||
{
|
||||
act_data *gdata = (act_data*)globaldata;
|
||||
|
||||
do_test_args(xaccAccountEqual((Account*)data, (Account*)(gdata->act),
|
||||
TRUE),
|
||||
"gnc_account_sixtp_parser_create",
|
||||
__FILE__, __LINE__, "%d", gdata->value );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
test_account(int i, Account *test_act)
|
||||
{
|
||||
xmlNodePtr test_node;
|
||||
gchar *filename1;
|
||||
gchar *compare_msg;
|
||||
FILE *cmp_file;
|
||||
int fd;
|
||||
|
||||
test_node = gnc_account_dom_tree_create(test_act);
|
||||
|
||||
if(!test_node)
|
||||
{
|
||||
failure_args("account_xml", __FILE__, __LINE__,
|
||||
"gnc_account_dom_tree_create returned NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
if((compare_msg = node_and_account_equal(test_node, test_act)) != NULL)
|
||||
{
|
||||
failure_args("account_xml", __FILE__, __LINE__,
|
||||
"node and account were not equal: %s", compare_msg);
|
||||
xmlElemDump(stdout, NULL, test_node);
|
||||
fprintf(stdout, "\n");
|
||||
xmlFreeNode(test_node);
|
||||
g_free(compare_msg);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
success("account_xml");
|
||||
}
|
||||
|
||||
filename1 = g_strdup_printf("test_file_XXXXXX");
|
||||
|
||||
fd = mkstemp(filename1);
|
||||
|
||||
write_dom_node_to_file(test_node, fd);
|
||||
|
||||
close(fd);
|
||||
|
||||
{
|
||||
sixtp *parser;
|
||||
act_data data;
|
||||
|
||||
data.act = test_act;
|
||||
data.value = i;
|
||||
|
||||
parser = gnc_account_sixtp_parser_create();
|
||||
|
||||
if(!gnc_xml_parse_file(parser, filename1, test_add_account,
|
||||
(gpointer)&data))
|
||||
{
|
||||
failure_args("gnc_xml_parse_file returned FALSE",
|
||||
__FILE__, __LINE__, "%d", i);
|
||||
}
|
||||
|
||||
/* no handling of circular data structures. We'll do that later */
|
||||
/* sixtp_destroy(parser); */
|
||||
}
|
||||
|
||||
|
||||
unlink(filename1);
|
||||
g_free(filename1);
|
||||
xmlFreeNode(test_node);
|
||||
}
|
||||
|
||||
static void
|
||||
test_generation(void)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < 20; i++)
|
||||
{
|
||||
Account *ran_act;
|
||||
|
||||
ran_act = get_random_account();
|
||||
|
||||
test_account(i, ran_act);
|
||||
|
||||
delete_random_account(ran_act);
|
||||
}
|
||||
|
||||
{
|
||||
/* empty some things. */
|
||||
Account *act;
|
||||
|
||||
act = get_random_account();
|
||||
|
||||
xaccAccountSetCode(act, "");
|
||||
xaccAccountSetDescription(act, "");
|
||||
xaccAccountSetCommodity(act, NULL);
|
||||
|
||||
test_account(-1, act);
|
||||
|
||||
delete_random_account(act);
|
||||
}
|
||||
|
||||
/* { */
|
||||
/* Account *act1; */
|
||||
/* Account *act2; */
|
||||
|
||||
/* act1 = get_random_account(); */
|
||||
/* act2 = get_random_account(); */
|
||||
|
||||
/* xaccAccountInsertSubAccount(act1, act2); */
|
||||
|
||||
/* test_account(-1, act2); */
|
||||
/* test_account(-1, act1); */
|
||||
|
||||
/* delete_random_account(act2); */
|
||||
/* delete_random_account(act1); */
|
||||
/* } */
|
||||
|
||||
}
|
||||
|
||||
GNCBook *bk;
|
||||
|
||||
static gboolean
|
||||
test_real_account(const char *tag, gpointer global_data, gpointer data)
|
||||
{
|
||||
char *msg;
|
||||
Account *act = (Account*)data;
|
||||
|
||||
if(!xaccAccountGetParent(act))
|
||||
{
|
||||
xaccGroupInsertAccount(gnc_book_get_group(bk), act);
|
||||
}
|
||||
msg = node_and_account_equal((xmlNodePtr)global_data, act);
|
||||
do_test_args(msg == NULL, "test_real_account",
|
||||
__FILE__, __LINE__, msg);
|
||||
g_free(msg);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
gnc_engine_init(argc, argv);
|
||||
xaccGUIDInit();
|
||||
|
||||
if(argc > 1)
|
||||
{
|
||||
bk = gnc_book_new();
|
||||
test_files_in_dir(argc, argv, test_real_account,
|
||||
gnc_account_sixtp_parser_create(),
|
||||
"gnc:account");
|
||||
}
|
||||
else
|
||||
{
|
||||
test_generation();
|
||||
}
|
||||
|
||||
print_test_results();
|
||||
exit(get_rv());
|
||||
}
|
230
src/backend/file/test/test-xml-commodity.c
Normal file
230
src/backend/file/test/test-xml-commodity.c
Normal file
@ -0,0 +1,230 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "gnc-xml.h"
|
||||
#include "gnc-engine-util.h"
|
||||
|
||||
#include "sixtp-parsers.h"
|
||||
#include "sixtp-utils.h"
|
||||
|
||||
#include "sixtp-dom-parsers.h"
|
||||
|
||||
#include "io-gncxml-gen.h"
|
||||
|
||||
#include "gnc-test-stuff.h"
|
||||
|
||||
#include "Account.h"
|
||||
|
||||
|
||||
static gchar*
|
||||
node_and_commodity_equal(xmlNodePtr node, const gnc_commodity *com)
|
||||
{
|
||||
xmlNodePtr mark;
|
||||
|
||||
if(!check_dom_tree_version(node, "2.0.0"))
|
||||
{
|
||||
return "version wrong. Not 2.0.0 or not there";
|
||||
}
|
||||
|
||||
if(!node->name || safe_strcmp(node->name, "gnc:commodity"))
|
||||
{
|
||||
return "Name of toplevel node is bad";
|
||||
}
|
||||
|
||||
for(mark = node->xmlChildrenNode; mark; mark = mark->next)
|
||||
{
|
||||
if(safe_strcmp(mark->name, "cmdty:space") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_string(
|
||||
mark, gnc_commodity_get_namespace(com)))
|
||||
{
|
||||
return "namespaces differ";
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "cmdty:id") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_string(
|
||||
mark, gnc_commodity_get_mnemonic(com)))
|
||||
{
|
||||
return "mnemonic differ";
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "cmdty:name") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_string(
|
||||
mark, gnc_commodity_get_fullname(com)))
|
||||
{
|
||||
return "names differ";
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "cmdty:xcode") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_string(
|
||||
mark, gnc_commodity_get_exchange_code(com)))
|
||||
{
|
||||
return "exchange codes differ";
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "cmdty:fraction") == 0)
|
||||
{
|
||||
gchar *txt;
|
||||
gint64 type;
|
||||
|
||||
txt = dom_tree_to_text(mark);
|
||||
|
||||
if(!txt)
|
||||
{
|
||||
return "couldn't get fraction string";
|
||||
}
|
||||
|
||||
else if(!string_to_gint64(txt, &type))
|
||||
{
|
||||
g_free(txt);
|
||||
return "couldn't convert fraction string to int";
|
||||
}
|
||||
else if(type != gnc_commodity_get_fraction(com))
|
||||
{
|
||||
g_free(txt);
|
||||
return "fractions differ";
|
||||
}
|
||||
else
|
||||
{
|
||||
g_free(txt);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "unknown node";
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct com_data_struct
|
||||
{
|
||||
gnc_commodity *com;
|
||||
int value;
|
||||
};
|
||||
typedef struct com_data_struct com_data;
|
||||
|
||||
static gboolean
|
||||
test_add_commodity(const char *tag, gpointer globaldata, gpointer data)
|
||||
{
|
||||
com_data *gdata = (com_data*)globaldata;
|
||||
|
||||
do_test_args(gnc_commodity_equiv((gnc_commodity*)data, gdata->com),
|
||||
"gnc_commodity_sixtp_parser_create",
|
||||
__FILE__, __LINE__, "%d", gdata->value );
|
||||
gnc_commodity_destroy((gnc_commodity*)data);
|
||||
|
||||
return TRUE;
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
test_generation(void)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < 20; i++)
|
||||
{
|
||||
gnc_commodity *ran_com;
|
||||
xmlNodePtr test_node;
|
||||
gchar *filename1;
|
||||
FILE *cmp_file;
|
||||
int fd;
|
||||
gchar *compare_msg;
|
||||
|
||||
ran_com = get_random_commodity();
|
||||
|
||||
test_node = gnc_commodity_dom_tree_create(ran_com);
|
||||
if(!test_node)
|
||||
{
|
||||
failure_args("commodity_xml", __FILE__, __LINE__,
|
||||
"gnc_commodity_dom_tree_create returned NULL");
|
||||
gnc_commodity_destroy(ran_com);
|
||||
continue;
|
||||
}
|
||||
|
||||
if((compare_msg = node_and_commodity_equal(test_node, ran_com)) !=
|
||||
NULL)
|
||||
{
|
||||
failure_args("commodity_xml", __FILE__, __LINE__,
|
||||
"node and commodity were not equal: %s", compare_msg);
|
||||
xmlElemDump(stdout, NULL, test_node);
|
||||
xmlFreeNode(test_node);
|
||||
gnc_commodity_destroy(ran_com);
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
success_args("commodity_xml", __FILE__, __LINE__, "%d", i);
|
||||
}
|
||||
|
||||
filename1 = g_strdup_printf("test_file_XXXXXX");
|
||||
|
||||
fd = mkstemp(filename1);
|
||||
|
||||
write_dom_node_to_file(test_node, fd);
|
||||
|
||||
close(fd);
|
||||
|
||||
{
|
||||
sixtp *parser;
|
||||
com_data data;
|
||||
|
||||
data.com = ran_com;
|
||||
data.value = i;
|
||||
|
||||
parser = gnc_commodity_sixtp_parser_create();
|
||||
|
||||
if(!gnc_xml_parse_file(parser, filename1, test_add_commodity,
|
||||
(gpointer)&data))
|
||||
{
|
||||
failure_args("gnc_xml_parse_file returned FALSE",
|
||||
__FILE__, __LINE__, "%d", i);
|
||||
}
|
||||
|
||||
/* no handling of circular data structures. We'll do that later */
|
||||
/* sixtp_destroy(parser); */
|
||||
}
|
||||
|
||||
unlink(filename1);
|
||||
g_free(filename1);
|
||||
gnc_commodity_destroy(ran_com);
|
||||
xmlFreeNode(test_node);
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
test_real_commodity(const char *tag, gpointer globaldata, gpointer data)
|
||||
{
|
||||
const char *msg = node_and_commodity_equal((xmlNodePtr)globaldata,
|
||||
(gnc_commodity*)data);
|
||||
do_test_args(msg == NULL, "test_real_commodity",
|
||||
__FILE__, __LINE__, msg);
|
||||
gnc_commodity_destroy((gnc_commodity*)data);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
if(argc > 1)
|
||||
{
|
||||
test_files_in_dir(argc, argv, test_real_commodity,
|
||||
gnc_commodity_sixtp_parser_create(),
|
||||
"gnc:commodity");
|
||||
}
|
||||
else
|
||||
{
|
||||
test_generation();
|
||||
}
|
||||
print_test_results();
|
||||
exit(get_rv());
|
||||
}
|
407
src/backend/file/test/test-xml-transaction.c
Normal file
407
src/backend/file/test/test-xml-transaction.c
Normal file
@ -0,0 +1,407 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "gnc-xml-helper.h"
|
||||
#include "gnc-xml.h"
|
||||
#include "gnc-engine-util.h"
|
||||
|
||||
#include "sixtp-parsers.h"
|
||||
|
||||
#include "sixtp-dom-parsers.h"
|
||||
#include "TransLog.h"
|
||||
#include "io-gncxml-gen.h"
|
||||
|
||||
#include "gnc-test-stuff.h"
|
||||
|
||||
#include "Transaction.h"
|
||||
#include "GNCIdP.h"
|
||||
|
||||
|
||||
static xmlNodePtr
|
||||
find_appropriate_node(xmlNodePtr node, Split *spl)
|
||||
{
|
||||
xmlNodePtr mark;
|
||||
|
||||
for(mark = node->xmlChildrenNode; mark; mark = mark->next)
|
||||
{
|
||||
gboolean account_guid_good = FALSE;
|
||||
gboolean amount_good = FALSE;
|
||||
xmlNodePtr mark2;
|
||||
|
||||
for(mark2 = mark->xmlChildrenNode; mark2; mark2 = mark2->next)
|
||||
{
|
||||
if(safe_strcmp(mark2->name, "split:value") == 0)
|
||||
{
|
||||
gnc_numeric *num = dom_tree_to_gnc_numeric(mark2);
|
||||
|
||||
if(gnc_numeric_equal(*num, xaccSplitGetValue(spl)))
|
||||
{
|
||||
amount_good = TRUE;
|
||||
}
|
||||
|
||||
g_free(num);
|
||||
}
|
||||
else if(safe_strcmp(mark2->name, "split:account") == 0)
|
||||
{
|
||||
GUID *accid = dom_tree_to_guid(mark2);
|
||||
|
||||
if(guid_equal(accid, xaccSplitGetAccountGUID(spl)))
|
||||
{
|
||||
account_guid_good = TRUE;
|
||||
}
|
||||
g_free(accid);
|
||||
}
|
||||
|
||||
if(account_guid_good && amount_good)
|
||||
{
|
||||
return mark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
equals_node_val_vs_split_internal(xmlNodePtr node, Split* spl)
|
||||
{
|
||||
xmlNodePtr mark;
|
||||
|
||||
for(mark = node->childs; mark != NULL; mark = mark->next)
|
||||
{
|
||||
if(safe_strcmp(mark->name, "split:id") == 0)
|
||||
{
|
||||
GUID *id = dom_tree_to_guid(mark);
|
||||
|
||||
if(!guid_equal(id, xaccSplitGetGUID(spl)))
|
||||
{
|
||||
printf("ids differ\n");
|
||||
g_free(id);
|
||||
return FALSE;
|
||||
}
|
||||
g_free(id);
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "split:memo") == 0)
|
||||
{
|
||||
char *memo = dom_tree_to_text(mark);
|
||||
|
||||
if(safe_strcmp(memo, xaccSplitGetMemo(spl)) != 0)
|
||||
{
|
||||
printf("memos differ\n");
|
||||
g_free(memo);
|
||||
return FALSE;
|
||||
}
|
||||
g_free(memo);
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "split:reconciled-state") == 0)
|
||||
{
|
||||
char *rs = dom_tree_to_text(mark);
|
||||
|
||||
if(rs[0] != xaccSplitGetReconcile(spl))
|
||||
{
|
||||
printf("states differ\n");
|
||||
g_free(rs);
|
||||
return FALSE;
|
||||
}
|
||||
g_free(rs);
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "split:value") == 0)
|
||||
{
|
||||
gnc_numeric *num = dom_tree_to_gnc_numeric(mark);
|
||||
|
||||
if(!gnc_numeric_equal(*num, xaccSplitGetValue(spl)))
|
||||
{
|
||||
printf("values differ\n");
|
||||
g_free(num);
|
||||
return FALSE;
|
||||
}
|
||||
g_free(num);
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "split:quantity") == 0)
|
||||
{
|
||||
gnc_numeric *num = dom_tree_to_gnc_numeric(mark);
|
||||
|
||||
if(!gnc_numeric_equal(*num, xaccSplitGetAmount(spl)))
|
||||
{
|
||||
printf("quantities differ\n");
|
||||
g_free(num);
|
||||
return FALSE;
|
||||
}
|
||||
g_free(num);
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "split:account") == 0)
|
||||
{
|
||||
GUID *id = dom_tree_to_guid(mark);
|
||||
|
||||
if(!guid_equal(id, xaccSplitGetAccountGUID(spl)))
|
||||
{
|
||||
printf("accounts differ\n");
|
||||
g_free(id);
|
||||
return FALSE;
|
||||
}
|
||||
g_free(id);
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
equals_node_val_vs_splits(xmlNodePtr node, const Transaction *trn)
|
||||
{
|
||||
xmlNodePtr spl_node;
|
||||
Split *spl_mark;
|
||||
int i;
|
||||
|
||||
g_return_val_if_fail(node, FALSE);
|
||||
g_return_val_if_fail(node->xmlChildrenNode, FALSE);
|
||||
|
||||
for(i = 0, spl_mark = xaccTransGetSplit((Transaction*)trn, i);
|
||||
spl_mark;
|
||||
i++, spl_mark = xaccTransGetSplit((Transaction*)trn, i))
|
||||
{
|
||||
spl_node = find_appropriate_node(node, spl_mark);
|
||||
|
||||
if(!spl_node)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if(!equals_node_val_vs_split_internal(spl_node, spl_mark))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static gchar*
|
||||
node_and_transaction_equal(xmlNodePtr node, Transaction *trn)
|
||||
{
|
||||
xmlNodePtr mark;
|
||||
|
||||
if(!check_dom_tree_version(node, "2.0.0"))
|
||||
{
|
||||
return "version wrong. Not 2.0.0 or not there";
|
||||
}
|
||||
|
||||
if(!node->name || safe_strcmp(node->name, "gnc:transaction"))
|
||||
{
|
||||
return "Name of toplevel node is bad";
|
||||
}
|
||||
|
||||
for(mark = node->xmlChildrenNode; mark; mark = mark->next)
|
||||
{
|
||||
if(safe_strcmp(mark->name, "trn:id") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_guid(mark, xaccTransGetGUID(trn)))
|
||||
{
|
||||
return "ids differ";
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "trn:currency") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_commodity(
|
||||
mark, xaccTransGetCurrency(trn)))
|
||||
{
|
||||
return g_strdup("currencies differ");
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "trn:num") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_string(mark, xaccTransGetNum(trn)))
|
||||
{
|
||||
return "nums differ";
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "trn:date-posted") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_date(mark, xaccTransRetDatePostedTS(trn)))
|
||||
{
|
||||
return "posted dates differ";
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "trn:date-entered") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_date(mark, xaccTransRetDateEnteredTS(trn)))
|
||||
{
|
||||
return "entered dates differ";
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "trn:description") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_string(mark, xaccTransGetDescription(trn)))
|
||||
{
|
||||
return "descriptions differ";
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "trn:slots") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_kvp_frame(mark, xaccTransGetSlots(trn)))
|
||||
{
|
||||
return "slots differ";
|
||||
}
|
||||
}
|
||||
else if(safe_strcmp(mark->name, "trn:splits") == 0)
|
||||
{
|
||||
if(!equals_node_val_vs_splits(mark, trn))
|
||||
{
|
||||
return "splits differ";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "unknown node";
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
really_get_rid_of_transaction(Transaction *trn)
|
||||
{
|
||||
xaccTransBeginEdit(trn);
|
||||
xaccTransDestroy(trn);
|
||||
xaccTransCommitEdit(trn);
|
||||
}
|
||||
|
||||
struct tran_data_struct
|
||||
{
|
||||
Transaction *trn;
|
||||
int value;
|
||||
};
|
||||
typedef struct tran_data_struct tran_data;
|
||||
|
||||
static gboolean
|
||||
test_add_transaction(const char *tag, gpointer globaldata, gpointer data)
|
||||
{
|
||||
tran_data *gdata = (tran_data*)globaldata;
|
||||
|
||||
do_test_args(
|
||||
xaccTransEqual((Transaction*)data, gdata->trn, TRUE, TRUE),
|
||||
"gnc_transaction_sixtp_parser_create",
|
||||
__FILE__, __LINE__,
|
||||
"%d", gdata->value);
|
||||
really_get_rid_of_transaction((Transaction*)data);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
test_transaction(void)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < 20; i++)
|
||||
{
|
||||
Transaction *ran_trn;
|
||||
xmlNodePtr test_node;
|
||||
gchar *filename1;
|
||||
FILE *cmp_file;
|
||||
int fd;
|
||||
gchar *compare_msg;
|
||||
|
||||
ran_trn = get_random_transaction();
|
||||
|
||||
test_node = gnc_transaction_dom_tree_create(ran_trn);
|
||||
if(!test_node)
|
||||
{
|
||||
failure_args("transaction_xml", __FILE__, __LINE__,
|
||||
"gnc_transaction_dom_tree_create returned NULL");
|
||||
really_get_rid_of_transaction(ran_trn);
|
||||
continue;
|
||||
}
|
||||
|
||||
if((compare_msg = node_and_transaction_equal(test_node, ran_trn)) !=
|
||||
NULL)
|
||||
{
|
||||
failure_args("transaction_xml", __FILE__, __LINE__,
|
||||
"node and transaction were not equal: %s",
|
||||
compare_msg);
|
||||
xmlElemDump(stdout, NULL, test_node);
|
||||
printf("\n");
|
||||
fflush(stdout);
|
||||
xmlFreeNode(test_node);
|
||||
really_get_rid_of_transaction(ran_trn);
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
success_args("transaction_xml", __FILE__, __LINE__, "%d", i );
|
||||
}
|
||||
|
||||
filename1 = g_strdup_printf("test_file_XXXXXX");
|
||||
|
||||
fd = mkstemp(filename1);
|
||||
|
||||
write_dom_node_to_file(test_node, fd);
|
||||
|
||||
close(fd);
|
||||
|
||||
{
|
||||
sixtp *parser;
|
||||
tran_data data;
|
||||
|
||||
data.trn = ran_trn;
|
||||
data.value = i;
|
||||
|
||||
parser = gnc_transaction_sixtp_parser_create();
|
||||
|
||||
if(!gnc_xml_parse_file(parser, filename1, test_add_transaction,
|
||||
(gpointer)&data))
|
||||
{
|
||||
failure_args("gnc_xml_parse_file returned FALSE",
|
||||
__FILE__, __LINE__, "%d", i);
|
||||
}
|
||||
|
||||
/* no handling of circular data structures. We'll do that later */
|
||||
/* sixtp_destroy(parser); */
|
||||
}
|
||||
|
||||
unlink(filename1);
|
||||
g_free(filename1);
|
||||
really_get_rid_of_transaction(ran_trn);
|
||||
xmlFreeNode(test_node);
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
test_real_transaction(const char *tag, gpointer global_data, gpointer data)
|
||||
{
|
||||
const char *msg;
|
||||
|
||||
msg = node_and_transaction_equal((xmlNodePtr)global_data,
|
||||
(Transaction*)data);
|
||||
do_test_args(msg == NULL, "test_real_transaction",
|
||||
__FILE__, __LINE__, msg);
|
||||
really_get_rid_of_transaction((Transaction*)data);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
xaccGUIDInit();
|
||||
xaccLogDisable();
|
||||
|
||||
if(argc > 1)
|
||||
{
|
||||
test_files_in_dir(argc, argv, test_real_transaction,
|
||||
gnc_transaction_sixtp_parser_create(),
|
||||
"gnc:transaction");
|
||||
}
|
||||
else
|
||||
{
|
||||
test_transaction();
|
||||
}
|
||||
|
||||
print_test_results();
|
||||
exit(get_rv());
|
||||
}
|
15
src/backend/file/test/test-xml2-is-file.c
Normal file
15
src/backend/file/test/test-xml2-is-file.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "io-gncxml-v2.h"
|
||||
#include "gnc-test-stuff.h"
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
do_test(
|
||||
gnc_is_xml_data_file_v2("test-files/xml2/Money95bank_fr.gml2"),
|
||||
"gnc_is_xml_data_file_v2" );
|
||||
|
||||
print_test_results();
|
||||
exit(get_rv());
|
||||
}
|
@ -1,11 +1,9 @@
|
||||
SUBDIRS=test
|
||||
|
||||
# Build the postgres backend as its own loadable shared object.
|
||||
lib_LTLIBRARIES = libgncmod-backend-postgres.la
|
||||
libgncmod_backend_postgres_la_LDFLAGS =-module -lpq -L../../engine -lgncengine ${GLIB_LIBS}
|
||||
|
||||
lib_LTLIBRARIES = libgnc_postgres.la
|
||||
libgnc_postgres_la_LDFLAGS = -version-info 7:0:7
|
||||
|
||||
|
||||
libgnc_postgres_la_SOURCES = \
|
||||
libgncmod_backend_postgres_la_SOURCES = \
|
||||
PostgresBackend.c \
|
||||
account.c \
|
||||
builder.c \
|
||||
@ -13,6 +11,7 @@ libgnc_postgres_la_SOURCES = \
|
||||
escape.c \
|
||||
events.c \
|
||||
gncquery.c \
|
||||
gncmod-backend-postgres.c \
|
||||
kvp-sql.c \
|
||||
price.c \
|
||||
txn.c \
|
||||
@ -48,14 +47,9 @@ EXTRA_DIST = \
|
||||
table-drop.sql \
|
||||
demo.c
|
||||
|
||||
INCLUDES = -I.. -I/usr/lib/glib/include
|
||||
|
||||
LDFLAGS= -lpq
|
||||
|
||||
INCLUDES = -I../.. -I../../engine -I../../gnc-module
|
||||
CFLAGS = @CFLAGS@ ${GLIB_CFLAGS}
|
||||
|
||||
LDADD = ${GLIB_LIBS}
|
||||
|
||||
# Some of the required C files are built with the m4 pre-processor
|
||||
# As a result, we need to manually specify dependencies, clean targets.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user