gnucash stable: Bug 799452 - Transaction Report: Cannot subtotal based on Number field

Christopher Lam clam at code.gnucash.org
Tue Oct 29 20:28:29 EDT 2024


Updated	 via  https://github.com/Gnucash/gnucash/commit/cf73829e (commit)
	from  https://github.com/Gnucash/gnucash/commit/2e520864 (commit)



commit cf73829e249d8c21bbb42104e1e416a4e9073146
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Oct 30 08:27:03 2024 +0800

    Bug 799452 - Transaction Report: Cannot subtotal based on Number field
    
    enable grouping and subtotals for Num field

diff --git a/gnucash/report/trep-engine.scm b/gnucash/report/trep-engine.scm
index 548115a7df..1504cfb2a7 100644
--- a/gnucash/report/trep-engine.scm
+++ b/gnucash/report/trep-engine.scm
@@ -243,19 +243,19 @@ in the Options panel."))
                   (cons 'sortkey (list SPLIT-ACTION))
                   (cons 'split-sortvalue xaccSplitGetAction)
                   (cons 'text (G_ "Number/Action"))
-                  (cons 'renderer-fn #f))
+                  (cons 'renderer-fn xaccSplitGetAction))
 
             (list 'number
                   (cons 'sortkey (list SPLIT-TRANS TRANS-NUM))
                   (cons 'split-sortvalue (compose xaccTransGetNum xaccSplitGetParent))
                   (cons 'text (G_ "Number"))
-                  (cons 'renderer-fn #f)))
+                  (cons 'renderer-fn (compose xaccTransGetNum xaccSplitGetParent))))
 
         (list 't-number
               (cons 'sortkey (list SPLIT-TRANS TRANS-NUM))
               (cons 'split-sortvalue (compose xaccTransGetNum xaccSplitGetParent))
               (cons 'text (G_ "Transaction Number"))
-              (cons 'renderer-fn #f))
+              (cons 'renderer-fn (compose xaccTransGetNum xaccSplitGetParent)))
 
         (list 'memo
               (cons 'sortkey (list SPLIT-MEMO))



Summary of changes:
 gnucash/report/trep-engine.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)



More information about the gnucash-changes mailing list