Overview
As an FM administrator, you are responsible for:- Creating and managing PM templates
- Setting up PM schedules for sites and assets
- Configuring automation settings
- Monitoring compliance and performance
- Troubleshooting PM issues
Initial Setup
Configure FM Module Settings
1
2
3
Verify Cron Job Setup
PM automation requires scheduled jobs to run:
Contact your system administrator to verify these are configured.
Creating PM Templates
PM templates define the maintenance tasks that will be scheduled.Step-by-Step Template Creation
1
2
Basic Information
3
4
Assignment
5
6
Compliance
7
8
Adding Checklist Items
After creating a template, add step-by-step tasks:1
- Description: What to check or do
- Pass Criteria: How to determine pass/fail (optional)
- Required: Whether completion is mandatory
- Display Order: Sequence in the checklist
1
Adding Required Materials
Specify materials needed from inventory:1
Managing PM Schedules
PM schedules link templates to specific sites for recurring maintenance.Creating a Schedule
1
2
3
Pausing and Activating Schedules
To Pause a Schedule:1
1
Understanding Due Date Calculation
Due dates are calculated based on frequency:
Edge Cases:
- January 31 + 1 month = February 28/29
- Leap years are handled correctly
Work Order Integration
Automatic Work Order Generation
When Auto-Generate PM Work Orders is enabled:1
next_due_date within the lookahead window are processed- Type:
preventive_maintenance - Priority:
highfor compliance PMs,mediumotherwise - Due Date: The PM schedule’s due date
- Linked Schedule: Reference to the PM schedule
- Checklist Items: Copied from template
- Materials: Suggested from template
Manual Work Order Generation
To manually trigger work order creation:1
Duplicate Prevention
The system prevents duplicate work orders:- Only one work order per schedule per due date
- Existing open work orders block new generation
- Completed work orders update the schedule before next generation
Compliance Tracking
Compliance Dashboard
Monitor PM compliance from the FM Dashboard:Overdue Alerts
Thecheck-overdue-pms job runs daily to:
1
- Warning: 1-3 days overdue
- Critical: 4-7 days overdue
- Severe: 7+ days overdue
pm_overdue events for notificationCompliance Reporting
For compliance audits, generate reports showing:- PM completion history by schedule
- On-time completion rates
- Failure documentation
- Material usage
Cron Job Setup
PM automation requires two scheduled jobs.Work Order Generation Job
Schedule: Daily at 6:00 AM UTCOverdue Check Job
Schedule: Daily at 7:00 AM UTCVerifying Cron Jobs
Check if jobs are scheduled:Troubleshooting
Work Orders Not Generating
Symptoms: PM schedules are due but no work orders created Checklist:1
next_due_date is within lookahead window- Manually generate work order from schedule page
- Check edge function logs for errors
- Verify RLS policies allow work order creation
Due Dates Not Calculating Correctly
Symptoms: Next due date is wrong after completion Checklist:1
- Manually update schedule’s next_due_date
- Verify the
fm_update_pm_schedule_on_completiontrigger is enabled
Completion Not Updating Schedule
Symptoms: Work order completed but schedule not updated Checklist:1
pm_schedule_id set- Manually update schedule’s last_completed_date and next_due_date
- Contact administrator to check trigger function
Best Practices
Template Design
1
- Good: “HVAC Filter Change - Monthly”
- Bad: “Monthly Maintenance”
- Good: “Inspect belt tension, tighten if deflection > 1/2 inch”
- Bad: “Check belt”
Frequency Selection
Compliance Priority
- Mark all regulatory, safety, and insurance-required PMs as Compliance Required
- These get High priority work orders
- Monitor compliance PMs separately from routine maintenance
Schedule Organization
- Create separate schedules per site, even for same template
- Use consistent start dates for easier planning
- Review and clean up unused schedules quarterly
Related Guides
- PM User Guide - End user documentation
- Inventory Admin Guide - Managing PM materials
- Vendor Admin Guide - Vendor PM assignments