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

Function assign_technician

src/servers/wo/main.py:301–313  ·  view source on GitHub ↗

Assign a technician (adds a wplabor line).

(
    wonum: str,
    site_id: str,
    labor_code: str,
    craft: Optional[str] = None,
    start_date: Optional[str] = None,
    hours_planned: float = 8.0,
)

Source from the content-addressed store, hash-verified

299
300
301async def assign_technician(
302 wonum: str,
303 site_id: str,
304 labor_code: str,
305 craft: Optional[str] = None,
306 start_date: Optional[str] = None,
307 hours_planned: float = 8.0,
308) -> Union[WorkOrderMutationResult, ErrorResult]:
309 """Assign a technician (adds a wplabor line)."""
310 res = await wo.assign_technician(
311 db(), wonum, site_id, labor_code, craft, start_date, hours_planned
312 )
313 return _mutation(res, f"assigned to {labor_code}")
314
315
316async def close_workorder(

Callers

nothing calls this directly

Calls 2

dbFunction · 0.85
_mutationFunction · 0.85

Tested by

no test coverage detected