diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-13 19:30:53 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-13 19:30:53 -0400 |
commit | a87ed245d71d3737c6d56e7a829f361510fd53a6 (patch) | |
tree | 923c6bb42b71d24d9d7d74b4543ac249411e61ca /src/report.cc | |
parent | 326cbea4c7f1eb3fb5c91853838a87d8686d8b05 (diff) | |
download | fork-ledger-a87ed245d71d3737c6d56e7a829f361510fd53a6.tar.gz fork-ledger-a87ed245d71d3737c6d56e7a829f361510fd53a6.tar.bz2 fork-ledger-a87ed245d71d3737c6d56e7a829f361510fd53a6.zip |
Changed the semantics of the "prices" report
The prices report now uses the following scheme:
PAYEE -> name of commodity of price
ACCOUNT -> name of commodity of item
AMOUNT -> price
DATE -> date of pricing
However, the report does not show the payee. The only reason the payee
is set is to enable clever querying. For example:
ledger prices gold # show all known prices for GOLD
ledger prices @gold # show all known prices *in* GOLD
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/report.cc b/src/report.cc index 9227ee2c..e195a8c2 100644 --- a/src/report.cc +++ b/src/report.cc @@ -80,8 +80,7 @@ report_t::report_t(session_t& _session) HANDLER(plot_total_format_).on("%D %(S(T))\n"); HANDLER(prices_format_).on( - "%-.9(date) %-.10(payee) %-10(account) %12(strip(display_amount))\n%/" - "%21|%-.9(date) %-.10(payee) %-10(account) %12(strip(display_amount))\n"); + "%-.9(date) %-8(account) %12(strip(display_amount))\n"); HANDLER(pricesdb_format_).on("P %[%Y/%m/%d %H:%M:%S] %A %t\n"); HANDLER(csv_format_).on( |