tools awrs urn - BevvyTech/BrewskiDocs GitHub Wiki

Tools – AWRS/URN Check (/tools/awrs-urn)

Purpose

  • Provide a quick launcher for the HMRC Alcohol Wholesaler Registration Scheme (AWRS) search so operators can validate URN numbers while staying inside the admin.

Data & Dependencies

  • Renders AwrsUrnCheckDialog (Admin/src/components/tools/awrs-urn-check-dialog.tsx).
  • Uses only client-side behaviour; the HMRC search opens in a new browser window pointing to https://www.tax.service.gov.uk/check-the-awrs-register.

Key Interactions

  • The page opens with the AWRS/URN dialog active so users can immediately enter a registration number.
  • Clicking Check formats the entry (trim whitespace, collapse spaces, replace with +) and spawns the HMRC lookup in a popup window.
  • Closing the dialog returns users to the Tools overview.
⚠️ **GitHub.com Fallback** ⚠️