Webapi - Creating a labor report in a work order
This method allows you to create a labor report in a work order in
a simplified way.
The method used to create a labor report in a work order is:
POST {{url}}/api/{{tenant}}/{{organization}}/maintenance/workOrderReportLabors
Json example to create a labor report in a work order:
1. {
"workOrderReportLaborKey": "L0001",
"reportDate": "2021-08-17T14:38:36.8969313+00:00",
"tárdate": "2021-08-17T07:38:52+00:00",
"endDate": "2021-08-17T14:38:59+00:00",
"totalTime": 25207,
"remarks": null,
"workOrder": "0001",
"assetType": 2,
"location": null,
"equipment": "ATC01",
"tool": null,
"employee": "0007",
"schedulingLaborCost": "1",
"expertise": null,
"expertiseTier": null,
"currency": "EUR",
"company": "DEMO",
"workOrderMaintenancePlan": "MP-000001_1",
"task": "T_00001"
}
This method allows to create a WO labor report,
according to the parameters filled in:
- reportDate: The report date. Mandatory
field.
- startDate: The report start date. Mandatory field.
- endDate: The report end date. Mandatory
field.
- totalTime: The total time, in seconds.
Mandatory field.
- remarks: Remarks.
- workOrder: The key of the work order the labor will be recorded to.
Mandatory field.
- assetType: The asset type (2- equipment; 3- tool). Mandatory field.
- location: The location's key.
- equipment: The equipment key.
- tool: The tool's key.
- employee: Employee key. Mandatory field.
- schedulingLaborCost: The key of the scheduling
group. Mandatory field, when the expertise has not been defined. If you fill in
this field, it is not mandatory to define the expertise.
- Expertise: The expertise key. Mandatory field, when the scheduling
labor cost has not been defined. If you fill in this field, it is not mandatory
to define the scheduling labor cost.
- expertiseTier: The key of the expertise level. Mandatory field, if
the expertise field has been previously defined.
- currency: The currency's key. Mandatory field.
- company: The company's key. Mandatory field.
- workorderMaintenancePlan: The maintenance plan
key.
- task: The task key.
When this method is
executed successfully, it returns HttpStatusCode.201Created.
Related Articles
Webapi - Deleting a work order labor report
This method allows you to delete a work order labor report. The method used to delete a work order labor report is: DELETE url/api/mytenant/myorganization/maintenance/workorderreportlabors/{{companyKey}}/{{workorderreportlaborKey}} The parameters ...
WebAPI – How do I update the labor report?
This method allows you to change the labor record of a work order. The method to be used for changing the work order labor record is: POST /api/mytenant/myorganization/maintenance/workorderreportlabors/ ...
WebAPI - Creating a follow-up report in a work order
This method allows you to create a follow-up report in a work order in a simplified way. The method used to create a follow-up report in a work order is: POST ...
Webapi - Creating a work order assignment report
This method allows you to create a work order assignment report in a simplified way. The method used to create a work order assignment report is: POST {{url}}/api/{{tenant}}/{{organization}}/maintenance/workorderassignments Json example to ...
Webapi - Creating a consumption report in a work order
This method allows you to create a consumption report in a work order in a simplified way. The method used to create a consumption report in a work order is: POST {{url}}/api/{{tenant}}/{{organization}}/maintenance/workOrderReportConsumptions ...