diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-02 04:54:00 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-02 04:54:00 -0400 |
commit | ce206a392a4b5929f2f22b7d976abb552db83062 (patch) | |
tree | 80f5bb2576b6d46eeda577f97545f0ac3da1cbc4 | |
parent | 8e43a27211ec3a4bfa150e3f213abdba64b3aabe (diff) | |
download | fork-ledger-ce206a392a4b5929f2f22b7d976abb552db83062.tar.gz fork-ledger-ce206a392a4b5929f2f22b7d976abb552db83062.tar.bz2 fork-ledger-ce206a392a4b5929f2f22b7d976abb552db83062.zip |
The entry command no longer handles effective dates
-rw-r--r-- | src/derive.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/derive.cc b/src/derive.cc index 55cdcd2d..6abb22e1 100644 --- a/src/derive.cc +++ b/src/derive.cc @@ -38,7 +38,6 @@ namespace { struct xact_template_t { optional<date_t> date; - optional<date_t> eff_date; optional<string> code; optional<string> note; mask_t payee_mask; @@ -62,9 +61,6 @@ namespace { else out << _("Date: <today>") << std::endl; - if (eff_date) - out << _("Effective: ") << *eff_date << std::endl; - if (code) out << _("Code: ") << *code << std::endl; if (note) @@ -116,7 +112,7 @@ namespace { args_to_xact_template(value_t::sequence_t::const_iterator begin, value_t::sequence_t::const_iterator end) { - regex date_mask(_("([0-9]+(?:[-/.][0-9]+)?(?:[-/.][0-9]+))?(?:=.*)?")); + regex date_mask(_("([0-9]+(?:[-/.][0-9]+)?(?:[-/.][0-9]+))?")); regex dow_mask(_("(sun|mon|tue|wed|thu|fri|sat)")); smatch what; @@ -129,8 +125,6 @@ namespace { if (check_for_date && regex_match((*begin).to_string(), what, date_mask)) { tmpl.date = parse_date(what[0]); - if (what.size() == 2) - tmpl.eff_date = parse_date(what[1]); check_for_date = false; } else if (check_for_date && @@ -261,9 +255,6 @@ namespace { else added->_date = tmpl.date; - if (tmpl.eff_date) - added->_date_eff = tmpl.eff_date; - if (matching) { added->payee = matching->payee; added->code = matching->code; |