Skip to content

ffl_core.api.pending_4473

Source: apps/ffl_core/ffl_core/api/pending_4473.py · 1 endpoint(s)

Generated by make api-docs — do not edit by hand.

alert_overdue_pending_4473

POST /api/method/ffl_core.api.pending_4473.alert_overdue_pending_4473

Auth (derived from code): Any authenticated user — no explicit role gate at function entry (deliberate open reads document this in Permissions).

Raise a manager ToDo for every counter order whose 4473 was abandoned.

Scheduled daily. Alerts only — it never deletes a draft, never releases a gun and never calls FastBound: an abandoned 4473 leaves a pending disposition in the bound book, and deleting one of those unattended is exactly the automation the owner refused.

Deduped by ffl_core.alerts.alert_once, so an order that stays abandoned is one ToDo on the invoice until a person closes it — not one per day.

Returns: {overdue, alerted} — alerted counts only the NEW alerts; the difference is orders already carrying an open ToDo.

Permissions: Inventory roles (manual path; the scheduler runs as Administrator).

apps/ffl_core/ffl_core/api/pending_4473.py:64