Use current month for filtering payments in member-record.
This commit is contained in:
parent
ba62b905fd
commit
f62fe1a08c
3 changed files with 12 additions and 14 deletions
|
@ -49,9 +49,7 @@
|
|||
dictionary
|
||||
member-fees
|
||||
period
|
||||
configuration
|
||||
utils
|
||||
month)
|
||||
configuration)
|
||||
|
||||
;; Exchange rates
|
||||
(define exchange-rates-lookup-table
|
||||
|
@ -162,12 +160,7 @@
|
|||
((CZK) amount)
|
||||
((EUR) (* amount (lookup-eur-rate)))
|
||||
(else 0))))
|
||||
(filter
|
||||
(lambda (tr)
|
||||
(let* ((isodate (bank-transaction-date tr))
|
||||
(month (iso-date->month isodate)))
|
||||
(month<=? month (*current-month*))))
|
||||
(member-payments mr)))))
|
||||
(member-payments mr))))
|
||||
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue