Skip to content

Commit

Permalink
[new-aging] step 4 - prepended lists must be reversed
Browse files Browse the repository at this point in the history
after building lists by prepending in b720521 we need to process
them in reverse to obtain the original sorting of accounts and
owner-list.
  • Loading branch information
christopherlam committed Nov 10, 2019
1 parent 6f7c6b9 commit a482c25
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gnucash/report/business-reports/new-aging.scm
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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)))))

Expand Down

0 comments on commit a482c25

Please sign in to comment.