John Wiegley
ea27d1b45a
Moved around and renamed a very large amount of code in order to rationalize
...
the way that value expressions extract information from journal objects.
2008-07-29 20:10:03 -04:00
John Wiegley
9e9f25b566
'make check' is now working again. Also, conversion from amount_t to/from
...
double has been disabled, because I am no longer packaging the gdtoa library
with Ledger (because double conversion really has nothing to do with what
Ledger does). If you wish to use it, you can find gdtoa in cpp-rewrite-2006,
under a sub-directory of the same name.
2008-07-27 01:03:41 -04:00
John Wiegley
4bc29e1351
A great deal of reorganization to restore the old parsing code (since the
...
newer XML stuff was pulled).
2008-07-22 02:23:45 -04:00
John Wiegley
b85e9ba95f
Everything but main.cc is compiling again (but with much #if 0'd code).
2008-07-20 06:00:06 -04:00
John Wiegley
d568319495
Merged in bug fixes from master (done for 2.6.1b)
2008-07-19 21:36:34 -04:00
John Wiegley
b2258cedd1
slanack: The problem was that <split:quantity> received the `transaction
...
commodity' instead of the correct `account commodity'. There should really be
a check if the account commodity has been defined.
2008-07-17 21:26:41 -04:00
John Wiegley
d159501993
The code is compiling again, but it's far from being able to run yet.
2008-05-08 02:50:19 -04:00
John Wiegley
91234e40ab
Made several fixes to commodity parsing, which were preventing Gnucash files
...
from being parsed altogether.
2008-04-13 05:02:38 -04:00
John Wiegley
5a93d4819e
Reworked the way date/times are handled.
2008-04-13 02:41:32 -04:00
John Wiegley
e32d9e64a7
Added much better error location.
2008-04-13 02:41:29 -04:00
John Wiegley
7acc1306d9
*** empty log message ***
2008-04-13 02:41:29 -04:00
John Wiegley
96d6d62ad9
Began support for improved commodity handling.
2008-04-13 02:41:28 -04:00
John Wiegley
7901598f1d
Checked in all major updates.
2008-04-13 02:41:27 -04:00
John Wiegley
f2a167e0ed
*** empty log message ***
2008-04-13 02:41:26 -04:00
John Wiegley
2df14a5b86
Transactions now track their beginning and ending position, as do
...
entries. The new format strings %xB %xE %xb %xe can be used to
display those values relative to a transaction. The Emacs module now
relies on this support to exactly determine where a transaction is,
rather than the Elisp logic it relied on previously.
2008-04-13 02:41:24 -04:00
John Wiegley
4aea9709bb
Made several changes to the parsing infrastructure to allow passing
...
the "config_t" object around. This is needed for parsing option
settings in the initialization file.
2008-04-13 02:41:23 -04:00
John Wiegley
6cee916e04
Added in.clear() before resetting I/Os streams. Again, thanks to the
...
list.
2008-04-13 02:41:22 -04:00
John Wiegley
a8012940f4
Removed Python integration support.
2008-04-13 02:41:21 -04:00
John Wiegley
5492cad53e
(endElement): Changed the parser a bit to always prefer the
...
transaction commodity over the account commodity.
2008-04-13 02:41:20 -04:00
John Wiegley
eb0525e315
See ChangeLog
2008-04-13 02:41:19 -04:00
John Wiegley
a53f44ecda
Support has been added for clearing of individual transactions. Set
...
`ledger-clear-whole-entries' in Emacs to revert to the old behavior.
2008-04-13 02:41:19 -04:00
John Wiegley
50c689e1ae
Made the anonymous enum for action types into a named enum, as this
...
causes problems for template instantiation in the latest versions of
gcc.
2008-04-13 02:41:18 -04:00
John Wiegley
b462a8bf50
*** empty log message ***
2008-04-13 02:41:18 -04:00
John Wiegley
97066c46f0
(dataHandler): Expand commodity precision based on whatever values are
...
seen for that commodity (although this may expand things too much,
will have to wait for real world data tests to be sure).
2008-04-13 02:41:18 -04:00
John Wiegley
13524610c9
Record the beginning/ending line and position of entries parsed within
...
Gnucash files.
2008-04-13 02:41:13 -04:00
John Wiegley
b671d2934b
minor bit twiddling
2008-04-13 02:41:07 -04:00
John Wiegley
22beb86239
(test), gnucash.cc (test): Check for <?xml only, not the full version
...
string.
2008-04-13 02:41:00 -04:00
John Wiegley
911c178394
(parse): Corrected error reporting lines when it is a Ledger error.
2008-04-13 02:40:53 -04:00
John Wiegley
8ca6c6b827
(convert_number): If the denominator is zero, report an error instead
...
of crashing.
2008-04-13 02:40:52 -04:00
John Wiegley
c9fb11bd60
updated to version 2.0
2008-04-13 02:40:47 -04:00
John Wiegley
a32173ace6
changes
2008-04-13 02:40:47 -04:00
John Wiegley
84259bde51
changed ledger.h to journal.h; moved adding of autoxact hook
2004-09-23 21:37:39 -04:00
John Wiegley
e414123ecb
change commodity->symbol to const, and added set_symbol
2004-09-10 05:07:50 -04:00
John Wiegley
842359474e
optimize python iterations of entries, transactions; use exceptions more
2004-09-08 03:33:56 -04:00
John Wiegley
2d62f7b633
redid the way amount_t::commodity is handled; no more direct access
2004-08-29 04:31:59 -04:00
John Wiegley
16841fbae3
added (disabled) code for Boost.Python
2004-08-27 23:38:39 -04:00
John Wiegley
1fd37a432d
cleanup; fully switched to autoconf -- use scripts/acprep
2004-08-24 02:11:32 -04:00
John Wiegley
000bfe1cec
only compute the cost when it differs from the amount
2004-08-21 15:55:03 -04:00
John Wiegley
7dbd7bce59
more cleanup
2004-08-21 04:58:49 -04:00
John Wiegley
06ac87ab20
support arbitrary precision after the decimal point; increase speed 0-10%
2004-08-21 01:43:50 -04:00
John Wiegley
19de076b4d
updated gnucash support
2004-08-20 02:51:14 -04:00
John Wiegley
aba3d3037a
added support for parsing QIF files
2004-08-19 17:55:33 -04:00
John Wiegley
8a70bbed52
fix to gnucash support
2004-08-13 04:39:50 -04:00
John Wiegley
7e87a0a0b1
added back sorting support
2004-08-05 19:12:23 -04:00
John Wiegley
94e76ae87e
two major changes
...
Complete changed the way format strings are handled. They are now
compiled first, which is far more efficient than what was being done
before.
Also, there is now a global ledger::commodity_t::commodities map,
which saves me from having to pass the current journal around to a
zillion different functions, for the sole purpose of making sure that
all commodity symbols that are parsed refer to the same commodity
object.
2004-07-30 21:57:02 -04:00
John Wiegley
161d6f79bd
initial rev of 2.0
2004-07-26 23:33:51 -04:00
John Wiegley
fb4fed00ba
c
2003-10-11 23:21:14 +00:00
John Wiegley
60fa58e847
*** empty log message ***
2003-10-10 18:53:27 +00:00
John Wiegley
4cb6433ccf
*** empty log message ***
2003-10-09 00:41:33 +00:00
John Wiegley
260217c8ab
*** empty log message ***
2003-10-05 00:22:17 +00:00