rctab.routers.accounting.abolishment

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

Functions

abolish_subscriptions(admin_oid)

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

adjust_budgets_to_zero(admin_oid, sub_ids)

Adjusts allocation and approval budgets to zero for the given subscriptions.

get_inactive_subs()

Returns a list of subscriptions which have been inactive for more than 90 days.

send_abolishment_email(recipients, adjustments)

Sends an email to the given recipients with the given adjustments.

set_abolished_flag(sub_ids)

Sets the abolished flag to true for the given subscriptions.