summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-06-26 17:09:34 +0100
committerJohn Wiegley <johnw@newartisans.com>2009-06-26 17:15:35 +0100
commit2ef1934bb0dbcd08dfe8d4dc68bfd1509c8f51ce (patch)
tree5225fc7f164feed6a0af36f552b9fa713a3d8840 /src/amount.h
parent4574c30fcfd3b03bab9a368a6ff2928af7e11e28 (diff)
downloadfork-ledger-2ef1934bb0dbcd08dfe8d4dc68bfd1509c8f51ce.tar.gz
fork-ledger-2ef1934bb0dbcd08dfe8d4dc68bfd1509c8f51ce.tar.bz2
fork-ledger-2ef1934bb0dbcd08dfe8d4dc68bfd1509c8f51ce.zip
Restored --price option, added baseline test
This option reports only in terms of the annotated price of the commodities involved, otherwise it reports the amounts themselves. It can be used in conjunction with other reports, as it applies to the displayed amounts, not the actual amounts being calculated.
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amount.h b/src/amount.h
index 990b326f..b3c632af 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -384,6 +384,8 @@ public:
const optional<datetime_t>& moment = none,
const optional<commodity_t&>& in_terms_of = none) const;
+ amount_t price() const;
+
/*@}*/
/** @name Truth tests