mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[investment-lots] use higher order functions, instead of lambdas
This commit is contained in:
parent
6907d772d4
commit
d928ed4ada
@ -1855,9 +1855,7 @@
|
||||
(gnc:html-chart-add-data-series!
|
||||
chart
|
||||
(account->name account)
|
||||
(map (lambda (value)
|
||||
(gnc:gnc-monetary-amount (value->monetary value)))
|
||||
gain-values)
|
||||
(map (compose gnc:gnc-monetary-amount value->monetary) gain-values)
|
||||
(car colors))
|
||||
(set! colors (cdr colors)))))
|
||||
|
||||
@ -2000,9 +1998,7 @@
|
||||
(gnc:html-chart-set-stacking?! chart
|
||||
(eq? chart-type 'bar-stacked)))))
|
||||
|
||||
(for-each
|
||||
(lambda (account) (add-account-report account))
|
||||
accounts)
|
||||
(for-each add-account-report accounts)
|
||||
|
||||
(add-padding-rows 3)
|
||||
(gnc:html-table-append-ruler! table column-count)
|
||||
|
Loading…
Reference in New Issue
Block a user