gnucash maint: [new-aging] step 4 - prepended lists must be reversed

Christopher Lam clam at code.gnucash.org
Sun Nov 10 05:17:49 EST 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/a482c250 (commit)
	from  https://github.com/Gnucash/gnucash/commit/6f7c6b9d (commit)



commit a482c250726fe35447165625a8e74fcc81bbdd6f
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Nov 10 13:32:50 2019 +0800

    [new-aging] step 4 - prepended lists must be reversed
    
    after building lists by prepending in b72052137 we need to process
    them in reverse to obtain the original sorting of accounts and
    owner-list.

diff --git a/gnucash/report/business-reports/new-aging.scm b/gnucash/report/business-reports/new-aging.scm
index 6331a147d..231d9c333 100644
--- a/gnucash/report/business-reports/new-aging.scm
+++ b/gnucash/report/business-reports/new-aging.scm
@@ -286,6 +286,7 @@ exist but have no suitable transactions."))
                         (let ((owner (car owner-and-aging))
                               (aging (cadr owner-and-aging))
                               (aging-total (caddr owner-and-aging)))
+
                           (gnc:html-table-append-row!
                            table
                            (append
@@ -308,7 +309,8 @@ exist but have no suitable transactions."))
                                 (gnc:owner-report-text owner account)
                                 (gnc:make-gnc-monetary comm aging-total)))))
                             (options->address options receivable owner)))))
-                      owners-and-aging)
+                      (reverse owners-and-aging))
+
                      (gnc:html-table-append-row!
                       table
                       (append
@@ -320,7 +322,8 @@ exist but have no suitable transactions."))
                           (gnc:make-html-table-cell/markup
                            "total-number-cell" (gnc:make-gnc-monetary comm amt)))
                         acc-totals)))))
-                 accounts-and-owners)
+                 (reverse accounts-and-owners))
+
                 (for-each gncOwnerFree tofree)
                 (gnc:html-document-add-object! document table)))))
 



Summary of changes:
 gnucash/report/business-reports/new-aging.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list