Handle types correctly, fix body membership.

This commit is contained in:
Dominik Pantůček 2023-06-18 19:48:50 +02:00
parent 34f54b2bb0
commit 0c3ebde1fb
3 changed files with 8 additions and 4 deletions

View file

@ -83,7 +83,8 @@
(reverse cal) (reverse cal)
(loop (cal-month-add cm) (loop (cal-month-add cm)
(cons (list cm (cons (list cm
(parameterize ((*current-month* cm)) (parameterize ((*current-month* cm)
(*current-day* (cal-ensure-day cm)))
(brmember-flags mr))) (brmember-flags mr)))
cal)))))) cal))))))

View file

@ -249,7 +249,8 @@
(- fee) (- fee)
'CZK 'CZK
(cadr mce) (cadr mce)
(- fee)))) (- fee)
"Fee")))
mc)) mc))
;; Converts bank transactions to transactions usable in balance ;; Converts bank transactions to transactions usable in balance
@ -266,7 +267,8 @@
(if (eq? curr 'CZK) (if (eq? curr 'CZK)
amt amt
(parameterize ((*current-month* (cal-ensure-month day))) (parameterize ((*current-month* (cal-ensure-month day)))
(* amt (lookup-eur-rate))))))) (* amt (lookup-eur-rate))))
"Payment")))
bts)) bts))
;; Returns a single credit/debit list of payments and fees calendar ;; Returns a single credit/debit list of payments and fees calendar

View file

@ -548,6 +548,7 @@
(define (print-member-balances-table mr) (define (print-member-balances-table mr)
(let ((data (map (lambda (r) (let ((data (map (lambda (r)
(list (cal-day->string (cadr r)) (list (cal-day->string (cadr r))
(list-ref r 6)
(list-ref r 4) (list-ref r 4)
(format "\t~A" (exact->inexact (list-ref r 5))) (format "\t~A" (exact->inexact (list-ref r 5)))
(format "\t~A" (exact->inexact (car r))) (format "\t~A" (exact->inexact (car r)))
@ -557,7 +558,7 @@
#:border '(((#:bottom #:right light) ... (#:bottom light)) #:border '(((#:bottom #:right light) ... (#:bottom light))
((#:right light) ... none) ((#:right light) ... none)
...) ...)
(cons '("\tDate\t" "\tComment\t" "\tAmount\t" "\tBalance\t") (cons '("\tDate\t" "\tType\t" "\tComment\t" "\tAmount\t" "\tBalance\t")
data)))) data))))
) )