Returns 1 if you can modify the work order position, return -1 if not
WorkorderPos/CanModify(DocEntry,LineNumber)
Return
{"value": Number}
If you can modify the work order (not closed, changes not locked ...)
{"value": 1}
In all other cases the system returns
{"value": -1}