summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-14 03:18:32 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-14 03:23:09 -0400
commitdcffd218a1e90ee9a1cdd295c0a3015edc395448 (patch)
tree5957423c9ef3d629461f413e163917626c300c9d /src/item.h
parente2fa8c6145679231cda5ad6b6e7440f6f16e654a (diff)
downloadfork-ledger-dcffd218a1e90ee9a1cdd295c0a3015edc395448.tar.gz
fork-ledger-dcffd218a1e90ee9a1cdd295c0a3015edc395448.tar.bz2
fork-ledger-dcffd218a1e90ee9a1cdd295c0a3015edc395448.zip
Revised how Ledger handles the "current year"
Now when the Y directive sets the current year for a region, it affects everything, as if the clock really were set back to that year.
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/item.h b/src/item.h
index 209b2dc2..8018db9a 100644
--- a/src/item.h
+++ b/src/item.h
@@ -162,14 +162,12 @@ public:
const optional<value_t>& value = none,
const bool overwrite_existing = true);
- virtual void parse_tags(const char * p,
- scope_t& scope,
- bool overwrite_existing = true,
- optional<date_t::year_type> current_year = none);
- virtual void append_note(const char * p,
- scope_t& scope,
- bool overwrite_existing = true,
- optional<date_t::year_type> current_year = none);
+ virtual void parse_tags(const char * p,
+ scope_t& scope,
+ bool overwrite_existing = true);
+ virtual void append_note(const char * p,
+ scope_t& scope,
+ bool overwrite_existing = true);
static bool use_effective_date;