diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-12 21:31:55 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-13 01:03:47 -0400 |
commit | 15bf3ed39ed24bc55abc624757a1a943ebabb085 (patch) | |
tree | 5d2cc4212554f22696ae123e9cd7ab195af2ad66 /src/session.h | |
parent | 9effdb3aa2bfcad9dc391cbe5a15b9f563505b00 (diff) | |
download | fork-ledger-15bf3ed39ed24bc55abc624757a1a943ebabb085.tar.gz fork-ledger-15bf3ed39ed24bc55abc624757a1a943ebabb085.tar.bz2 fork-ledger-15bf3ed39ed24bc55abc624757a1a943ebabb085.zip |
account(NAME) function can lookup account objects
For example, just the word "account" returns the name of the current
posting's account, but account("Expenses:Food") returns the actual
account object, so that it's total may be accessed.
Diffstat (limited to 'src/session.h')
-rw-r--r-- | src/session.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session.h b/src/session.h index 4968f1b8..5130e3fb 100644 --- a/src/session.h +++ b/src/session.h @@ -75,6 +75,8 @@ public: void read_journal_files(); void close_journal_files(); + value_t fn_account(call_scope_t& scope); + void report_options(std::ostream& out) { HANDLER(cache_).report(out); |