We are passing work order time fields in api
getting error:
{
"OrderNbr": {
"value": "W-222231"
},
"Labor": [
{
"note": "",
"EmployeeID": {
"value": "1083"
},
"ActualStartTime": {
"value": "2022-10-17T18:00:00-04:00"
},
"ActualEndTime": {
"value": "2022-10-17T23:59:00-04:00"
},
"StartDate": {
"value": "2022-10-17T18:00:00-04:00"
}
}
]
}
Error:
WorkOrder.Labor[0].ActualEndTime: The times are invalid. The end time cannot be earlier than the start time.\nWorkOrder.Labor[0].ActualStartTime: The start time cannot be later than the end time. Correct the values.\nWorkOrder.Labor[0].StartDate: The start time cannot be later than the end time. Correct the values.
Can anyone know what wrong with this?