summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-04 02:52:36 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-04 02:53:18 -0400
commitdbac09405f1dede27d21f91dddc991f76e0f7438 (patch)
treecf63db890b72a95f424ccc9fe7df4e7c39adec13 /src/report.h
parent946534b102da5bd9bc1e26e1c0f3869dc81457d7 (diff)
downloadfork-ledger-dbac09405f1dede27d21f91dddc991f76e0f7438.tar.gz
fork-ledger-dbac09405f1dede27d21f91dddc991f76e0f7438.tar.bz2
fork-ledger-dbac09405f1dede27d21f91dddc991f76e0f7438.zip
Added new command: "pricemap [DATE]"
This outputs the pricing relationship of commodities in your data file, as of DATE (optional), using the DOT language. If you have graphviz installed, it can be viewed quite simply using: ledger pricemap | dotty - Each relationship in the graph shows the conversion factor to exchange one commodity for another, and the date at which this factor was determined.
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h
index 6fa238f0..99b8781b 100644
--- a/src/report.h
+++ b/src/report.h
@@ -198,6 +198,7 @@ public:
value_t reload_command(call_scope_t&);
value_t echo_command(call_scope_t& scope);
+ value_t pricemap_command(call_scope_t& scope);
keep_details_t what_to_keep() {
bool lots = HANDLED(lots) || HANDLED(lots_actual);