diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-25 04:32:30 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-25 04:39:59 -0500 |
commit | 2c90c10db17a1e379639f2aa5e7c47fcb351d9f7 (patch) | |
tree | 136adb3762bfbc58f28667b74a9aa2eca4ae431a /src/pool.h | |
parent | a7424c1df9b565e77ff25fee46f8a79d2638f42c (diff) | |
download | fork-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, |