Cost Center - Add / Change

This routine allows the inclusion / editing a cost center.
The Cost Center are used by Asterisk to set the 'Accountcode' of each output connection, recording this information in the cdr table.

A Cost Center consists of the following fields:
Code: The code can be 1, 3 or 5 digits, always NUMBER, and distributed in up to 3 'houses', which determine its herarquia. Definition:
9 - 1 digit code, is considered the Father code. There should be only two (2) father codes in the system - one for inputs and one for outputs.
9.99 - 3-digit code, is considered the Son code of primary generation.
9.99.99 - 5-digit code, is considered the Son code of second generation.
Example:
1 - Input Connections
1.01 - Commercial Department
1.01.01 - Diretor Commercial
1.01.02 - Sellers
1.01.03 - Telemarketing
Name: Defines a name for the cost center;
Description: Brief description of the purpose of the cost center
Type: Defines what kind of connection the Cost Center will be applied: Input or Output

Observation: You can not edit the code of the cost center.

Cost Center - CSV Export

This routine outputs the center of registered costs of system to a .csv file.