deleteCostCentre()
void deleteCostCentre(int costCentreId)
This method deletes an unused cost centre.
Parameters
- costCentreId
- Format: integer
Results
This method does not return any output for a successful deletion.
There are no messages defined by this method.
Faults
NoSuchItemExceptionThis fault is returned when there is no cost centre found with the given ID.
UnsuccessfulRequestExceptionThis fault is returned when the given cost centre is in use.
Java client syntax
java -cp build/smilewsv2-client.jar [options]
com.inomial.smile.client.v2.examples.DeleteCostCentre costCentreId
- costCentreId
- Purpose: Specifies the ID of the cost centre to delete.
Note: For more information about the Java client and the options it
accepts, see Java client syntax.