Commit graph

59 commits

Author SHA1 Message Date
John Wiegley
ed8a236fe6 (subtotal_transactions::operator()): Changed the usage of the
temporary `values' map so that account names are always properly
sorted in the subtotaled output view.  As it was, they were being
reported in account creation order.
2008-04-13 02:41:15 -04:00
John Wiegley
b79b3cf54b (report_budget_items): Removed an unused local variable. 2008-04-13 02:41:15 -04:00
John Wiegley
c8bbbf3f9c (sort_transactions::post_accumulated_xacts): Created this function so
that interval_transactions has a way to post sorted xacts without
calling flush().
2008-04-13 02:41:10 -04:00
John Wiegley
396491c568 (truncate_entries::flush): Fix so that --head and --tail can be used
at the same time.  (export_walk): Added TruncateEntries for Python.
2008-04-13 02:41:01 -04:00
John Wiegley
d0997fa821 Changed truncate_entries so that --head and --tail can be used at the
same time.
2008-04-13 02:41:00 -04:00
John Wiegley
dc4c2b8d50 Added the new transaction handler `truncate_entries' which can be used
to trim a number of entries from the beginning or end of a transction
stream.  (push_to_transactions_list): Removed unneeded "handler"
argument.
2008-04-13 02:41:00 -04:00
John Wiegley
bffa2703fc (clear_transactions_xdata): Clear the transaction xdata pointers once
they have been freed.  (clear_accounts_xdata): Clear the account xdata
pointers once they have been freed.
2008-04-13 02:40:56 -04:00
John Wiegley
9bf398f914 *** empty log message *** 2008-04-13 02:40:55 -04:00
John Wiegley
c4dfcc997c *** empty log message *** 2008-04-13 02:40:55 -04:00
John Wiegley
46302362dd (related_transactions::flush): Handle the case where an auto_entry or
period_entry passes through the related_transactions handler.
2008-04-13 02:40:54 -04:00
John Wiegley
06b6e9bf0a Added #include <alogrithm> 2008-04-13 02:40:52 -04:00
John Wiegley
1db60b12e2 updated to 2.02 2008-04-13 02:40:48 -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
2b8a4abdbf another fix to interval reporting; end condition was sometimes off by one 2004-09-26 00:38:12 -04:00
John Wiegley
c2c59d612b corrected the way that transaction handlers are flushed 2004-09-26 00:29:41 -04:00
John Wiegley
26de701a4e corrected the deviation report (-D) when -V is also being used 2004-09-25 17:59:14 -04:00
John Wiegley
5ad722fcdf fixed a problem with interval strings that use only a beg or end date 2004-09-25 07:01:22 -04:00
John Wiegley
b1aa1344ae sorting optimization 2004-09-25 06:50:18 -04:00
John Wiegley
555c2d855f a couple of fixes to collapsed and subtotal reports 2004-09-25 05:39:33 -04:00
John Wiegley
528019ce25 added support for "equity" in main.py 2004-09-24 07:00:52 -04:00
John Wiegley
d110df6741 added a custom transaction formatter, format_entries, used by "print" 2004-09-24 06:29:01 -04:00
John Wiegley
8a7cee24c8 fixed a bug with interval reporting 2004-09-23 19:17:21 -04:00
John Wiegley
be18ab2f1a more error checking and robustness mods 2004-09-23 07:05:03 -04:00
John Wiegley
c57a2e74b8 shored up error checking of value expressions 2004-09-23 06:34:27 -04:00
John Wiegley
e9f0dc8bb9 fix to date mask parsing; put in a safety cutoffs when asserts are enabled 2004-09-23 01:52:47 -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
18879bbe85 some changes in the way formatting strings are handled; for simplicity 2004-09-18 02:33:51 -04:00
John Wiegley
79b664f6f0 changed the management of "xdata" in walk.h 2004-09-17 04:38:24 -04:00
John Wiegley
0c890de44b main.py now implements nearly all the functionality of main.cc 2004-09-14 17:34:48 -04:00
John Wiegley
e1d6c4bff2 interval_t objects now play nicely with python. see the bottom of main.py 2004-09-10 18:38:52 -04:00
John Wiegley
e414123ecb change commodity->symbol to const, and added set_symbol 2004-09-10 05:07:50 -04:00
John Wiegley
6261da4660 slight changed semantics of item_handler<T>, to play better with Boost.Python 2004-09-10 04:38:38 -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
fcaaa37201 switch from using deque back to list; affects speed by up to 30%! 2004-09-06 05:38:32 -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
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
John Wiegley
1091f0d07b slight cleanup 2004-08-23 02:11:58 -04:00
John Wiegley
5619a1d5be a little more reorganizing, but only fractionally faster. diminishing returns! 2004-08-22 02:13:41 -04:00
John Wiegley
6d5333b896 use value_t instead of balance_pair_t; gains for 10% binary, 2% textual 2004-08-21 23:18:45 -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
aba3d3037a added support for parsing QIF files 2004-08-19 17:55:33 -04:00
John Wiegley
bf923ab33e use std::auto_ptr wherever a thrown exception might otherwise leak memory 2004-08-19 03:28:48 -04:00
John Wiegley
f62a4906d1 fix to textual parsing, and a bit of reconstruction in main.cc 2004-08-19 02:30:56 -04:00
John Wiegley
8af33274fb more time interval support: last month, last feb, next year, etc. 2004-08-18 02:15:31 -04:00
John Wiegley
7189b181ef further restructuring 2004-08-15 17:08:56 -04:00
John Wiegley
972ed4c386 fix to changed_value_transactions 2004-08-14 06:21:52 -04:00
John Wiegley
24e8977b57 fixed -G report 2004-08-14 04:29:41 -04:00
John Wiegley
0c8dff61ed fixed problem with writing binary amounts 2004-08-13 17:29:46 -04:00