diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-11 21:32:18 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-11 21:32:32 -0500 |
commit | 67c9cf134d1403657c766e72b96d692a7d538f65 (patch) | |
tree | cd72247ddf240746b524c8fecf6d10f8667b37e4 /src/filters.h | |
parent | c22b8457eff27f5227fdf452e036b33e41e229c2 (diff) | |
download | fork-ledger-67c9cf134d1403657c766e72b96d692a7d538f65.tar.gz fork-ledger-67c9cf134d1403657c766e72b96d692a7d538f65.tar.bz2 fork-ledger-67c9cf134d1403657c766e72b96d692a7d538f65.zip |
Added --date, similar to --account and --payee
This lets you do things like store a date as the value of a tag, then
run:
ledger --date='has_tag("Foo") ? to_date(tag("Foo")) : date' reg
Diffstat (limited to 'src/filters.h')
-rw-r--r-- | src/filters.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/filters.h b/src/filters.h index ba3692ac..cc3729ea 100644 --- a/src/filters.h +++ b/src/filters.h @@ -550,8 +550,9 @@ class transfer_details : public item_handler<post_t> public: enum element_t { - SET_PAYEE, - SET_ACCOUNT + SET_DATE, + SET_ACCOUNT, + SET_PAYEE } which_element; transfer_details(post_handler_ptr handler, |