summaryrefslogtreecommitdiff
path: root/src/pool.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-25 04:32:30 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-25 04:39:59 -0500
commit2c90c10db17a1e379639f2aa5e7c47fcb351d9f7 (patch)
tree136adb3762bfbc58f28667b74a9aa2eca4ae431a /src/pool.h
parenta7424c1df9b565e77ff25fee46f8a79d2638f42c (diff)
downloadfork-ledger-2c90c10db17a1e379639f2aa5e7c47fcb351d9f7.tar.gz
fork-ledger-2c90c10db17a1e379639f2aa5e7c47fcb351d9f7.tar.bz2
fork-ledger-2c90c10db17a1e379639f2aa5e7c47fcb351d9f7.zip
Added support for a "fixed" directive
It lets you specify a fixed cost for a duration of a ledger file, for example: fixed ecu $2 2008/01/01 income assets:bank:checking 1 ecu income:salary end fixed This is equivalent to: 2008/01/01 income assets:bank:checking 1 ecu {=$2} income:salary
Diffstat (limited to 'src/pool.h')
-rw-r--r--src/pool.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pool.h b/src/pool.h
index 85de73a9..995ab23c 100644
--- a/src/pool.h
+++ b/src/pool.h
@@ -123,7 +123,8 @@ public:
// Parse commodity prices from a textual representation
- optional<price_point_t> parse_price_directive(char * line);
+ optional<std::pair<commodity_t *, price_point_t> >
+ parse_price_directive(char * line, bool do_not_add_price = false);
commodity_t *
parse_price_expression(const std::string& str,