Fix handling calendar for nonsensical data.
This commit is contained in:
parent
bfe763c599
commit
7a0db40062
1 changed files with 20 additions and 18 deletions
|
@ -106,6 +106,8 @@
|
||||||
;; contain the year in the first cell and 12 cells for months after
|
;; contain the year in the first cell and 12 cells for months after
|
||||||
;; it.
|
;; it.
|
||||||
(define (member-calendar->years-table mc)
|
(define (member-calendar->years-table mc)
|
||||||
|
(if (null? mc)
|
||||||
|
'()
|
||||||
(let* ((fm (member-calendar-first-month mc))
|
(let* ((fm (member-calendar-first-month mc))
|
||||||
(lm (member-calendar-last-month mc))
|
(lm (member-calendar-last-month mc))
|
||||||
(fy (month-year fm))
|
(fy (month-year fm))
|
||||||
|
@ -123,7 +125,7 @@
|
||||||
(cons (member-calendar-entry->string
|
(cons (member-calendar-entry->string
|
||||||
(member-calendar-query mc (make-month y m)))
|
(member-calendar-query mc (make-month y m)))
|
||||||
row))))
|
row))))
|
||||||
rows))))))
|
rows)))))))
|
||||||
|
|
||||||
;; Converts the whole calendar into a list of amounts (fees)
|
;; Converts the whole calendar into a list of amounts (fees)
|
||||||
(define (member-calendar->fees mc)
|
(define (member-calendar->fees mc)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue