summaryrefslogtreecommitdiff
path: root/src/global.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-27 21:34:08 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-27 21:34:08 -0400
commit828a1e8bf98365b6266cba95caba08a48b4c745b (patch)
tree2e2e4016d2509af252ea339bf61a81b0aaa45a90 /src/global.cc
parent07cca71893ef82e4199dc0dcadba25cc0185c4ed (diff)
downloadfork-ledger-828a1e8bf98365b6266cba95caba08a48b4c745b.tar.gz
fork-ledger-828a1e8bf98365b6266cba95caba08a48b4c745b.tar.bz2
fork-ledger-828a1e8bf98365b6266cba95caba08a48b4c745b.zip
Added --actual-dates, for overriding --effective
This is so that if someone has --effective in their .ledgerrc, they can force the use of actual dates.
Diffstat (limited to 'src/global.cc')
-rw-r--r--src/global.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/global.cc b/src/global.cc
index 02c9e79a..e05b2bd8 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -419,7 +419,9 @@ void global_scope_t::normalize_report_options(const string& verb)
report_t& rep(report());
// jww (2009-02-09): These globals are a hack, but hard to avoid.
- item_t::use_effective_date = rep.HANDLED(effective);
+ item_t::use_effective_date = (rep.HANDLED(effective) &&
+ ! rep.HANDLED(actual_dates));
+
rep.session.commodity_pool->keep_base = rep.HANDLED(base);
rep.session.commodity_pool->get_quotes = rep.session.HANDLED(download);