# Module Functionality

## Module Functionality

### New Work Order

* SMB Staff creates "New Work Order" - enters location information and work assignment numbers, feature ID (way to relate back to GIS data layer)

### Contractor Work Orders page (Main/Parent table)

**SMB Staff**

* Work Order records compiled on table view
* Ability to quickly "**Issue**" from the table view
  * modal, select `Assigned To` - contractor system account, will update `Assigned Contractor` field

**Contractor**&#x20;

* Only assigned work order records compiled on table view (won't see other contractor records)

### Work Order Details page

This page has all the work order information

* Top level menu (Edit, Add Photo, Issue, Add Inspection, Approve, Close)
* Table to show any photo attachments
* Table to show inspections
* Table to show Dates Worked
* Table to show Materials Used
* Details containing digital Signatures

### **Edit button**

Allows staff to update any work order information that may be incorrect

### Photo Attachment

* both SMB staff and contractor can upload photos

**SMB Staff**

* User can click `Add Photo` and then take a photo from their mobile device or upload an existing photo from a gallery

**Contractor**

* Contractor can click `Add Photo` and then take a photo from their mobile device or upload an existing photo from a gallery

### Issue Work Order button

* SMB Staff will have button on their page to `Issue` work order. (similar to SMB Supervisor/Assigner)
* The button just changes status from "NEED TO BE ISSUED" to "ISSUED"

### Submit Work Order button

**Contractor**

* Contractor will have button on their page to `Submit for Review`. (similar to Markings technicians)
* Captures the `Submitted Date` (date contractor submits work order to ATD), `Submitted By`
* They will be required to electronically sign before the form can be submitted

### Inspections

**SMB Staff**

* Can create a new inspection record, update `Inspect, Inspection Status`, add `Inspection Issue/Comment`, triggers field for follow-up

**Contractor**

* Will see the created records on their page, can edit the inspection record by only commenting and updating the status.&#x20;
* When status is updated the follow-up status will change to `Ready to Inspect` so that the SMB inspector can see there is a follow-up inspection required.

### Approve

* SMB Inspector will have button on their page to `Approve`. (*similar to SMB technicians*)
* This will mean they have inspected the location/project and no issues are present
* They will be required to electronically sign the approval

### Close

SMB staff can change status from "Approved" to "Closed"


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://atd-dts.gitbook.io/signs-and-markings-tracker-help-guides/contractor-work-orders/module-functionality.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
