From 2c90c10db17a1e379639f2aa5e7c47fcb351d9f7 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 25 Nov 2009 04:32:30 -0500 Subject: 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 --- src/pool.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pool.h') 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 parse_price_directive(char * line); + optional > + parse_price_directive(char * line, bool do_not_add_price = false); commodity_t * parse_price_expression(const std::string& str, -- cgit v1.2.3