John Wiegley
d0e9822ed1
Moved around the Python code.
2008-04-13 03:38:32 -04:00
John Wiegley
0eb597a681
Restructured the code to use the new utility code in utils.h.
2008-04-13 03:38:31 -04:00
John Wiegley
9039e728b2
All system headers (except Boost) now included through system.hh;
...
also, added support for pre-compiled headers since I'm now using a
centralized resource for system headers.
2008-04-13 03:38:31 -04:00
John Wiegley
c30f520900
Decreased memory usage considerably
2008-04-13 03:38:29 -04:00
John Wiegley
b84f676946
Did some optimization and memory cleanup
2008-04-13 03:38:28 -04:00
John Wiegley
539370ff1b
More refactoring
2008-04-13 03:38:28 -04:00
John Wiegley
0a6b5726ec
Made the amount/balance/value interface a bit more rational; added
...
back a useless version of the register command (just to prove the
command sequence); and added smart XML semantics to the XPath
implementation so that nodes can be coerced to values.
2008-04-13 03:38:28 -04:00
John Wiegley
086ea40d99
We now compile with boost_date_time (although parts of the code have
...
been stubbed out as a result).
2008-04-13 03:38:17 -04:00
John Wiegley
ba2a54f3d2
Initial round of changes to use boost_date_time
2008-04-13 03:35:37 -04:00
John Wiegley
a087e6ea97
Cleared out all warnings; started work on getting Python up again.
2008-04-13 03:35:32 -04:00
John Wiegley
0e02961b00
Cleaned up warnings revealed by building with Xcode.
2008-04-13 03:35:32 -04:00
John Wiegley
e65c62d5a4
Removed all uses of PCH (which was far more trouble than it was worth).
2008-04-13 03:35:31 -04:00
John Wiegley
42f43b7686
Check in all changes made so far toward 3.0.
2008-04-13 03:35:00 -04:00
John Wiegley
04dfda2282
Made separate modules for the csv command, since the prior method was
...
not fully correct.
2008-04-13 02:41:33 -04:00
John Wiegley
5a93d4819e
Reworked the way date/times are handled.
2008-04-13 02:41:32 -04:00
John Wiegley
a5aff9eee9
Several fixes to lot price handling.
2008-04-13 02:41:31 -04:00
John Wiegley
44561c1c1d
Further refinement of commodity lot information.
2008-04-13 02:41:31 -04:00
John Wiegley
32bdfe20d9
Tons of corrections and fixes to value expressions and lot figures.
2008-04-13 02:41:31 -04:00
John Wiegley
9800e3febc
*** empty log message ***
2008-04-13 02:41:31 -04:00
John Wiegley
b1a04923fe
*** empty log message ***
2008-04-13 02:41:30 -04:00
John Wiegley
47e2a34176
*** empty log message ***
2008-04-13 02:41:29 -04:00
John Wiegley
e32d9e64a7
Added much better error location.
2008-04-13 02:41:29 -04:00
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