From 67c9cf134d1403657c766e72b96d692a7d538f65 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 11 Nov 2009 21:32:18 -0500 Subject: 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 --- src/filters.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/filters.h') 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 public: enum element_t { - SET_PAYEE, - SET_ACCOUNT + SET_DATE, + SET_ACCOUNT, + SET_PAYEE } which_element; transfer_details(post_handler_ptr handler, -- cgit v1.2.3