Webapi - Creating a misc cost report in a work order
This method allows you to
create a misc cost report in a work order in a simplified way.
The method used to create a
misc cost report in a work order is:
POST {{url}}/api/{{tenant}}/{{organization}}/maintenance/workOrderReportmisccosts
Json example to create a
misc cost report in a work order:
{
"reportDate": "2021-08-11T10:00:10.3886047+00:00",
"miscCostDate": "2021-08-11T10:00:10.3886047+00:00",
"value": {
"amount": 34.00
},
"maxValue": {
"amount": 100.000000
},
"minimumValue": {
"amount": 10.000000
},
"quantity": 1,
"workOrder": "OT9543",
"assetType": 2,
"location": null,
"equipment": "MT02",
"employee": "0007",
"company": "DEMO",
"miscCostsType": "TIPOCD",
"miscCost": "DESLOC",
"workOrderMaintenancePlan": null,
"task": null,
"currency": “EUR”
}
This method allows to
create a misc cost report according to the parameters filled in:- reportDate: The
report date. Mandatory field.
- miscCostDate: The misc
cost date. Mandatory field.
- value: The misc cost
value. Mandatory field.
- maxValue: The maximum
value defined on the selected misc cost. Mandatory field.
- Quantity: Quantity. Mandatory
field.
- remarks: Remarks.
- WorkOrder: The key of
the work order the misc cost 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.
- company: The company's
key. Mandatory field.
- miscCostType: The misc
cost type key. Mandatory field.
- miscCost: The misc cost
key. Mandatory field.
- workorderMaintenancePlan:
The maintenance plan key.
- Task: The task key.
- Currency: The
currency's key. Mandatory field.
When this method is
executed successfully, it returns HttpStatusCode.201Created.
Related Articles
WebAPI – How to update the misc costs report?
This method allows you to change the misc cost of a work order. The method to be used for changing one other cost is: POST /api/mytenant/myorganization/maintenance/workorderreportmisccosts / ...
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 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 ...
Webapi - Creating a task verification report for a work order
This method allows you to create a task verification report for a work order in a simplified way. The method used to create a task verification report for a work order is: ...
Webapi - Creating a misc cost
This method allows to create a misc cost in a simplified manner. The method to be used when creating a misc cost is: POST url/api/mytenant/myorganization/maintenancecore/misccosts Json example for creating a misc cost: { ...