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
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
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