Clicking status buttons (Start Job, Complete Job) doesn't update the job status, or status changes revert.
Understanding Status Transitions
Jobs follow a specific lifecycle:
```
Unassigned → Assigned → In Progress → Completed
↘ Cancelled
```
Valid Status Transitions
| Current Status | Allowed Actions |
|----------------|-----------------|
| Unassigned | Assign driver, Cancel |
| Assigned | Start Job, Cancel |
| In Progress | Complete Job, Cancel |
| Completed | Reverse (back to Assigned) |
| Cancelled | No changes (final state) |
Troubleshooting Status Issues
Status button is disabled
Cause: The action isn't valid for the current status
Solution: Check the current status and refer to the transition table above
Status changes but reverts
Cause: The database update failed
Solution:
"Reverse" action not available
Cause: Only "Completed" jobs can be reversed
Solution: The job must be in Completed status to use Reverse
Multiple status changes needed
You cannot skip statuses (e.g., Assigned directly to Completed). Each status must be transitioned sequentially.
Example: To complete an Assigned job: