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/post.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/post.h') diff --git a/src/post.h b/src/post.h index ed22634f..51cbad64 100644 --- a/src/post.h +++ b/src/post.h @@ -106,6 +106,7 @@ public: virtual optional get_tag(const mask_t& tag_mask, const optional& value_mask = none) const; + virtual date_t value_date() const; virtual date_t date() const; virtual date_t actual_date() const; virtual optional effective_date() const; @@ -141,6 +142,7 @@ public: value_t total; std::size_t count; date_t date; + date_t value_date; datetime_t datetime; account_t * account; -- cgit v1.2.3