Commit graph

147 commits

Author SHA1 Message Date
John Wiegley
348349f98c (parse_and_report): Added a check for HAVE_EXPAT in addition to
HAVE_XMLPARSE, which was causing the xml/gnucash parsers not to be
registered!
2008-04-13 02:41:19 -04:00
John Wiegley
b462a8bf50 *** empty log message *** 2008-04-13 02:41:18 -04:00
John Wiegley
69881ae385 (chain_xact_handlers): When budgeting and forecasting are being used,
never update the binary cache (and don't create one if none was
there).  This is because certain intermediary accounts get created
during generation of these reports, which should never be recorded in
the cache as actual accounts.  Also, run the account filter both
before and after the budgeting and forecasting filters, to ensure that
only the accounts the user is interested in get included in the
report.
2008-04-13 02:41:12 -04:00
John Wiegley
ecee0bc921 *** empty log message *** 2008-04-13 02:41:06 -04:00
John Wiegley
ba8981a3f6 Removed the --reconcilable option, since the pending flag is now being
used.
2008-04-13 02:41:05 -04:00
John Wiegley
25655cf91a (main): Do not sync I/O streams with stdio, since I do not use stdin,
stdout or stderr.
2008-04-13 02:41:04 -04:00
John Wiegley
cd339f9ddc (parse_and_report): If XML support was not compiled in, generate an
error when the "xml" command is used.
2008-04-13 02:41:04 -04:00
John Wiegley
48cb87b8bd formatting changes 2008-04-13 02:41:04 -04:00
John Wiegley
2d3e852d30 (chain_xact_handlers): Chain the reconcile_transactions handler the
same way as everything else.
2008-04-13 02:41:02 -04:00
John Wiegley
74456d89b5 (parse_and_report): Rearranged some code for efficiency's sake. 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
8fd5f4ee57 Added support for "--pager PROGRAM". A likely way to define it in
your login file would be: "export LEDGER_PAGER=$PAGER".
2008-04-13 02:41:00 -04:00
John Wiegley
962e17c1a9 (chain_xact_handlers): Added head or tail handlers, using the
transaction handler `truncate_entries'.
2008-04-13 02:41:00 -04:00
John Wiegley
4ed59bcf8c Fixed a Gnucash problem. 2008-04-13 02:40:58 -04:00
John Wiegley
88042027e7 *** empty log message *** 2008-04-13 02:40:57 -04:00
John Wiegley
9618057215 Added an Emacs formatter, accessible with the new "emacs" command. 2008-04-13 02:40:56 -04:00
John Wiegley
4ca26fbd73 *** empty log message *** 2008-04-13 02:40:56 -04:00
John Wiegley
f3c736006c *** empty log message *** 2008-04-13 02:40:55 -04:00
John Wiegley
193a801c03 Added preliminary support for OFX, using libofx. Needs much
real-world testing.
2008-04-13 02:40:55 -04:00
John Wiegley
d8f35f3152 (parse_and_report): Added new "reconcile" and "output" commands.
Likely not to be documented, as these are intended primarily for
future GUI development.
2008-04-13 02:40:54 -04:00
John Wiegley
2cc62a4f76 (parse_and_report): Removed "files" argument. 2008-04-13 02:40:53 -04:00
John Wiegley
9a99b755cb *** empty log message *** 2008-04-13 02:40:50 -04:00
John Wiegley
e6c4532c56 (parse_and_report): If cache_file is "<none>", blank it out. This
steps around the logic that sets the default name.
2008-04-13 02:40:50 -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
dbc55008cb finished balance reporting capability in main.py 2004-09-26 00:57:15 -04:00
John Wiegley
a27ae2fb00 fixed another problem with interval reports and the -s option 2004-09-25 07:12:14 -04:00
John Wiegley
3a3227298d if a commodity price cannot be downloaded, report it as an error 2004-09-25 02:51:55 -04:00
John Wiegley
fbad042178 can't reliably use `access' and W_OK 2004-09-25 02:39:07 -04:00
John Wiegley
eda733a56e improved error checking in parser, in case parts of an amount are missing 2004-09-24 23:11:50 -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
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
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
69c84c86b8 always sort the transaction chain, if interval reporting is being used 2004-09-23 19:16:52 -04:00
John Wiegley
4e6157b74a added some error checking 2004-09-23 02:37:42 -04:00
John Wiegley
e59ba74814 if --file and the --cache refer to the same file, don't use caching 2004-09-20 06:18:24 -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
5d99b1e241 using main.py is now only 50% slower than using main.cc 2004-09-14 19:15:08 -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
061e19e302 make config_t visible to Python; almost possible to implement main.cc in main.py 2004-09-14 06:25:29 -04:00
John Wiegley
435b9ed779 added python support for Format() objects. see main.py 2004-09-10 19:52:51 -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
6261da4660 slight changed semantics of item_handler<T>, to play better with Boost.Python 2004-09-10 04:38:38 -04:00
John Wiegley
842359474e optimize python iterations of entries, transactions; use exceptions more 2004-09-08 03:33:56 -04:00