diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-09 01:23:38 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-09 02:22:50 -0400 |
commit | fc09b69fb765dc934be10d0544b1366f86f21ee2 (patch) | |
tree | 755313686184c4f538c27f12c474266f61d22148 /src/item.cc | |
parent | 524c98244ec19e6a0368deb1e05c69955bcf2e34 (diff) | |
download | fork-ledger-fc09b69fb765dc934be10d0544b1366f86f21ee2.tar.gz fork-ledger-fc09b69fb765dc934be10d0544b1366f86f21ee2.tar.bz2 fork-ledger-fc09b69fb765dc934be10d0544b1366f86f21ee2.zip |
Fixed interaction with -V/X and grouped postings
With -s, -M/Y/D, -n, and a few other flags, postings get "grouped" into
meta-transactions that contain more postings than before. In all these
cases, -V use the date of the *earliest* posting in that group, which
makes little sense and caused breakages with -J. It now uses the latest
date.
Fixes #197 / 68EAF363-D0FE-4127-866E-A5AEBACB65D6
Diffstat (limited to 'src/item.cc')
-rw-r--r-- | src/item.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/item.cc b/src/item.cc index fea73066..6a948ae4 100644 --- a/src/item.cc +++ b/src/item.cc @@ -465,6 +465,11 @@ expr_t::ptr_op_t item_t::lookup(const symbol_t::kind_t kind, return WRAP_FUNCTOR(get_wrapper<&get_uncleared>); break; + case 'v': + if (name == "value_date") + return WRAP_FUNCTOR(get_wrapper<&get_date>); + break; + case 'L': if (name[1] == '\0') return WRAP_FUNCTOR(get_wrapper<&get_actual>); |