Commit graph

86 commits

Author SHA1 Message Date
John Wiegley
2ebfddf401 Began support for improved commodity handling. 2008-04-13 02:41:28 -04:00
John Wiegley
96d6d62ad9 Began support for improved commodity handling. 2008-04-13 02:41:28 -04:00
John Wiegley
a597b0fb5e Further improvements to lot pricing. 2008-04-13 02:41:27 -04:00
John Wiegley
7901598f1d Checked in all major updates. 2008-04-13 02:41:27 -04:00
John Wiegley
56e95af8e0 (config_t::regexps_to_predicate): Don't set the display predicate to
show only matching accounts when the --related flag is in use (which
was effectively masking out the whole point of using --related with
balance reports).
2008-04-13 02:41:26 -04:00
John Wiegley
9545b22b41 *** empty log message *** 2008-04-13 02:41:26 -04:00
John Wiegley
7a44b2e367 *** empty log message *** 2008-04-13 02:41:23 -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
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
00fe8bc815 Added a `terminus' global, which if set marks the "current time" as
seen by the value expression logic.  This has the effect of changing
valexprs that test against the current time, such as for calculating
the market value of commodities.
2008-04-13 02:41:20 -04:00
John Wiegley
aa4cb6c371 When computing a report period, use the direct results of the parse
rather than passing back to --begin and --end.
2008-04-13 02:41:19 -04:00
John Wiegley
eb0525e315 See ChangeLog 2008-04-13 02:41:19 -04:00
John Wiegley
a53f44ecda Support has been added for clearing of individual transactions. Set
`ledger-clear-whole-entries' in Emacs to revert to the old behavior.
2008-04-13 02:41:19 -04:00
John Wiegley
b462a8bf50 *** empty log message *** 2008-04-13 02:41:18 -04:00
John Wiegley
b40006f450 Changed the --begin and --end switches to rely on interval parsing to
determine the beginning and ending of their range.  Also, the ending
is now inclusive.
2008-04-13 02:41:17 -04:00
John Wiegley
d65a758c84 Moved the setting of time quantities to the commodity initialization
section.
2008-04-13 02:41:16 -04:00
John Wiegley
cf83c024d9 *** empty log message *** 2008-04-13 02:41:16 -04:00
John Wiegley
c29eed174d (process_options): Test the "i" and "arg" variables thoroughly before
making use of either one of them.
2008-04-13 02:41:16 -04:00
John Wiegley
46978b2d5d (regexps_to_predicate): Don't modify the display predicate for balance
commands if a payee regexp is being processed.
2008-04-13 02:41:15 -04:00
John Wiegley
e00c568add When --input-date-format is seen, don't wipe out the rest of the date
formats, simply replace the first one.  Then, when --period is seen,
use the first date format as the template for what to pass to the
begin/end options.
2008-04-13 02:41:14 -04:00
John Wiegley
29eeae9b1c (process_options): Corrected a long-standing error with using "--" to
separate payee regexps from account regexps.
2008-04-13 02:41:14 -04:00
John Wiegley
6d7827af5a Added --input-date-format, which affects how dates in textual and QIF
files are parsed -- but not the dates inside a price database, whose
format is fixed.
2008-04-13 02:41:10 -04:00
John Wiegley
577767ea58 Use std::localtime instead of std::gmtime. 2008-04-13 02:41:09 -04:00
John Wiegley
a4d4c1af8b (process_options): Show all register entries, even those with null
value, if -E is used.
2008-04-13 02:41:08 -04:00
John Wiegley
35bfc958f2 (config_t): Corrected a value in the register format. 2008-04-13 02:41:08 -04:00
John Wiegley
d790a3ad60 (show_version): In the version page output all of the modules which
support has been compiled in for.  This will make tracking down
certain problems much quicker.
2008-04-13 02:41:07 -04:00
John Wiegley
8187bd159d doc updates 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
48cb87b8bd formatting changes 2008-04-13 02:41:04 -04:00
John Wiegley
9bdd1ea9f6 (export_config): Added export entries for the reconcile_balance and
reconcile_date options.
2008-04-13 02:41:02 -04:00
John Wiegley
1c0a061675 (export_config): Added missing config members for Python. 2008-04-13 02:41:01 -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
65b2181860 Added new --head and --tail options, which control how many *entries*
are displayed in a register report or print report.  The UNIX commands
"head" and "tail" can be used to control how many transactions are
displayed.
2008-04-13 02:40:59 -04:00
John Wiegley
983618d266 Added new options --reconcile, --reconcilable and --reconcile-date. 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
64461f0d95 Added write_hdr_format and write_xact_format, which are used by the
"output" command.
2008-04-13 02:40:54 -04:00
John Wiegley
37a67d89b0 (parse_ledger_data): Don't auto-create equivalencies for bytes,
kilobytes, etc., since people may want to use "b" for something else.
2008-04-13 02:40:53 -04:00
John Wiegley
d6475fc4a2 (parse_ledger_data): Set journal->price_db if a price database is
successfully read in.
2008-04-13 02:40:52 -04:00
John Wiegley
79f9a1efb5 Set cache_file to "<none>" if --no-cache is used. 2008-04-13 02:40:50 -04:00
John Wiegley
ea283a27ce (option_full_help): Added docs for --no-cache. (option_help): Added
docs for --no-cache.  Added --no-cache option.
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
cc98b59d1e corrected semantics of -j and -J 2004-09-27 19:13:08 -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
555c2d855f a couple of fixes to collapsed and subtotal reports 2004-09-25 05:39:33 -04:00
John Wiegley
66bc51db6d added pysample.dat, which provides a more realistic example of using Python 2004-09-25 03:30:23 -04:00