Users with the Reverse Segment role will have access to a "Reverse segment status" button, which will only appear when the following conditions are met:
- The segment status must be "Downloaded without POD."
- The load status must be other than "Completed."
If all these conditions are met and the user clicks on the button, a confirmation modal should be displayed and then, once the user confirms, the following process will be carried out:
- If the tractor for that segment is being used in another segment, an error will occur and the segment cannot be reversed.
- If the trailer for that segment is being used in another segment, an error will occur and the segment cannot be reversed.