Prepare for balances in totals table.
This commit is contained in:
parent
8f0d5acf0a
commit
606a208237
5 changed files with 40 additions and 21 deletions
|
@ -65,6 +65,7 @@
|
|||
|
||||
member-record-add-payment
|
||||
member-payments
|
||||
member-balances
|
||||
|
||||
member-record-tests!
|
||||
)
|
||||
|
@ -345,6 +346,10 @@
|
|||
(define (member-payments mr)
|
||||
(dict-ref mr 'payments '()))
|
||||
|
||||
;; Balances totals
|
||||
(define (member-balances mr)
|
||||
(dict-ref mr 'balances (make-dict)))
|
||||
|
||||
;; Self-tests
|
||||
(define (member-record-tests!)
|
||||
(run-tests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue