John Wiegley
858978de89
Journal data structures now use date_t instead of datetime_t.
...
This means transactions can only have day-level granularity -- which has
always been the case from an data file point of view. The advantage to this
restriction is that reports will now be immune from daylight savings related
bugs, where a transaction falls to the wrong side of a --monthly report, for
example.
2008-08-01 17:37:22 -04:00
John Wiegley
e5048ec71b
Change many uses of for+iterator to use Boost.Foreach.
2008-07-31 17:48:29 -04:00
John Wiegley
8276b51f56
A new binary_cache_t object has been creating to manage saving and restoring a
...
Ledger session from a cache file. It doesn't work at all yet, though at least
the major structures are in place now.
2008-07-31 04:28:58 -04:00
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
ebfe2d1011
Updated all copyright messages to 2003-2008.
2008-07-27 02:26:35 -04:00
John Wiegley
713f896790
A large body of work to get the register report printing again, but still
...
fails due to the fact that 2.x value expression syntax is not restored.
2008-07-27 00:10:35 -04:00
John Wiegley
961b30926b
--verify works again, but the memory totals at the end still need work.
2008-07-26 04:08:55 -04:00
John Wiegley
ee39695722
Parsing now works again. And there was much rejoicing.
2008-07-24 11:36:40 -04:00
John Wiegley
643f2d33cf
More work toward getting the textual parser working again. Since this means
...
that value expressions must work, there are a lot of details involved.
2008-07-24 09:02:47 -04:00
John Wiegley
f0f2b34ea9
More work toward getting my ledger data to parse.
2008-07-22 03:48:35 -04:00
John Wiegley
219cc71bb0
Things are at least compiling and linking again, but we're still far from
...
having a functional binary.
2008-07-20 21:17:26 -04:00
John Wiegley
52fc9f2e44
Brought in the final round of 3.0 code, although it does not compile yet:
...
report, session, parts of xpath, main, journal, option.
2008-07-20 05:03:54 -04:00
John Wiegley
88634973a2
Some basic fixes to get things almost running, although we still can't parse
...
my personal ledger file yet.
2008-07-19 23:10:37 -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
c673b96691
Round unbalanced remainders before reporting them, because that will make a
...
whole lot more sense to the user, rather than reporting the internal
precision.
2008-07-17 20:55:15 -04:00
John Wiegley
a2e16273f6
Check whether this_bal actually finds a matching commodity value, otherwise
...
it's a divide by zero.
2008-07-17 17:37:03 -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
5abfb93a51
When building an auto-entry, copy over details so that the resulting
...
transaction is a mirror of the automated entry's one.
2008-04-13 05:07:58 -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