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/post.h | |
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/post.h')
-rw-r--r-- | src/post.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -106,6 +106,7 @@ public: virtual optional<string> get_tag(const mask_t& tag_mask, const optional<mask_t>& value_mask = none) const; + virtual date_t value_date() const; virtual date_t date() const; virtual date_t actual_date() const; virtual optional<date_t> 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; |