Commit graph

1624 commits

Author SHA1 Message Date
John Wiegley
c8cd2c468e Re-enabled some code, and removed a bunch of deadwood. 2009-02-12 03:30:41 -04:00
John Wiegley
bb243e2c5e Fixed a typo which was causing all boolean values to show as "false". 2009-02-12 03:06:30 -04:00
John Wiegley
dc68903bb2 Added validation code for mask_t objects. 2009-02-12 03:06:15 -04:00
John Wiegley
eaac95147c Added a missing file! 2009-02-12 02:38:25 -04:00
John Wiegley
433bb11fa9 Moved value_t::set_type into value.cc, since it had grown. 2009-02-12 02:36:14 -04:00
John Wiegley
9344598eb0 Inlined value_t::_clear(), since it only had one caller. 2009-02-12 02:35:22 -04:00
John Wiegley
f8c48d7a6f Ignore lines in Ledger files which contain only whitespace. 2009-02-12 02:35:05 -04:00
John Wiegley
b53f844129 Removed an excessive error check. 2009-02-12 02:34:54 -04:00
John Wiegley
6f2e3b8864 Properly handle UTF-8 characters in commodity strings. 2009-02-12 02:34:39 -04:00
John Wiegley
9c9320bc58 make clean should remove system.hh.gch from the source tree. 2009-02-12 02:05:01 -04:00
John Wiegley
b9a96e9c0d Allow the use of days of the week to "entry", e.g: "thu kfc 11". 2009-02-11 20:36:33 -04:00
John Wiegley
e446b0077e After hitting TAB to insert a new entry, position point at the amount. 2009-02-11 20:20:18 -04:00
John Wiegley
20bf2547d1 In ledger-mode, if TAB is pressed in an entry, call out to "entry". 2009-02-11 20:16:45 -04:00
Drew Raines
78418ad92b Add data file with examples related to drewr's use. 2009-02-11 19:52:31 -04:00
John Wiegley
1a030da55d Rewrote the "entry" command. It's ALIVE! 2009-02-11 19:14:23 -04:00
John Wiegley
4eb46bedf0 Made acprep conform to /bin/sh, instead of /bin/bash. 2009-02-11 16:55:16 -04:00
John Wiegley
53ace5fcca Updated the Boost version I'm building with on OS X to 1.38. 2009-02-11 04:31:55 -04:00
John Wiegley
44518bc640 Wired up the "entry" command from 2.x, though it still needs to be ported. 2009-02-10 22:37:05 -04:00
John Wiegley
f605e107fc A fix to the last fix. 2009-02-10 21:24:28 -04:00
John Wiegley
7de6050269 A fix for users of Boost 1.35. 2009-02-10 21:14:44 -04:00
John Wiegley
557c8af9fe Changed encoding for the Ledger manual to UTF-8. 2009-02-10 16:22:37 -04:00
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