Unpaired table as list.

This commit is contained in:
Dominik Pantůček 2023-04-17 22:38:59 +02:00
parent c69b545aa1
commit 3c3502bbfb

View file

@ -36,6 +36,7 @@
print-members-base-stats print-members-base-stats
print-members-ids-stats print-members-ids-stats
print-members-fees-table print-members-fees-table
unpaired-table
print-unpaired-table print-unpaired-table
) )
@ -390,10 +391,8 @@
) )
)) ))
;; Prints all transactions which the members base considers unpaired. (define (unpaired-table mb)
(define (print-unpaired-table mb) (table->list
(print
(table->string
(cons (cons
(list "Id" "Date" "Amount" "" "VS" "Type" "Message" "Account" "Bank") (list "Id" "Date" "Amount" "" "VS" "Type" "Message" "Account" "Bank")
(map (map
@ -410,6 +409,13 @@
)) ))
(mbase-unpaired mb))) (mbase-unpaired mb)))
#:row0-border #t #:row0-border #t
#:col-border #t))) #:col-border #t))
;; Prints all transactions which the members base considers unpaired.
(define (print-unpaired-table mb)
(print
(string-intersperse
(unpaired-table mb)
"\n")))
) )