diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-23 01:51:23 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-23 01:51:23 -0400 |
commit | 9f53efbf5f8e49b9c4dbe8c3ff595e99903b3aab (patch) | |
tree | acf41ff447a8d2adac68c51f40f0a50e846133c8 /src/xact.cc | |
parent | de6de07bac1337b0dd87b41c853369dc8432c2af (diff) | |
download | fork-ledger-9f53efbf5f8e49b9c4dbe8c3ff595e99903b3aab.tar.gz fork-ledger-9f53efbf5f8e49b9c4dbe8c3ff595e99903b3aab.tar.bz2 fork-ledger-9f53efbf5f8e49b9c4dbe8c3ff595e99903b3aab.zip |
Many fixes to both --market and --exchange
Diffstat (limited to 'src/xact.cc')
-rw-r--r-- | src/xact.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xact.cc b/src/xact.cc index 5818b687..14464c6f 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -77,6 +77,9 @@ optional<string> xact_t::get_tag(const mask_t& tag_mask, date_t xact_t::date() const { + if (xdata_ && is_valid(xdata_->date)) + return xdata_->date; + if (item_t::use_effective_date) { if (_date_eff) return *_date_eff; |