list_cost_centers
Lists the cost centers in various formats depending on the options given.
Format
list_cost_centers -[[cost_center_name="cName"] -[parent] -[children] -[top] -[leaf]] [ ] indicates that the parameter is optional
Options
-
cost_center_name
Name of the cost center for which further details like parent/children/top/leaf should be listed.
-
parent
Provides the parent cost center of the given cost center.
-
children
Provides the list of child cost centers of the given cost center.
-
top
Provides the hierarchy of the given cost center from the top.
-
leaf
Provides the leaf nodes of the given cost center.
Examples
Example 1
This example provides the parent of the given cost centers.
list_cost_centers -cost_center_name="c11" -parent
Output:
Parent Node ----------------- c1
Example 2
This example provides a list of all the child cost centers of the given cost center
list_cost_centers -cost_center_name="c1" -children
Output:
Children Nodes --------------------- c11 c12