From a87ed245d71d3737c6d56e7a829f361510fd53a6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 13 Feb 2009 19:30:53 -0400 Subject: 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 --- src/report.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/report.cc') 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( -- cgit v1.2.3