diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-14 03:18:32 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-14 03:23:09 -0400 |
commit | dcffd218a1e90ee9a1cdd295c0a3015edc395448 (patch) | |
tree | 5957423c9ef3d629461f413e163917626c300c9d /src/journal.h | |
parent | e2fa8c6145679231cda5ad6b6e7440f6f16e654a (diff) | |
download | ledger-dcffd218a1e90ee9a1cdd295c0a3015edc395448.tar.gz ledger-dcffd218a1e90ee9a1cdd295c0a3015edc395448.tar.bz2 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/journal.h')
-rw-r--r-- | src/journal.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/journal.h b/src/journal.h index 183d074d..ca6b6e4f 100644 --- a/src/journal.h +++ b/src/journal.h @@ -140,10 +140,8 @@ public: account_t * find_account(const string& name, bool auto_create = true); account_t * find_account_re(const string& regexp); - bool add_xact(xact_t * xact, - optional<date_t::year_type> current_year = none); - void extend_xact(xact_base_t * xact, - optional<date_t::year_type> current_year = none); + bool add_xact(xact_t * xact); + void extend_xact(xact_base_t * xact); bool remove_xact(xact_t * xact); xacts_list::iterator xacts_begin() { |