rctab.routers.accounting.abolishment

Mark subscriptions as “abolished” if they have been inactive for >90 days.

Functions

abolish_subscriptions(conn, admin_oid)

Abolish subscriptions that have been inactive for more than 90 days.

adjust_budgets_to_zero(conn, admin_oid, sub_ids)

Adjust allocation and approval totals to align with usage totals.

get_inactive_subs(conn)

Returns subscriptions inactive for more than 90 days and not yet abolished.

send_abolishment_email(conn, recipients, ...)

Send abolishment summary email and record the result.

set_abolished_flag(conn, sub_ids)

Set the abolished flag to true for the given subscriptions.

Classes

AbolishmentAdjustment

Abolishment adjustment summary for one subscription.