Work only with active members in notifications.
This commit is contained in:
parent
70a49c0973
commit
2e873ab8ba
1 changed files with 12 additions and 10 deletions
|
@ -217,6 +217,7 @@
|
||||||
|
|
||||||
;; Returns true if given member should be notified in given number of months
|
;; Returns true if given member should be notified in given number of months
|
||||||
(define (member-to-notify? mr . mmonths)
|
(define (member-to-notify? mr . mmonths)
|
||||||
|
(if (member-active? mr)
|
||||||
(let ((months (if (null? mmonths)
|
(let ((months (if (null? mmonths)
|
||||||
1
|
1
|
||||||
(car mmonths)))
|
(car mmonths)))
|
||||||
|
@ -226,7 +227,8 @@
|
||||||
'regular))))
|
'regular))))
|
||||||
(and (brmember-active? mr)
|
(and (brmember-active? mr)
|
||||||
(< total 0)
|
(< total 0)
|
||||||
(< total (- (* months fee))))))
|
(< total (- (* months fee)))))
|
||||||
|
#f))
|
||||||
|
|
||||||
;; Return members to notify because of late payments for more than
|
;; Return members to notify because of late payments for more than
|
||||||
;; given number of months
|
;; given number of months
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue