Commit graph

43 commits

Author SHA1 Message Date
John Wiegley
3c0caf1100 *** empty log message *** 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
9db08c4c7d (read_binary_journal): Fixed a tiny memory leak when reading from a
binary cache.
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
224273fa54 *** empty log message *** 2008-04-13 02:41:26 -04:00
John Wiegley
21722ae484 (add_entry): Run `entry_finalize_hooks' before finalizing an entry.
This allows automated entries to add their transactions to the current
matching entry before that entry's balance is checked.
2008-04-13 02:41:24 -04:00
John Wiegley
10fc16e114 (actual_date, effective_date): Changed an assert for non-NULL to a
mere check (it happens with the 'output' command).
2008-04-13 02:41:24 -04:00
John Wiegley
a8012940f4 Removed Python integration support. 2008-04-13 02:41:21 -04:00
John Wiegley
f691735c6c Restructed the code that it can build and be used as a shared library.
The command-line version is still statically bound in the build
process by default (for the sake of speed).
2008-04-13 02:41:21 -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
d98a13da06 (finalize): Improved the logic which auto-computes per unit cost for
self-balancing transactions of two different commodity types.  Now it
doesn't matter how many transactions of each commodity there are, only
that only two commodities are involved.  Whichever commodity type is
used first is the one divided into.
2008-04-13 02:41:17 -04:00
John Wiegley
368549f76d (export_journal): Added basket' member for journals, and beg_line'
and `end_line' for entries (for Python).
2008-04-13 02:41:13 -04:00
John Wiegley
5175fdcd6c (finalize): If a "basket" account is being used,
balance single transaction entries into it.  Also, fixed two entry
balancing issues.
(finalize): If a "catch all" transaction (a transaction with no
amount) is present in an entry, it will now balance all unbalanced
quantities in the entry.  Before its use was much more restricted.
(journal_t::add_entry): Set the "journal" pointer before calling
the finalize hooks, so that the finalizers have access to the
proposed journal the entry wishes to be added to (if it fails, the
pointer is cleared).
2008-04-13 02:41:11 -04:00
John Wiegley
ed000a6967 Added support for each entry to remember: the file it came from, and
the beginning and ending character positions of that entry within the
file.  This makes it possible to reproduce the input exactly, with
only the changed entries updated.
2008-04-13 02:40:54 -04:00
John Wiegley
00d0a58162 (export_journal): Added `price_db' property to ledger.Journal type. 2008-04-13 02:40:53 -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
eb6861e192 fixed assertion 2004-09-27 00:12:10 -04:00
John Wiegley
f8a62c444f made several of the buffers used non-static 2004-09-26 23:48:31 -04:00
John Wiegley
528019ce25 added support for "equity" in main.py 2004-09-24 07:00:52 -04:00
John Wiegley
c5d519447e fixed a rather obscure memory bug, which also simplified some code 2004-09-24 05:25:52 -04:00
John Wiegley
3038b7cee8 finalizer fixes; removed use of timing.h from main.cc 2004-09-24 04:56:46 -04:00
John Wiegley
4f56735dfa changed entry_finalizer scheme to use objects, not just function pointers 2004-09-24 04:10:39 -04:00
John Wiegley
1416f3b978 a bit more refactoring 2004-09-23 21:54:11 -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
c57bfb72c3 moved entry hooking mechanism to journal_t; further improvements to "entry" 2004-09-23 21:08:42 -04:00
John Wiegley
02580c2efb more "entry" fixes 2004-09-23 20:10:33 -04:00
John Wiegley
d0ba09f1e0 greatly improved the flexibility of the "entry" command; no more bogus 1-liners 2004-09-23 20:06:00 -04:00
John Wiegley
c57a2e74b8 shored up error checking of value expressions 2004-09-23 06:34:27 -04:00
John Wiegley
5429792edc the "bal" command mostly works now in main.py; added a finalize_entry hook 2004-09-20 03:25:28 -04:00
John Wiegley
a2bbd7dc8f fixes to main.py 2004-09-17 19:33:10 -04:00
John Wiegley
79b664f6f0 changed the management of "xdata" in walk.h 2004-09-17 04:38:24 -04:00
John Wiegley
72d69d3ec9 Python fixes; starting adding support for using item_handlers in python 2004-09-08 21:21:21 -04:00
John Wiegley
842359474e optimize python iterations of entries, transactions; use exceptions more 2004-09-08 03:33:56 -04:00
John Wiegley
6126d48e27 some python code fixes 2004-09-07 19:38:21 -04:00
John Wiegley
e2990dbc4e modified entry_t::add_transaction and remove_transaction, since now using lists 2004-09-06 18:16:24 -04:00
John Wiegley
63367e3aac the amount/balance/value logic is now a library, completely separate from ledger 2004-08-29 23:32:29 -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
032afa5657 a bit of a reorg; still much more to go 2004-08-29 03:23:55 -04:00
John Wiegley
b4304515ff ledger.so (the python module) now builds based on autoconf discovery 2004-08-28 04:26:48 -04:00
John Wiegley
16841fbae3 added (disabled) code for Boost.Python 2004-08-27 23:38:39 -04:00
Renamed from ledger.cc (Browse further)