Compliance Reference Public

Getting Started

First-run setup for the ERPat Compliance suite: enable the module, run module migrations, grant per-area permissions, load demo data, find each of the twelve areas in the menu, and follow a first-week path that starts at the Overview dashboard.

Guide version: r1 Module version: 1.2.0 Updated: 2026-07-22 Estimated time: 5 min 1 views
Start Here / Getting Started

Getting Started

Bring the whole Compliance suite online: enable the module, run its migrations, grant the per-area permissions your team needs, optionally load demo data, and learn where each of the twelve areas lives. New administrators should start at the Overview dashboard and expand outward.

Slug: complianceEnable setting: module_complianceVersion: 1.2.0Category: Human Resource

1. Enable the module

Go to Settings → Manage Modules and enable Compliance. This sets the module_compliance flag that gates the whole suite — the left-menu group, the twelve area screens, the settings tab, the permissions, the routes, and the cron job. When the module is off, every area is withdrawn and the scheduled job self-skips.

On an upgrade from the old disciplinary-only build, module_compliance is seeded from the legacy module_disciplinary value, so an environment that already ran Disciplinary comes up with Compliance enabled automatically.

2. Run module migrations

The suite ships 19 tables across the twelve areas. Apply them with the module migration runner, which tracks its versions in the per-module migrations_compliance table:

php erpat migrate:modules

Run this against the main database and every tenant during deployment so all areas exist everywhere. The disciplinary tables that predate the module already ship in the base install schema; the migrations create the ten additional areas' tables (investigations, corrective actions, disclosures, speak-up reports, training, policies, obligations, saved reports, audit events, and configuration).

3. Grant per-area permissions

In Settings → Roles, grant Compliance access. Each area is gated independently — a role only sees the areas you switch on. Most areas offer a base toggle plus Create / Edit / Remove; Overview and Audit Log are view-only, and Configuration is an administrator area.

AreaBase permissionActions
Overviewcompliance_overviewView only
DisciplinarydeciplinaryCreate / Edit / Remove (+ category, manage, labels, officers, comment permissions)
Investigationscompliance_investigationCreate / Edit / Remove
Corrective Actionscompliance_corrective_actionCreate / Edit / Remove
Disclosurescompliance_disclosureCreate / Edit / Remove
Speak-up & Grievancescompliance_reportCreate / Edit / Remove (restricted — grant sparingly)
Training & Certificationscompliance_trainingCreate / Edit / Remove
Policies & Attestationscompliance_policyCreate / Edit / Remove
Compliance Calendarcompliance_calendarCreate / Edit / Remove
Reports & Analyticscompliance_analyticsCreate / Edit / Remove
Audit Logcompliance_auditView only
Configurationcompliance_configCreate / Edit / Remove (administrators)

Existing disciplinary grants carry over unchanged — the original permission keys were preserved. The full disciplinary key list and matrix is in Administration and Controls.

4. (Optional) Load demo data

To explore every screen with realistic sample content, run the module's demo seeder:

php erpat db:seed ComplianceDemo [--tenant=<key>|--all|--dry-run]

It seeds every area at once — disciplinary categories and cases, investigations, corrective actions, disclosures, speak-up reports, training courses and assignments, policies with attestation campaigns and exceptions, calendar obligations, saved reports, audit events, and configuration (jurisdictions, templates, retention rules, integrations). It is idempotent, so re-running it is safe.

  • --dry-run previews what would be written without changing data.
  • --tenant=<key> targets one tenant; --all covers the main database and every active tenant.
  • php erpat db:seed ComplianceDemo --remove soft-deletes the demo data again when you are done.

5. Where each area lives

Once enabled, the Compliance group appears in the left menu under Human Resource. These are the twelve area items, in menu order, each opening its own screen:

#Menu itemOpens
1Overviewcompliance/dashboard
2Disciplinaryhrs/compliance
3Investigationscompliance/investigations
4Corrective Actionscompliance/corrective_actions
5Disclosurescompliance/disclosures
6Speak-up & Grievancescompliance/reports
7Training & Certificationscompliance/training
8Policies & Attestationscompliance/policies
9Compliance Calendarcompliance/calendar
10Reports & Analyticscompliance/analytics
11Audit Logcompliance/audit
12Configurationcompliance/config

The Disciplinary area also appears as a tab on each team member's profile, and administrators get a Disciplinary settings tab under Settings (compliance/settings).

6. Your first week

A recommended path for a new compliance administrator:

  1. Start at Overview. Open Compliance → Overview to read the cross-area KPIs (open cases, SLA risk, policy-attestation and required-training percentages) and the compliance-health score. This is read-only, so you cannot break anything.
  2. Set up Configuration. Under Configuration, define your jurisdictions, document templates, retention rules, and integrations so the rest of the suite has a foundation.
  3. Seed Disciplinary categories. Populate the categories catalog (via Settings → Initial Data industry presets, or manually) so cases can be filed.
  4. Publish a first policy. In Policies & Attestations, add a policy and run a small attestation campaign to see the workflow end to end.
  5. Assign a training course. In Training & Certifications, add a course and assign it to a pilot group.
  6. Add a calendar obligation. In Compliance Calendar, add an upcoming obligation and watch it appear on the Overview action center.
  7. Return to Overview. Confirm your activity is reflected in the KPIs, then review the Audit Log to see the trail your setup created.

7. Confirm it works

  • The Compliance group appears in the left menu with all twelve items you granted.
  • The Overview dashboard loads its KPIs and health score.
  • Each area screen opens at the route above and lists its records (with demo data present if you seeded it).
  • A team member profile shows a Disciplinary tab.
  • Administrators see a Disciplinary tab under Settings, and the Configuration area is reachable.
  • The Audit Log shows entries for the actions you performed during setup.
Was this guide helpful?

Report a content problem