(parse_ledger_data): Don't auto-create equivalencies for bytes,

kilobytes, etc., since people may want to use "b" for something else.
This commit is contained in:
John Wiegley 2005-02-03 05:18:34 +00:00
parent 3ea12c622d
commit 37a67d89b0
2 changed files with 6 additions and 2 deletions

View file

@ -296,6 +296,7 @@ void parse_ledger_data(journal_t * journal, parser_t * cache_parser,
parse_conversion("1.0m", "60s");
parse_conversion("1.0h", "60m");
#if 0
commodity = commodity_t::find_commodity("b", true);
commodity->flags |= COMMODITY_STYLE_NOMARKET;
@ -303,6 +304,7 @@ void parse_ledger_data(journal_t * journal, parser_t * cache_parser,
parse_conversion("1.00 Mb", "1024 Kb");
parse_conversion("1.00 Gb", "1024 Mb");
parse_conversion("1.00 Tb", "1024 Gb");
#endif
journal->price_db = config.price_db;
if (! journal->price_db.empty() &&

View file

@ -2939,10 +2939,12 @@ P 2004/06/21 02:18:02 AAPL $32.91
P 2004/06/21 02:18:02 AU $400.00
@end smallexample
Specify the price history to use with the @option{-P} option:
Specify the price history to use with the @option{--price-db} option,
with the @option{-V} option to report in terms of current market
value:
@example
ledger -P prices.db balance brokerage
ledger --price-db prices.db -V balance brokerage
@end example
The balance for your brokerage account will be reported in US dollars,