Start work on unpaired transactions.
This commit is contained in:
parent
5200b26685
commit
2ef2099c7d
1 changed files with 12 additions and 5 deletions
|
@ -114,11 +114,18 @@
|
||||||
(define (summary-email-body mb)
|
(define (summary-email-body mb)
|
||||||
(let* ((mbs (members-summary mb))
|
(let* ((mbs (members-summary mb))
|
||||||
(students (car mbs))
|
(students (car mbs))
|
||||||
(full (cdr mbs)))
|
(full (cdr mbs))
|
||||||
(list (format "Expected income: ~A" 0)
|
(income (+ (* (lookup-member-fee 'normal) full)
|
||||||
(format " ~A full members" full)
|
(* (lookup-member-fee 'student) students)))
|
||||||
(format " ~A students" students)
|
(income-lst
|
||||||
)))
|
(list (format "Expected income: ~A CZK" income)
|
||||||
|
(format " ~A full members" full)
|
||||||
|
(format " ~A students" students)))
|
||||||
|
(unpaired-lst
|
||||||
|
(list ""
|
||||||
|
"Unpaired transactions:")))
|
||||||
|
(append income-lst
|
||||||
|
unpaired-lst)))
|
||||||
|
|
||||||
;; Creates the summary email structure
|
;; Creates the summary email structure
|
||||||
(define (make-summary-email mb)
|
(define (make-summary-email mb)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue