Print the credit as well.
This commit is contained in:
parent
9cfd4e21e1
commit
a48d521b94
2 changed files with 13 additions and 3 deletions
|
@ -35,6 +35,7 @@
|
|||
member-calendar->years-table
|
||||
member-calendar->fees
|
||||
member-fees-total
|
||||
member-credit-total
|
||||
)
|
||||
|
||||
(import scheme
|
||||
|
@ -138,4 +139,10 @@
|
|||
(foldl + 0 (member-calendar->fees
|
||||
(member-calendar mr))))
|
||||
|
||||
;; Total credit manually recorded in member record
|
||||
(define (member-credit-total mr)
|
||||
(let* ((credit (member-record-info mr 'credit '()))
|
||||
(amounts (map car credit)))
|
||||
(foldl + 0 amounts)))
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue