Module: Multi-Plant Management v1.0.0
What is Multi-Plant Management?
Enterprise multi-plant hierarchy, access control, and inter-plant operations for Perfex CRM
This module installs into modules/multi_plant_management/ and adds its own admin menus, permissions, and database tables — without editing Perfex CRM core files.
Who should use this module?
- Admins — activate the module, configure Settings, assign roles, and manage integrations.
- Operators / day-to-day staff — create and update records (orders, attendance, shipments, messages, etc.).
- Managers / approvers — review queues, approve workflows, and monitor dashboards/KPIs.
- Finance / compliance / ops leads — run reports, exports, and audit trails when the module supports them.
What you can achieve
- Keep all related work in one place inside Perfex CRM instead of spreadsheets.
- Control who can view, create, edit, approve, or export with role permissions.
- Use dashboards and reports to see status, bottlenecks, and history.
- Connect to other CRM data (customers, invoices, items, staff) where the module integrates.
Recommended learning path
- Read How to Install and activate the module.
- Skim Features so you know what screens exist.
- Complete the Quick Start checklist on this page (Settings → masters → first sample record).
- Open each screen guide under Screen-by-screen guides when you need step-by-step help.
- Check Version & Changelog after upgrades for new options.
Tip: Train one admin first, then create a limited role for operators so they only see the screens they need.
5-minute Quick Start
Follow this short path the first time you use Multi-Plant Management:
- Activate — Setup → Modules → activate Multi-Plant Management (run Upgrade if prompted).
- Permissions — Setup → Staff → Roles → enable view/create/edit (and approve/settings if needed) for this module.
- Settings — Open Multi-Plant Management → Settings and save company defaults, prefixes, and integrations.
- Master data — Create the first required masters (products, warehouses, templates, channels, accounts, routes, etc.).
- First transaction — Create one sample record end-to-end (save → submit/approve → complete) and confirm it appears in lists/reports.
- Cron — If the module uses alerts, sync, queues, or AI, confirm Perfex CRM cron is scheduled on the server.
Module documentation index
Start here — full guides for Multi-Plant Management:
- Overview & How to Use — what it is, who uses it, daily workflow
- Quick Start Guide — first 5 minutes + printable how-to
- How to Install — upload, activate, permissions, verify
- Features (Full Detail) — every capability explained
- FAQ & Tips — common questions and best practices
- Version & Changelog — version history
Screen-by-screen guides (each tab explained)
Click a menu item below for step-by-step instructions on that Multi-Plant Management screen:
- Plant Dashboard
- Plants
- Plant Hierarchy
- Inter-Plant Transfers
- Costing Profiles
- Capacity Calendar
- Reports
- Integrations
- Settings
How to use in Perfex CRM (daily operations)
- Sign in to the admin area with a role that includes Multi-Plant Management permissions.
- Open Multi Plant Management (sidebar) or search for Multi-Plant Management in the admin menu.
- Start on the Dashboard (if available) to see open tasks, pending approvals, and KPIs.
- Review Settings after upgrades — new options may need defaults for your company.
- Create or import master data first; most modules block transactions until masters exist.
- Run the main business flow (create → submit → approve → post/complete) using the screens listed in Admin menu below.
- Use Reports / Analytics screens to reconcile stock, finance, compliance, or SLA metrics.
- For integrations (API, EDI, gateways, tax), confirm credentials in Settings and monitor logs or webhook delivery screens.
- Train staff with role-based access — give approvers approve permissions only, operators create/edit on their area.
- If something fails overnight, check Perfex CRM cron ran and open the module log / failed queue screen if present.
Admin menu — where to work
Open the Multi-Plant Management section in the admin sidebar. Screens your staff may use (depending on role):
- API Keys
- Bulk Import
- Capacity Calendar
- Costing Profiles
- Integrations
- Inter-Plant Transfers
- Multi-Plant
- Plant Dashboard
- Plant Hierarchy
- Plants
- Reports
- Settings
- Webhooks
Screens map — what each menu is for
These are the admin screens registered by Multi-Plant Management. Click a name in the Knowledge Base for a full how-to, or open the path in admin.
| # | Screen | Admin path | Guide |
|---|---|---|---|
| 1 | Plant Dashboard | admin/multi_plant_management | How to use |
| 2 | Plants | admin/multi_plant_management/multi_plant_management_plants | How to use |
| 3 | Plant Hierarchy | admin/multi_plant_management/multi_plant_management_plants/hierarchy | How to use |
| 4 | Inter-Plant Transfers | admin/multi_plant_management/multi_plant_management_transfers | How to use |
| 5 | Costing Profiles | admin/multi_plant_management/multi_plant_management_costing | How to use |
| 6 | Capacity Calendar | admin/multi_plant_management/multi_plant_management_capacity | How to use |
| 7 | Reports | admin/multi_plant_management/multi_plant_management_reports | How to use |
| 8 | Integrations | admin/multi_plant_management/multi_plant_management_integrations | How to use |
| 9 | Settings | admin/multi_plant_management/multi_plant_management_settings | How to use |
Detailed guide — features, workflows, API & FAQ
Features
| Area | Capabilities |
|---|---|
| ------ | ---------------- |
| Plants | Master data, hierarchy, default plant, staff assignments |
| Mapping | Warehouse / workstation mapping, plant switcher |
| Transfers | Inter-plant transfers with approval & receive flow |
| Costing & capacity | Costing profiles, capacity calendar |
| Reports | Plant comparison, transfer history, utilization |
| Integrations | REST API, webhooks, bulk CSV import |
---
Quick Start
- Settings — Enable multi-plant mode, set default plant
- Plants → New Plant — Create your first manufacturing plant
- Assign staff and map warehouses/workstations
- Use the Active Plant switcher on the dashboard
- Integrations — Configure API keys, webhooks, bulk import
---
REST API
Base URL: /multi_plant_management/multi_plant_management_api
GET /plants List plants
POST /plants Create plant (write scope)
GET /plants/{id} Get plant
GET /transfers List transfers
GET /transfers/{id} Get transfer
GET /context Active plant context
POST /context Set active plant
Authentication: Authorization: Bearer mpm_... or header X-MPM-API-Key
---
Webhooks
| Event | Trigger |
|---|---|
| ------- | --------- |
plant.created | New plant via UI, API, or CSV import |
transfer.received | Inter-plant transfer received |
Signed with X-MPM-Signature: sha256=... when secret is configured.
---
Database Tables
| Table | Purpose |
|---|---|
| ------- | --------- |
tblmpm_plants | Plant master |
tblmpm_plant_staff | Staff assignments |
tblmpm_plant_warehouses | Warehouse mappings |
tblmpm_plant_workstations | Workstation mappings |
tblmpm_plant_transfers | Transfer headers |
tblmpm_plant_transfer_items | Transfer lines |
tblmpm_plant_costing_profiles | Costing rates |
tblmpm_plant_capacity_calendar | Shift/downtime calendar |
tblmpm_api_keys | REST API tokens |
tblmpm_webhooks | Webhook subscriptions |
tblmpm_webhook_deliveries | Delivery log |
tblmpm_integration_logs | API/webhook/import audit |
tblmpm_plant_logs | General audit trail |
Options marker: mpm_db_version (100 for v1.0.0)
---
Permissions
| Feature | Capabilities |
|---|---|
| --------- | -------------- |
mpm_dashboard | view |
mpm_plants | view, create, edit, delete |
mpm_transfers | view, create, edit, approve, receive |
mpm_reports | view, export |
mpm_integrations | view |
mpm_api_keys | view, create, edit, delete |
mpm_webhooks | view, create, edit, delete |
mpm_import | view, create |
mpm_settings | view, edit |
---
How to Use
1. Settings
- Open Multi-Plant → Settings.
- Enable Multi-Plant Mode.
- Set plant code prefix (e.g.
PLT-) and transfer prefix (e.g.IPT-). - Optionally require plant context before plant-scoped actions.
- Enable REST API / webhooks if needed.
2. Create plants
- Open Multi-Plant → Plants → New Plant.
- Choose type: Corporate HQ, Regional, Manufacturing, Distribution, or Warehouse.
- Set parent plant for hierarchy, manager, capacity, and address.
- Assign staff and mark primary plant / switch permission.
- Map warehouses and workstations on the plant record.
3. Switch active plant
Use the Active Plant switcher in admin. Staff only see plants they are assigned to (admins can access all).
4. Inter-plant transfers
- Open Inter-Plant Transfers → New.
- Select from/to plant and warehouses, add line items.
- Submit → Approve (if required) → Receive → Close.
5. Costing, capacity & reports
- Costing Profiles — labor/overhead rates per plant
- Capacity Calendar — shifts and downtime by date
- Reports — comparison, transfer history, utilization
6. Integrations
- Create API keys under Integrations
- Configure webhooks for
plant.createdandtransfer.received - Use bulk CSV import for plants / staff mappings
Features
- Plant hierarchy and staff plant access control
- Warehouse / workstation mapping and plant switcher
- Inter-plant transfer workflow with approval & receive
- Costing profiles and capacity calendar
- Reports, REST API, webhooks, bulk import
- Clean uninstall removes all module data
Permissions
Assign under Setup → Staff → Roles.
| Feature | Capabilities |
|---|---|
mpm_dashboard | view |
mpm_plants | view, create, edit, delete |
mpm_transfers | view, create, edit, approve, receive |
mpm_reports | view, export |
mpm_integrations | view |
mpm_api_keys | view, create, edit, delete |
mpm_webhooks | view, create, edit, delete |
mpm_import | view, create |
mpm_settings | view, edit |
REST API (optional)
Base path: /multi_plant_management/multi_plant_management_api
GET /plants
POST /plants
GET /plants/{id}
GET /transfers
GET /transfers/{id}
GET /context
POST /context
Auth: Authorization: Bearer mpm_... or header X-MPM-API-Key
Uninstall
- Deactivate Multi-Plant Management in Setup → Modules.
- Click Uninstall.
This removes all Multi-Plant Management database tables (mpm_*) and module settings/options. Core Perfex CRM files are not modified.
After activation — configuration checklist
- Go to Setup → Modules and activate Multi-Plant Management.
- Reload admin once if menus do not appear — schema version mpm_db_version is set to 100 for v1.0.0.
- Assign permissions under Setup → Staff → Roles.
- Open the module menu and configure settings (default plant, prefixes, API/webhooks).
- Perfex CRM 2.3+ (3.x recommended)
- PHP 7.4+ (8.1+ recommended)
- MySQL 5.7+ / MariaDB 10.3+ (InnoDB)
- PHP extensions: mysqli, json, mbstring, curl, fileinfo
One-time setup (first time only)
- Setup → Modules → activate Multi-Plant Management.
- Setup → Staff → Roles → assign Multi-Plant Management permissions (view, create, edit, delete, approve, export, settings as needed).
- Open Multi-Plant Management → Settings and complete company defaults, prefixes, integrations, and notification options.
- Create master data (warehouses, products, templates, accounts, routes, etc.) before processing live transactions.
- Enable Perfex CRM cron (
php /path/to/perfex/index.php cron/index) for sync, retries, alerts, and scheduled jobs. - Optionally enable REST API / webhooks in module settings if you integrate external systems.
Tips for success
- Always configure Settings before creating live transactions.
- Create master data (items, warehouses, templates, channels, accounts) first — most modules block incomplete records.
- Use a test/sample record before going live with real customers or production stock.
- Separate roles: operators create/edit; managers approve; finance/reporting get view/export only.
- After any module upgrade, reopen Settings and confirm new options have sensible defaults.
- If overnight jobs fail, verify Perfex CRM cron and check the module log / failed queue screen.
Common questions (FAQ)
Where do I find the module after activation?
In the admin sidebar look for Multi-Plant Management. If missing, your role may lack view permission — fix under Setup → Staff → Roles.
Do I need to edit core Perfex CRM files?
No. Keep all custom code under modules/multi_plant_management/. Activate/deactivate from Setup → Modules.
What happens if I uninstall?
Deactivate keeps data. Uninstall usually removes module tables/options (see the Install article). Core customers, invoices, and items are not deleted by well-built modules.
Why can't my staff see a screen?
Almost always a permissions issue. Give the role at least view on that feature, then ask the user to log out and back in.
Reports/export buttons do nothing
Confirm the role has export (or view reports) permission, and that filters return at least one row. Try PDF/CSV from a wider date range.
Perfex CRM Knowledge Base — detailed usage guide generated from module README, HOW_TO_USE, and documentation.