editProFinances
This method allows editing finances in a project, program, project task, and nonproject task. For this action, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web/wwwroot/ws/java/project/editProFinancesRequestType.java |
Return | web/wwwroot/ws/java/project/editProFinancesResponseType.java |
Request:
ID | Required | Description |
---|---|---|
ObjectId | X | Object ID #. |
SonObjectId | X | Child object ID # (required for child object). |
FgObject | X | Identifies the financial record object: 1 - Project task; 2 - Project; 3 - Nonproject task; 4 - Program. |
FinanceType | X | Identifies the financial entry type: 1 - Cost; 2 - Revenue. |
Name | X | Financial entry name. |
TypeId | X | Financial entry type ID # . |
Phase | X | Step to add: 1 - Planned; 2 - Rescheduled; 3 - Actual. |
Date | X | Date (format: DD/MM/YYYY or YYYY-MM-DD). |
Currency | X | Financial entry currency. |
FgChangeCurrency | Identifies how the currency should be updated (mandatory for cases in which the currency is changed): 1 - Keep the value and change the object currency only; 2 - Change the object currency and convert the value from the previous currency to the new currency. | |
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:project">
<soapenv:Header/>
<soapenv:Body>
<urn:editProFinances>
<!--You may enter the following 15 items in any order-->
<urn:ObjectId>?</urn:ObjectId>
<urn:SonObjectId>?</urn:SonObjectId>
<urn:FgObject>?</urn:FgObject>
<urn:FinanceType>?</urn:FinanceType>
<urn:Phase>?</urn:Phase>
<urn:Name>?</urn:Name>
<urn:TypeId>?</urn:TypeId>
<urn:Date>?</urn:Date>
<urn:Currency>?</urn:Currency>
<urn:FgChangeCurrency>?</urn:FgChangeCurrency>
<urn:Amount>?</urn:Amount>
<urn:UnitValue>?</urn:UnitValue>
<urn:DocumentNumber>?</urn:DocumentNumber>
<urn:CostClassification>?</urn:CostClassification>
<urn:Description>?</urn:Description>
</urn:editProFinances>
</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. |