allowances: correct the dormant-yearly note (collective order list is complete; a member's account.orders spans collectives)
This commit is contained in:
1 parent
36b7c2f77e
commit
a8200fdf54
1 file changed
+7
-4
+7
-4
@@ -4200,10 +4200,13 @@ def _payment_verdict(orders: list[dict], cycle_start: datetime,
|
||||
(7-day slack) is paid, before it is the remind path.
|
||||
|
||||
DORMANT ON TODAY'S DATA: as of 2026-11-04 the collective has no yearly orders
|
||||
(104 orders: 88 MONTHLY, 16 ONETIME, 0 YEARLY — verified per member account,
|
||||
since a member's own yearly order does not appear in the collective-level
|
||||
order list). The yearly branch is defensive robustness for a tier we may add
|
||||
later; it is not a fix for any current member. `now` is injectable for tests.
|
||||
(104 orders: 88 MONTHLY, 16 ONETIME, 0 YEARLY — read from the collective-level
|
||||
order list, which is complete for our collective). The yearly branch is
|
||||
defensive robustness for a tier we may add later; it is not a fix for any
|
||||
current member. Attribution caution: one member's `account.orders` spans EVERY
|
||||
collective they back, so an order's OWNING collective (`toAccount`) must be
|
||||
checked before it is credited to us — a foreign YEARLY order (social.coop) was
|
||||
once misread as a yearly payer here. `now` is injectable for tests.
|
||||
"""
|
||||
now = now or datetime.now(timezone.utc)
|
||||
|
||||
|
||||
Reference in new issue
Block a user