About the Work Order Generation Process
When you generate work orders in SM Generate PM Work Orders, the system follows a specific process to determine whether a work order is needed for an agreement service.
- The system creates a single job in SQL Agent for the agreement services selected for work order generation. One job is created per SM company, so additional work order processes requested in the same SM company are included in the same SQL Agent job.
- The PM Generate Work Order Summary form opens and an entry appears in the grid for the requested process. The requested process is assigned an ID, a Status of Requested, and a Requested Time.
- If you designated a specific time to run the work order process in the Generate Agreement WO Time field in SM Company Parameters, the system holds the requested work orders in a queue and processes them at the specified time. If you did not enter a value in the Generate Agreement WO Time field, the system begins the work order process run within a minute after the requested time. The SQL Agent Job Schedule field at the bottom of the form indicates the date and time the process is scheduled to run.
- If there are multiple requests, the system runs the work order process for each request in the order they were requested. This is determined by the Requested Time indicated for each request ID.
During the work order process run, the system looks at the Separate Work Order check box for each agreement service to determine whether a separate work order is needed for that service.
If the Separate Work Order check box is selected, the system generates a separate work order with a single work order scope.
If the Separate Work Order check box is not selected, the system checks for an existing work order having the same service site, service center, pricing method (and rate template, if applicable), call type, and schedule date. If one exists and the work order status is New, the system adds each applicable service to the existing work order scope. If an existing work order is not found, the system generates a new work order and includes all applicable services on a single scope.
If you designated an Assigned Tech to the agreement service in SM Service and the technician is Active in SM Technicians and PR Employees, the system automatically creates a single trip on work orders generated from the agreement service, with this technician designated. In addition, this technician is assigned as the Lead Tech on the work order. No description, details, date, time, or duration are defined for the trip.
Work order numbers are assigned based on the value specified in the Next Work Order Number field in SM Company Parameters. The due type and date for work order scopes are based on the scheduling information defined for the service (in SM Work Schedule, Schedule tab) as follows:
Due On - Sets the Due type to 0-By and the 'due on' date based on the recurring pattern specified for the service. For example, if today's date is 4/1/12 and the service has a recurring pattern of Monthly, on Day 10 of every 1 month(s), the system will set the due date to 4/10/12.
Due By - Sets the Due type to 0-By and the 'due by' date based on the recurring pattern specified for the service. For example, if today's date is 4/1/12 and the service has a recurring pattern of Monthly, on Day 10 of every 1 month(s), the system will set the due date to 4/10/12.
Due Within - Sets the Due type to 1-Within and the 'due within' date range based on the 'due within' days and the recurring pattern specified for the service. For example, if today's date is 4/1/12 and the service specifies a 'due within days' of 30 and a recurring pattern of Monthly, on Day 10 of every 1 month(s), the system will set the due within date range to "4/10/12 - 5/10/12".