Coerce suspend start to month when calculating suspended months.

This commit is contained in:
Dominik Pantůček 2024-09-10 18:42:19 +02:00
parent dbc52833f0
commit 065d406e9c

View file

@ -423,7 +423,8 @@
(if (brmember-suspended? mr) (if (brmember-suspended? mr)
(let ((period (cal-periods-match (brmember-info mr 'suspend)))) (let ((period (cal-periods-match (brmember-info mr 'suspend))))
(if period (if period
(cal-month-diff (cal-period-since period) (*current-month*)) (cal-month-diff (cal-ensure-month (cal-period-since period))
(*current-month*))
0)) 0))
0)) 0))