Commit graph

1603 commits

Author SHA1 Message Date
John Wiegley
af3be5f964 Wrote the beginnings of a new "stats" command. 2009-02-10 15:57:34 -04:00
John Wiegley
bedadd03a0 option_t's copy constructor wasn't copying "wants_arg".
This was causing "reg -p this" to fail in the REPL.
2009-02-10 05:06:16 -04:00
John Wiegley
9039cf4986 Removed an unneeded method declaration. 2009-02-10 05:05:51 -04:00
John Wiegley
ba95808ab0 Sort period transactions by "date", not by "d". 2009-02-10 05:05:36 -04:00
John Wiegley
d726624e60 Changed value_t to use boost::any (more type-safe). 2009-02-10 04:24:06 -04:00
John Wiegley
6d4c3ffde5 If a textual directive can't be found, ignore it. 2009-02-10 04:23:50 -04:00
John Wiegley
6d22f2d56c Pass all unrecognized options to configure. 2009-02-10 00:30:44 -04:00
John Wiegley
7f48cfc7e9 Use --disable-static on Linux x86_64 machines. 2009-02-09 19:09:26 -04:00
John Wiegley
3c3606aa0d Break libledger_data's dependency on session_t. 2009-02-09 18:46:01 -04:00
John Wiegley
75c7fbf23e When -V is used, show the market value for the amount as well as the total. 2009-02-09 18:21:29 -04:00
John Wiegley
139a7b486d Exclude | from the legal commodity character set, as per the comment. 2009-02-09 18:20:00 -04:00
John Wiegley
8a855f9b44 Fix to handling of effective dates in xact_t::date(). 2009-02-09 18:11:58 -04:00
John Wiegley
3925240c7b Fixed the operator precedence of several operators. 2009-02-09 18:02:05 -04:00
John Wiegley
47567307ce Removed reference to session_t from the iterators module. 2009-02-09 17:41:55 -04:00
John Wiegley
6ca01af594 Fixed the use of --effective and --date-format (-y). 2009-02-09 17:27:54 -04:00
John Wiegley
cad86ed87f For the "parse" pre-command, provide a sample transaction context. 2009-02-09 17:27:26 -04:00
John Wiegley
fd53d12bf8 Join command-line arguments before handling pre-commands. 2009-02-09 17:27:16 -04:00
John Wiegley
a072b7e208 Fixed a case where adding an amount to an integer failed. 2009-02-09 15:07:45 -04:00
John Wiegley
37a1989ca0 Added a new --collapse-if-zero option. 2009-02-09 15:07:28 -04:00
John Wiegley
11dc80b618 Don't apply an automated entry to a generated transaction. 2009-02-09 14:55:36 -04:00
John Wiegley
555e953dc1 Was failing to copy over the xact's assigned_amount when copy constructing. 2009-02-09 14:54:58 -04:00
John Wiegley
3f7104e9be Removed the balance_pair_t type, since it's now an unneeded abstraction.
This type was a holdback from the days before the amount_expr was used
everywhere to determine a transaction's value.
2009-02-09 14:54:42 -04:00
John Wiegley
02110394b4 Use the report's amount_expr everywhere that computes an xact's amount. 2009-02-09 14:53:29 -04:00
John Wiegley
3ee3b8f327 Recompile the amount_expr before summing account totals. 2009-02-09 14:51:45 -04:00
John Wiegley
e0fab726c6 Corrected a problem with parsing parens in argument query expressions. 2009-02-09 14:50:19 -04:00
John Wiegley
4d8fba5fad Always calculate transaction totals based on the expression for the amount. 2009-02-09 01:33:45 -04:00
John Wiegley
1d4c65b5ca Include boost/version.hpp, so Ledger can tell which version the user has. 2009-02-09 01:33:24 -04:00
John Wiegley
391300aea2 Had to step back from a change that was breaking regular reports. 2009-02-09 00:57:56 -04:00
John Wiegley
90bba2a808 Added a now-missing #include of "account.h". 2009-02-09 00:42:35 -04:00
John Wiegley
25e88eac1d Removed unnecessary #include directives. 2009-02-09 00:41:18 -04:00
John Wiegley
e777abe854 Revert "If a valexpr identifier is unknown at calc time, re-compile at that point."
This reverts commit 4a463aca3b.
2009-02-09 00:29:51 -04:00
John Wiegley
57b2fc463a Corrected libraries dependencies for some of the unit tests. 2009-02-09 00:27:35 -04:00
John Wiegley
4a463aca3b If a valexpr identifier is unknown at calc time, re-compile at that point. 2009-02-09 00:02:59 -04:00
John Wiegley
76ab8cc083 Fixed an issue where --amount EXPR wasn't seeing that it had been "handled". 2009-02-09 00:02:40 -04:00
John Wiegley
f8a623d547 Conditionalized some boost::filesystem calls that were too new. 2009-02-09 00:00:57 -04:00
John Wiegley
0cb8049c41 Pass amount expression to calc_xacts, to be used for computing the total. 2009-02-08 23:57:30 -04:00
John Wiegley
fccf7e1cb5 Fixes to the new Python/scope integration code. 2009-02-08 23:56:28 -04:00
John Wiegley
f50def86c4 Moved get_partial_name from format.cc into account_t, where it belongs. 2009-02-08 23:28:30 -04:00
John Wiegley
57d98ac120 acprep now takes a --pch flag, as in "--pch --devel". It must come first. 2009-02-08 23:20:28 -04:00
John Wiegley
e0b108ff3a Attribute lookup on a Value object which is a Scope now searches the scope. 2009-02-08 21:17:23 -04:00
John Wiegley
623c57a623 Terminate the buffer used to read in item context. 2009-02-08 21:16:43 -04:00
John Wiegley
3924a3da10 pyinterp.cc shares global session; accept full paths passed to --import. 2009-02-08 21:16:29 -04:00
John Wiegley
d4d7090f3c Perhaps expr_t objects to remember their scope "context". 2009-02-08 21:15:22 -04:00
John Wiegley
431c950c75 Use path.filename() instead of the deprecated path.leaf(). 2009-02-08 21:14:43 -04:00
John Wiegley
63dffb843b Include Boost's wrap_python.hpp, instead of Python.h. 2009-02-08 21:14:26 -04:00
John Wiegley
7eb4a7eece Conditionalize the ability to use pre-compiled headers. 2009-02-08 21:14:09 -04:00
John Wiegley
63f9d97dda Correctly compile the expressions passed to -t and -T. 2009-02-08 20:06:25 -04:00
John Wiegley
02bd9d29cf Improved an error message that was trying to show transaction context. 2009-02-08 20:05:56 -04:00
John Wiegley
4f5799c216 If a ledger file is specified in .ledgerrc, ignore the environment. 2009-02-08 19:54:39 -04:00
John Wiegley
455b6e27cb If LEDGER_FILE was seen, ignore LEDGER. 2009-02-08 19:54:16 -04:00