Current totals.
This commit is contained in:
parent
079551e41a
commit
bc5db8db99
2 changed files with 4 additions and 3 deletions
|
@ -576,10 +576,11 @@
|
||||||
(let* ((fees (foldl + 0 (map (lambda (b) (ldict-ref b 'fees)) balances)))
|
(let* ((fees (foldl + 0 (map (lambda (b) (ldict-ref b 'fees)) balances)))
|
||||||
(credit (foldl + 0 (map (lambda (b) (ldict-ref b 'credit)) balances)))
|
(credit (foldl + 0 (map (lambda (b) (ldict-ref b 'credit)) balances)))
|
||||||
(payment (foldl + 0 (map (lambda (b) (ldict-ref b 'payment)) balances)))
|
(payment (foldl + 0 (map (lambda (b) (ldict-ref b 'payment)) balances)))
|
||||||
(total (- (+ credit payment) fees)))
|
(total (- (+ credit payment) fees))
|
||||||
|
(current-total (foldl + 0 (map (lambda (m) (list-ref m 7)) members))))
|
||||||
(list (list (ansi-string #:bold "Total")
|
(list (list (ansi-string #:bold "Total")
|
||||||
""
|
""
|
||||||
""
|
(ansi-string "\t" #:bold (sprintf "~A" current-total))
|
||||||
(ansi-string "\t" #:bold (sprintf "~A" fees))
|
(ansi-string "\t" #:bold (sprintf "~A" fees))
|
||||||
(ansi-string "\t" #:bold (sprintf "~A" credit))
|
(ansi-string "\t" #:bold (sprintf "~A" credit))
|
||||||
(ansi-string "\t" #:bold (sprintf "~A" payment))
|
(ansi-string "\t" #:bold (sprintf "~A" payment))
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
(chicken format))
|
(chicken format))
|
||||||
|
|
||||||
;; Short banner
|
;; Short banner
|
||||||
(define banner-line "HackerBase 1.16.2 (c) 2023-2024 Brmlab, z.s.")
|
(define banner-line "HackerBase 1.17-dev (c) 2023-2024 Brmlab, z.s.")
|
||||||
|
|
||||||
;; Banner source with numbers for ANSI CSI SGR
|
;; Banner source with numbers for ANSI CSI SGR
|
||||||
(define banner-source "
|
(define banner-source "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue