diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-12 14:58:44 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-12 14:58:44 -0400 |
commit | 0555e7f61ef14ec667f8ba611e60fd96133a9676 (patch) | |
tree | c8b853c67515613d832820bd8471099793403a11 /src/report.h | |
parent | 28c65cda512135bde36542351533941b019b6ee8 (diff) | |
download | fork-ledger-0555e7f61ef14ec667f8ba611e60fd96133a9676.tar.gz fork-ledger-0555e7f61ef14ec667f8ba611e60fd96133a9676.tar.bz2 fork-ledger-0555e7f61ef14ec667f8ba611e60fd96133a9676.zip |
Improved value expression function 'commodity'
Without arguments -- and in a posting -- it is equivalent to
"commodity(amount)". Otherwise, it returns the commodity symbol of its
argument.
Diffstat (limited to 'src/report.h')
-rw-r--r-- | src/report.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h index f1a213c1..082c204b 100644 --- a/src/report.h +++ b/src/report.h @@ -160,6 +160,7 @@ public: value_t fn_ansify_if(call_scope_t& scope); value_t fn_percent(call_scope_t& scope); value_t fn_price(call_scope_t& scope); + value_t fn_commodity(call_scope_t& scope); value_t fn_lot_date(call_scope_t& scope); value_t fn_lot_price(call_scope_t& scope); value_t fn_lot_tag(call_scope_t& scope); |