Commit graph

158 commits

Author SHA1 Message Date
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
7d3e45958e *** empty log message *** 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
e75bb1f71f *** empty log message *** 2008-04-13 02:41:26 -04:00
John Wiegley
f2a167e0ed *** empty log message *** 2008-04-13 02:41:26 -04:00
John Wiegley
4aea9709bb Made several changes to the parsing infrastructure to allow passing
the "config_t" object around.  This is needed for parsing option
settings in the initialization file.
2008-04-13 02:41:23 -04:00
John Wiegley
a8012940f4 Removed Python integration support. 2008-04-13 02:41:21 -04:00
John Wiegley
2d7d6c6f15 Added support for outputting to CSV format. 2008-04-13 02:41:21 -04:00
John Wiegley
d021582d28 (parse_and_report): Set ledger::terminus in main.cc, instead of
relying on static initialization of valexpr.cc.
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
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