Company Tag Reference Public

Getting Started

Set up ERPat ID Studio from scratch: enable the Company Tag module, run its migrations, grant permissions, configure your employee-ID numbering format, and allocate the first IDs.

Guide version: r1 Module version: 1.4.0 Updated: 2026-07-22 Estimated time: 3 min
Introduction

Getting Started

Enable the module, let its migrations create the ID Studio tables, grant the right people access, set your ID numbering format, and allocate the first employee IDs — you'll be ready to design a card and generate a batch.

????
Who this is for. This page is for an administrator installing and configuring ID Studio. Everyday users can skip to Daily Operations once the steps below are done.

Prerequisites

  • PHP ≥ 8.2 and a running ERPat instance with the Company Tag module available.
  • Admin access to Settings → Manage Modules and the Roles editor.
  • Active staff employees — ID Studio numbers and cards staff users (their Job ID lives on the employee's job info).
  • For rendered cards: the server's GD image extension (used to draw cards) — standard in ERPat.

1 · Enable the module & run migrations

  1. Turn on Company Tag

    Open Settings → Manage Modules and enable Company Tag (or set module_company_tag = 1).

  2. Run the module migrations

    This creates the ID Studio tables (idstudio_sequences, idstudio_templates, idstudio_template_versions, idstudio_jobs, idstudio_tags). They are idempotent and reversible.

    php erpat migrate:modules

2 · Grant permissions

ID Studio ships granular permissions. Assign them to the right roles (admins bypass all checks):

PermissionLets a user…
staff_view_company_tagOpen Company Tag / the ID Studio dashboard (this is the module Enable toggle).
idstudio_settingsConfigure the ID format & other ID Studio settings.
idstudio_allocateAllocate employee IDs to staff who lack one.
company_tag_templateManage ID-card templates (the visual builder).
idstudio_tags_generateGenerate ID cards in bulk.
idstudio_tags_viewOpen the generated-tag registry.
idstudio_tags_manageIssue / revoke / replace a tag.
can_export_cardUse the classic per-employee card export (legacy Company Tags tab).

3 · Configure employee-ID numbering

  1. Open ID Studio → Settings

    Set the ID format. It must contain exactly one sequence token. Tokens:

    {COMPANY} {YEAR} {YY} {MONTH} {DEPT} {LOC} {SEQ} {SEQ:4}…{SEQ:10} {JOBID}

    Example: {COMPANY}-{YEAR}-{SEQ:5}ACME-2026-00421. The screen shows a live example and a collision check as you type.

  2. Set the company code, sequence start & reset

    Company code fills {COMPANY}. Sequence start is the first counter value. Sequence reset (never / yearly / monthly) decides whether the counter restarts each year/month.

  3. Set generation defaults

    Default validity (days; blank = never expires), active-tag policy, default template, and whether to auto-allocate missing IDs during generation.

????
Already have employee IDs? Existing Job IDs are never overwritten. If you set a format whose next value would collide with an existing ID, the collision check flags it — raise the sequence start so new IDs land above what's already in use.

4 · Allocate the first IDs

  1. Open ID Studio → Allocate IDs

    The table lists staff who have no Job ID yet. Tick the ones to number (selection persists across pages), or use Allocate all missing.

  2. Allocate

    Each selected employee gets the next unique ID from your format. Allocation is atomic (safe if two people run it at once) and every assignment is written to the audit log.

You're set — what next?

Was this guide helpful?

Report a content problem