Close

Close work order position

 

WorkorderPos(DocEntry as Number,LineNumber as Number);

 

 

if ok

{
    "DocEntry": 6002318,
    "LineNumber": 10,
    "status": 1
}

 

In Error case

http-status 200 (only in hard error you've http-status 400)

{
    "DocEntry": 6002319,
    "LineNumber: 10,
    "status": -1,  // status = -1 in error case
    "LineNumber": 10, // which position the system can't close
    "error": "Can not close! Open FDC-entries exists!", // reason
    "errorCode": "ftstmp3244" / error code, if available
}

 

 

Example:

Button for Close work order in work order structure view