From 5c620a07eb6dd7a6804284c16ac7f7399c471d8f Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Mon, 29 Apr 2024 11:07:19 +0800 Subject: [PATCH] fixup! experiment --- libgnucash/engine/Account.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgnucash/engine/Account.cpp b/libgnucash/engine/Account.cpp index ea1551368c3..407a2f3fc0d 100644 --- a/libgnucash/engine/Account.cpp +++ b/libgnucash/engine/Account.cpp @@ -1159,7 +1159,7 @@ gnc_account_foreach_split_until_date (const Account *acc, time64 end_date, return; auto before_date = [](time64 end_date, auto s) -> bool - { return (xaccTransGetDate (xaccSplitGetParent (s)) <= end_date); }; + { return (xaccTransGetDate (xaccSplitGetParent (s)) > end_date); }; auto splits{GET_PRIVATE(acc)->splits}; auto after_date_iter = std::upper_bound (splits.begin(), splits.end(), end_date, before_date);