Table a_cost_centre
Diagram AccountsPayable 
Description:
Master cost centre records which contain details of each cost centre and their relationship to each other; determines the cost centre structure.
PRIMARY KEY
a_ledger_number_i
integer default: 0 NOT NULL
The ledger in which the cost centre is used. a_ledger, a_cost_centre_types
a_cost_centre_code_c
varchar (24) NOT NULL
This identifies which cost centre an account is applied to. A cost centre can be a partner but reflected as a character rather than a numeric

a_cost_centre_to_report_to_c
varchar (24)
This identifies which cost centre the cost centre summarises to.
a_cost_centre_name_c
varchar (64) NOT NULL
a_posting_cost_centre_flag_l
boolean default: '1' NOT NULL
a_cost_centre_active_flag_l
boolean default: '1'
a_project_status_l
boolean default: '0'
a_project_constraint_date_d
date
a_project_constraint_amount_n
numeric (24, 10) default: 0
a_system_cost_centre_flag_l
boolean default: '0'
a_cost_centre_type_c
varchar (16) default: 'Local'
Type of cost centre (Foreign or Local) a_cost_centre_types
a_clearing_account_c
varchar (24) default: '8500'
ICH or non-ICH clearing
a_ret_earnings_account_code_c
varchar (24) default: '9700'
At Year End, Balance in this Cost Centre will roll up to this account
a_rollup_style_c
varchar (24) default: 'Always'
Determine how to roll up the balance in this Cost Centre
s_date_created_d
date default: CURRENT_DATE
The date the record was created.
s_created_by_c
varchar (20)
User ID of who created this record. s_user
s_date_modified_d
date
The date the record was modified.
s_modified_by_c
varchar (20)
User ID of who last modified this record. s_user
s_modification_id_t
timestamp default: CURRENT_TIMESTAMP
This identifies the current version of the record.


FOREIGN KEY
a_cost_centre_fk1: a_ledger_number_i => a_ledger
a_cost_centre_fk2: a_ledger_number_i;a_cost_centre_type_c => a_cost_centre_types
a_cost_centre_fkcr: s_created_by_c => s_user
a_cost_centre_fkmd: s_modified_by_c => s_user


REFERENCED BY
a_ich_stewardship, a_valid_ledger_number, a_budget,
a_analysis_attribute, a_fees_payable, a_fees_receivable,
a_general_ledger_master, a_motivation_detail, a_ep_match,
a_recurring_transaction, a_recurring_trans_anal_attrib, a_recurring_gift_batch,
a_gift_batch, a_gift_detail, a_processed_fee,
a_transaction, a_trans_anal_attrib, a_ap_document_detail,
s_group_cost_centre