newNonProjectTaskCost
This method allows adding the cost of a nonproject task. For this action, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web/wwwroot/ws/java/workforce/NewNonProjectTaskCostRequestType.java |
Return | web/wwwroot/ws/java/workforce/NewNonProjectTaskCostResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
NonProjectTaskId | X | Nonproject task ID # |
Name | X | Cost name |
TypeId | X | Cost type ID # |
Phase | X | Step to add: 1 - Planned; 2 - Rescheduled; 3 - Actual. |
Date | X | Date (format: DD/MM/YYYY or YYYY-MM-DD) |
Amount | X | Quantity |
UnitValue | X | Unit value |
DocumentNumber | Document number | |
Description | Description | |
CostClassification | Cost classification: 1 - No classification 2 - Capital 3 - Operational |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:workforce">
<soapenv:Header/>
<soapenv:Body>
<urn:newNonProjectTaskCost>
<!--You may enter the following 9 items in any order-->
<urn:NonProjectTaskId>?</urn:NonProjectTaskId>
<urn:Name>?</urn:Name>
<urn:TypeId>?</urn:TypeId>
<urn:Phase>?</urn:Phase>
<urn:Date>?</urn:Date>
<urn:Amount>?</urn:Amount>
<urn:UnitValue>?</urn:UnitValue>
<urn:DocumentNumber>?</urn:DocumentNumber>
<urn:Description>?</urn:Description>
</urn:newNonProjectTaskCost>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
Status | Method execution status. Its value may be: SUCCESS: Method executed successfully. FAILURE: An error occurred during the method execution. |
Code | Record code. |
Detail | Method return detail. |