How to create or delete a miscellaneous cost record 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 This method allows to create a misc cost report according to the parameters filled in: When this method is executed successfully, it returns HttpStatusCode.201Created. This method allows you to delete a miscellaneous cost record from a work order. The method to use for deleting a miscellaneous cost record from a work order is: DELETE url/api/mytenant/myorganization/maintenance/workorderreportmisccosts/{{companyKey}}/{{workorderreportmisccostKey}} The parameters to be overridden in the method are: When this method is successfully executed it returns an HttpStatusCode.204.Create Record
{
"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”
}
Delete Record
login para deixar a sua opinião.