From fc09b69fb765dc934be10d0544b1366f86f21ee2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 9 Jun 2010 01:23:38 -0400 Subject: 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 --- src/item.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/item.cc') 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>); -- cgit v1.2.3