gnucash stable: [html-acct-table] bugfix last commit - scan accounts once
Christopher Lam
clam at code.gnucash.org
Fri Jul 3 19:15:12 EDT 2026
Updated via https://github.com/Gnucash/gnucash/commit/29eb2b28 (commit)
from https://github.com/Gnucash/gnucash/commit/d548b801 (commit)
commit 29eb2b28b6eb09c3e33ce2baa90a8f7a755c489d
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Fri Jul 3 03:42:59 2026 +0400
[html-acct-table] bugfix last commit - scan accounts once
If the acct list had duplicates, previous impl would include their
splits only once. if we scan account splits manually we must avoid
scanning the same account multiple times.
diff --git a/gnucash/report/html-acct-table.scm b/gnucash/report/html-acct-table.scm
index 7c9ce57dcb..472b58f280 100644
--- a/gnucash/report/html-acct-table.scm
+++ b/gnucash/report/html-acct-table.scm
@@ -480,6 +480,7 @@
(define-module (gnucash report html-acct-table))
+(use-modules (srfi srfi-1))
(use-modules (srfi srfi-2))
(use-modules (srfi srfi-9))
(use-modules (gnucash core-utils))
@@ -637,7 +638,7 @@
(lambda (acc)
(gnc-account-foreach-split-between-dates
acc start-date end-date #f (lambda (s) (merge-split s #f))))
- accts)
+ (delete-duplicates accts))
(case balance-mode
((post-closing) #f)
Summary of changes:
gnucash/report/html-acct-table.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list