Move all fees functions to member-fees module.
This commit is contained in:
parent
b37a7ac2fb
commit
d483025321
2 changed files with 21 additions and 18 deletions
23
bbstool.scm
23
bbstool.scm
|
@ -26,7 +26,6 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
")
|
||||
|
||||
(import testing
|
||||
(chicken format)
|
||||
listing
|
||||
dictionary
|
||||
month
|
||||
|
@ -135,23 +134,11 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
(print "Current month: " (month->string (*current-month*)))
|
||||
(newline)
|
||||
(if mr
|
||||
(let* ((mc (member-calendar mr))
|
||||
(fees (member-calendar->fees mc)))
|
||||
(let ()
|
||||
(print-member-table mr)
|
||||
(print (table->string (cons (map (lambda (c)
|
||||
(sprintf "\t~A\t" c))
|
||||
(list "" 1 2 3 4 5 6 7 8 9 10 11 12))
|
||||
(member-calendar->years-table mc))
|
||||
#:table-border #t
|
||||
#:row-border #t
|
||||
#:col-border #t
|
||||
#:ansi #t
|
||||
))
|
||||
;; (print fees)
|
||||
(print "Total fees: " (foldl + 0 fees))
|
||||
)
|
||||
(print-members-base-table MB)
|
||||
)
|
||||
(print-member-calendar-table mr)
|
||||
(print "Total fees: " (member-fees-total mr)))
|
||||
(print-members-base-table MB))
|
||||
(newline))
|
||||
((print-stats)
|
||||
(newline)
|
||||
|
@ -185,6 +172,6 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
(loop (cdr mb)))))
|
||||
((fees)
|
||||
(newline)
|
||||
(print-member-fees-table MB))
|
||||
(print-members-fees-table MB))
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue