Limit the number of transactions shown.

This commit is contained in:
Dominik Pantůček 2023-06-30 23:11:46 +02:00
parent d989f09595
commit fad923a15d
3 changed files with 8 additions and 2 deletions

View file

@ -214,6 +214,10 @@ file can be overriden by this option. This file is used for the
.B \-dokuwiki \fRdir .B \-dokuwiki \fRdir
Base directory of DokuWiki installation. Base directory of DokuWiki installation.
.TP
.B \-count \fRcount
Maximum count of transactions shown in member detail view.
.TP .TP
.B \-from \fRemail .B \-from \fRemail
Specify sender email address. The value read from configuration file Specify sender email address. The value read from configuration file

View file

@ -101,6 +101,8 @@
(*checked-file* file)) (*checked-file* file))
(-dokuwiki (dir) "Base directory of DokuWiki" (-dokuwiki (dir) "Base directory of DokuWiki"
(*doku-base* dir)) (*doku-base* dir))
(-count (count) "Maximum number of transactions shown"
(*show-payments-count* (string->number pcount)))
"" ""
"Email options:" "Email options:"
(-from (email) "Sender email address" (-from (email) "Sender email address"
@ -358,7 +360,7 @@
(print "Mailman synchronization disabled with manually specified current month."))) (print "Mailman synchronization disabled with manually specified current month.")))
((notify) ((notify)
(let ((nmembers (members-to-notify MB (-notify-months-)))) (let ((nmembers (members-to-notify MB (-notify-months-))))
(newline) / (newline)
(if (null? nmembers) (if (null? nmembers)
(print "Everyone paid on time.") (print "Everyone paid on time.")
(let () (let ()

View file

@ -69,7 +69,7 @@
cal-day cal-day
racket-kwargs) racket-kwargs)
(define *show-payments-count* (make-parameter #f)) (define *show-payments-count* (make-parameter 36))
;; Returns nicely formatted table ;; Returns nicely formatted table
(define (member-info->table mr) (define (member-info->table mr)