MCPcopy
hub / github.com/IBM/AssetOpsBench / approve_workorder

Function approve_workorder

src/servers/wo/main.py:292–298  ·  view source on GitHub ↗

Approve a work order (-> APPR).

(
    wonum: str, site_id: str
)

Source from the content-addressed store, hash-verified

290
291
292async def approve_workorder(
293 wonum: str, site_id: str
294) -> Union[WorkOrderMutationResult, ErrorResult]:
295 """Approve a work order (-> APPR)."""
296 return _mutation(
297 await wo.approve_workorder(db(), wonum, site_id), "approved (APPR)"
298 )
299
300
301async def assign_technician(

Callers

nothing calls this directly

Calls 2

_mutationFunction · 0.85
dbFunction · 0.85

Tested by

no test coverage detected