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
Json example to create a
consumption report in a work order:
{
"ReportDate" : "2021-06-10T09:48:28+01:00",
"AssetType" : 1,
"Location" : "AM",
"Equipment" : null,
"Tool" : null,
"WorkOrder" : "0000000008",
"Company" : "DEMO",
"employee" : "0014",
"remarks": null,
"WOConsumptionLines": [{
"Date": "2021-06-10T09:52:28+01:00",
"Quantity": 1,
"Remarks": "teste oleo",
"Part": "0004",
"Unit": "UN",
"WareHouse": "W1"
},{
"Date": "2021-06-10T09:52:28+01:00",
"Quantity": 2,
"Remarks": "teste",
"Part": "I-0005",
"Unit": "UN",
"WareHouse": "W1"
}]}
This method allows to create a consumption report in a work order, according to the parameters filled in:
- reportDate: The
report date. 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.
- workOrder:
The key of the work order the misc cost will be recorded to. Mandatory field.
- company:
The company's key. Mandatory field.
- employee:
Employee key. Mandatory field.
- remarks:
Remarks.
- ConsumptionLines:
Consumption lines:
- Date:
Consumption date, mandatory field.
- Quantity:
The quantity, mandatory field.
- Remarks:
The remarks.
- Part: The
part key, mandatory field.
- Unit: The
unit key, mandatory field.
- Warehouse:
The warehouse key, mandatory field.
When this method is
executed successfully, it returns HttpStatusCode.201Created.