diff options
author | Ian2020 <Ian2020@users.noreply.github.com> | 2023-11-29 13:12:24 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2024-08-06 11:08:15 -1000 |
commit | 762353945a744ae4b89970b9e08c2c22a52ddbff (patch) | |
tree | 1e3cc5fcbe4f89c5134f0fcb7a5f7ba3a8fb372d /src/filters.h | |
parent | b7be0a1fedfeec26e4b7d35357157d5a9209f3ee (diff) | |
download | fork-ledger-762353945a744ae4b89970b9e08c2c22a52ddbff.tar.gz fork-ledger-762353945a744ae4b89970b9e08c2c22a52ddbff.tar.bz2 fork-ledger-762353945a744ae4b89970b9e08c2c22a52ddbff.zip |
Add new --align-intervals option.
Diffstat (limited to 'src/filters.h')
-rw-r--r-- | src/filters.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/filters.h b/src/filters.h index 18bf912d..a4cec5b6 100644 --- a/src/filters.h +++ b/src/filters.h @@ -731,6 +731,7 @@ class interval_posts : public subtotal_posts account_t * empty_account; bool exact_periods; bool generate_empty_posts; + bool align_intervals; std::deque<post_t *> all_posts; @@ -742,10 +743,12 @@ public: expr_t& amount_expr, const date_interval_t& _interval, bool _exact_periods = false, - bool _generate_empty_posts = false) + bool _generate_empty_posts = false, + bool _align_intervals = false) : subtotal_posts(_handler, amount_expr), start_interval(_interval), interval(start_interval), exact_periods(_exact_periods), - generate_empty_posts(_generate_empty_posts) { + generate_empty_posts(_generate_empty_posts), + align_intervals(_align_intervals) { create_accounts(); TRACE_CTOR(interval_posts, "post_handler_ptr, expr_t&, date_interval_t, bool, bool"); |