From 762353945a744ae4b89970b9e08c2c22a52ddbff Mon Sep 17 00:00:00 2001 From: Ian2020 Date: Wed, 29 Nov 2023 13:12:24 +0000 Subject: Add new --align-intervals option. --- src/filters.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/filters.h') 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 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"); -- cgit v1.2.3