diff --git a/artifacts/tx-os/src/pages/orders-incoming.tsx b/artifacts/tx-os/src/pages/orders-incoming.tsx index ced8b3c1..f4fbbbfd 100644 --- a/artifacts/tx-os/src/pages/orders-incoming.tsx +++ b/artifacts/tx-os/src/pages/orders-incoming.tsx @@ -712,7 +712,7 @@ export default function OrdersIncomingPage() { - {t("incomingOrders.clearSelection")} + {t("common.cancel")} { diff --git a/lib/api-spec/openapi.yaml b/lib/api-spec/openapi.yaml index 6434aaac..fb655807 100644 --- a/lib/api-spec/openapi.yaml +++ b/lib/api-spec/openapi.yaml @@ -1386,10 +1386,15 @@ paths: tags: [orders] summary: Delete a service order description: | - Permanently deletes the order. Allowed when the caller is an admin, - when the caller owns the order AND it is in a terminal status - (completed/cancelled), OR when the caller holds the `orders.receive` - permission (i.e. a receiver clearing items from their incoming queue). + Permanently deletes the order. Allowed when: + - the caller is an admin (any order, any status); or + - the caller owns the order AND it is in a terminal status + (completed/cancelled); or + - the caller holds the `orders.receive` permission AND the order + is currently visible in their own incoming view — i.e. an + unclaimed pending order, or one they have themselves claimed + and is still active (received/preparing). Receivers cannot + delete another receiver's claimed order, nor terminal orders. parameters: - name: id in: path