Dumped on 2017-02-16
- public
- ac_tax_form
- acc_trans
- account
- account_checkpoint
- account_heading
- account_heading_derived_category
- account_heading_descendant
- account_heading_translation
- account_heading_tree
- account_link
- account_link_description
- account_translation
- ap
- ar
- assembly
- asset_class
- asset_dep_method
- asset_disposal_method
- asset_item
- asset_note
- asset_report
- asset_report_class
- asset_report_line
- asset_rl_to_disposal_method
- asset_unit_class
- audittrail
- batch
- batch_class
- bu_class_to_module
- budget_info
- budget_line
- budget_note
- budget_to_business_unit
- business
- business_unit
- business_unit_ac
- business_unit_class
- business_unit_inv
- business_unit_jl
- business_unit_oitem
- business_unit_translation
- cash_impact
- chart
- company
- contact_class
- country
- country_tax_form
- cr_coa_to_account
- cr_report
- cr_report_line
- custom_field_catalog
- custom_table_catalog
- db_patch_log
- db_patches
- defaults
- eca_invoice
- eca_note
- eca_tax
- eca_to_contact
- eca_to_location
- employee_class
- employee_search
- employee_to_ec
- employees
- entity
- entity_bank_account
- entity_class
- entity_credit_account
- entity_employee
- entity_note
- entity_other_name
- entity_to_contact
- entity_to_location
- exchangerate
- file_base
- file_class
- file_eca
- file_entity
- file_incoming
- file_internal
- file_links
- file_order
- file_order_links
- file_order_to_order
- file_order_to_tx
- file_part
- file_secondary_attachment
- file_transaction
- file_tx_links
- file_tx_to_order
- file_view_catalog
- fixes
- gifi
- gl
- inventory_report
- inventory_report_line
- invoice
- invoice_note
- invoice_sum
- invoice_tax_form
- jcitems
- jctype
- job
- journal_entry
- journal_line
- journal_note
- journal_type
- language
- location
- location_class
- location_class_to_entity_class
- lsmb_group
- lsmb_group_grants
- lsmb_module
- lsmb_sequence
- makemodel
- menu_acl
- menu_attribute
- menu_friendly
- menu_node
- mfg_lot
- mfg_lot_item
- mime_type
- new_shipto
- note
- note_class
- oe
- oe_class
- open_forms
- order_sum
- orderitems
- overpayments
- parts
- parts_translation
- partscustomer
- partsgroup
- partsgroup_translation
- partstax
- partsvendor
- payment
- payment_links
- payment_map
- payment_type
- payroll_deduction
- payroll_deduction_class
- payroll_deduction_type
- payroll_employee_class
- payroll_employee_class_to_income_type
- payroll_income_category
- payroll_income_class
- payroll_income_type
- payroll_paid_timeoff
- payroll_pto_class
- payroll_report
- payroll_report_line
- payroll_wage
- periods
- person
- person_to_company
- pricegroup
- recon_payee
- recurring
- recurringemail
- recurringprint
- robot
- role_view
- salutation
- session
- sic
- status
- tax
- tax_extended
- taxcategory
- taxmodule
- template
- transactions
- translation
- trial_balance__yearend_types
- tx_report
- user_listable
- user_preference
- users
- voucher
- warehouse
- warehouse_inventory
- yearend
- _entity_location_save(in_entity_id integer, in_location_id integer, in_location_class integer, in_line_one text, in_line_two text, in_line_three text, in_city text, in_state text, in_mail_code text, in_country_id integer)
- account__all_headings()
- account__delete(in_id integer)
- account__delete_translation(in_id integer, in_language_code text)
- account__get_by_accno(in_accno text)
- account__get_by_link_desc(in_description text)
- account__get_from_accno(in_accno text)
- account__get_taxes()
- account__is_recon(in_accno text)
- account__list_by_heading()
- account__list_translations(in_id integer)
- account__obtain_balance(in_transdate date, in_account_id integer)
- account__obtain_starting_balance(in_transdate date, in_account_id integer)
- account__save(in_id integer, in_accno text, in_description text, in_category bpchar, in_gifi_accno text, in_heading integer, in_contra boolean, in_tax boolean, in_link text[], in_obsolete boolean, in_is_temp boolean)
- account__save_tax(in_chart_id integer, in_validto date, in_rate numeric, in_minvalue numeric, in_maxvalue numeric, in_taxnumber text, in_pass integer, in_taxmodule_id integer, in_old_validto date)
- account__save_translation(in_id integer, in_language_code text, in_description text)
- account_get(in_id integer)
- account_has_transactions(in_id integer)
- account_heading__check_tree()
- account_heading__delete(in_id integer)
- account_heading__delete_translation(in_id integer, in_language_code text)
- account_heading__list()
- account_heading__list_translations(in_id integer)
- account_heading__save_translation(in_id integer, in_language_code text, in_description text)
- account_heading_get(in_id integer)
- account_heading_list()
- account_heading_save(in_id integer, in_accno text, in_description text, in_parent integer)
- add_custom_field(table_name character varying, new_field_name character varying, field_datatype character varying)
- admin__add_function_to_group(in_func text, in_role text)
- admin__add_group_to_role(in_group_name text, in_role_name text)
- admin__add_user_to_role(in_username text, in_role text)
- admin__create_group(in_group_name text)
- admin__delete_group(in_group_name text)
- admin__delete_user(in_username text, in_drop_role boolean)
- admin__drop_session(in_session_id integer)
- admin__get_roles()
- admin__get_roles_for_user(in_user_id integer)
- admin__get_roles_for_user_by_entity(in_entity_id integer)
- admin__get_user(in_id integer)
- admin__get_user_by_entity(in_entity_id integer)
- admin__is_group(in_group_name text)
- admin__is_user(in_user text)
- admin__list_group_grants(in_group_name text)
- admin__list_sessions()
- admin__remove_function_from_group(in_func text, in_role text)
- admin__remove_group_from_role(in_group_name text, in_role_name text)
- admin__remove_user_from_role(in_username text, in_role text)
- admin__save_user(in_id integer, in_entity_id integer, in_username text, in_password text, in_pls_import boolean)
- admin__search_users(in_username text, in_first_name text, in_last_name text, in_ssn text, in_dob date)
- ap_simple_post(in_entity_credit_account integer, in_ap_liablility_chartid integer, in_invnumber text, in_transdate date, in_duedate date, in_curr bpchar, in_description text, in_ordnumber text, in_notes text, in_intnotes text, in_ponumber text, in_memo text[], in_netamount numeric[], in_chartid numeric[], in_taxrate numeric[], in_taxchartid numeric[])
- ar_ap__transaction_search(in_account_id integer, in_name_part text, in_meta_number text, in_invnumber text, in_ordnumber text, in_ponumber text, in_source text, in_description text, in_notes text, in_shipvia text, in_from_date date, in_to_date date, in_on_hold boolean, in_inc_open boolean, in_inc_closed boolean, in_as_of date, in_entity_class integer, in_approved boolean)
- ar_ap__transaction_search_summary(in_account_id integer, in_name_part text, in_meta_number text, in_invnumber text, in_ordnumber text, in_ponumber text, in_source text, in_description text, in_notes text, in_shipvia text, in_from_date date, in_to_date date, in_on_hold boolean, in_inc_open boolean, in_inc_closed boolean, in_as_of date, in_entity_class integer, in_approved boolean)
- array_endswith(elem anyelement, arr anyarray)
- array_splice_from(elem anyelement, arr anyarray)
- array_splice_to(element anyelement, arr anyarray)
- as_array(anyelement)
- assembly__stock(in_parts_id integer, in_qty numeric)
- asset__get(in_id integer, in_tag text)
- asset__import_from_disposal(in_id integer)
- asset__save(in_id integer, in_asset_class integer, in_description text, in_tag text, in_purchase_date date, in_purchase_value numeric, in_usable_life numeric, in_salvage_value numeric, in_start_depreciation date, in_warehouse_id integer, in_department_id integer, in_invoice_id integer, in_asset_account_id integer, in_dep_account_id integer, in_exp_account_id integer)
- asset__search(in_asset_class integer, in_description text, in_tag text, in_purchase_date date, in_purchase_value numeric, in_usable_life numeric, in_salvage_value numeric)
- asset_class__get(in_id integer)
- asset_class__get_asset_accounts()
- asset_class__get_dep_accounts()
- asset_class__get_dep_method(in_asset_class integer)
- asset_class__get_dep_methods()
- asset_class__list()
- asset_class__save(in_id integer, in_asset_account_id integer, in_dep_account_id integer, in_method integer, in_label text, in_unit_label text)
- asset_class__search(in_asset_account_id integer, in_dep_account_id integer, in_method integer, in_label text)
- asset_dep__straight_line_base(in_base_life numeric, in_life numeric, in_used numeric, in_basis numeric, in_dep_to_date numeric)
- asset_dep__used_months(in_last_dep date, in_dep_date date, in_usable_life numeric)
- asset_dep_get_usable_life_yr(in_usable_life numeric, in_start_date date, in_dep_date date)
- asset_dep_straight_line_month(in_asset_ids integer[], in_report_date date, in_report_id integer)
- asset_dep_straight_line_yr_d(in_asset_ids integer[], in_report_date date, in_report_id integer)
- asset_dep_straight_line_yr_m(in_asset_ids integer[], in_report_date date, in_report_id integer)
- asset_depreciation__approve(in_report_id integer, in_expense_acct integer)
- asset_disposal__approve(in_id integer, in_gain_acct integer, in_loss_acct integer, in_asset_acct integer)
- asset_item__add_note(in_id integer, in_subject text, in_note text)
- asset_item__search(in_id integer, in_asset_class integer, in_description text, in_tag text, in_purchase_date date, in_purchase_value numeric, in_usable_life numeric, in_salvage_value numeric, in_start_depreciation date, in_warehouse_id integer, in_department_id integer, in_invoice_id integer, in_asset_account_id integer, in_dep_account_id integer)
- asset_nbv_report()
- asset_report__approve(in_id integer, in_expense_acct integer, in_gain_acct integer, in_loss_acct integer)
- asset_report__begin_disposal(in_asset_class integer, in_report_date date, in_report_class integer)
- asset_report__begin_import(in_asset_class integer, in_report_date date)
- asset_report__disposal_gl(in_id integer, in_gain_acct integer, in_loss_acct integer)
- asset_report__dispose(in_id integer, in_asset_id integer, in_amount numeric, in_dm integer, in_percent_disposed numeric)
- asset_report__generate(in_depreciation boolean, in_asset_class integer, in_report_date date)
- asset_report__generate_gl(in_report_id integer, in_accum_account_id integer)
- asset_report__get(in_id integer)
- asset_report__get_disposal(in_id integer)
- asset_report__get_disposal_methods()
- asset_report__get_expense_accts()
- asset_report__get_gain_accts()
- asset_report__get_lines(in_id integer)
- asset_report__get_loss_accts()
- asset_report__import(in_description text, in_tag text, in_purchase_value numeric, in_salvage_value numeric, in_usable_life numeric, in_purchase_date date, in_start_depreciation date, in_location_id integer, in_department_id integer, in_asset_account_id integer, in_dep_account_id integer, in_exp_account_id integer, in_asset_class_id integer, in_invoice_id integer, in_dep_report_id integer, in_accum_dep numeric, in_obsolete_other boolean)
- asset_report__record_approve(in_id integer)
- asset_report__save(in_id integer, in_report_date date, in_report_class integer, in_asset_class integer, in_submit boolean)
- asset_report__search(in_start_date date, in_end_date date, in_asset_class integer, in_approved boolean, in_entered_by integer)
- asset_report_partial_disposal_details(in_id integer)
- avgcost(integer)
- batch__lock(in_batch_id integer)
- batch__lock_for_update(in_batch_id integer)
- batch__search(in_class_id integer, in_description text, in_created_by_eid integer, in_date_from date, in_date_to date, in_amount_gt numeric, in_amount_lt numeric, in_approved boolean)
- batch__unlock(in_batch_id integer)
- batch_create(in_batch_number text, in_description text, in_batch_class text, in_batch_date date)
- batch_delete(in_batch_id integer)
- batch_get_class_id(in_type text)
- batch_get_users()
- batch_list_classes()
- batch_post(in_batch_id integer)
- batch_search_empty(in_class_id integer, in_description text, in_created_by_eid integer, in_amount_gt numeric, in_amount_lt numeric, in_approved boolean)
- batch_search_mini(in_class_id integer, in_description text, in_created_by_eid integer, in_approved boolean)
- budget__approve(in_id integer)
- budget__get_business_units(in_id integer)
- budget__get_details(in_id integer)
- budget__get_info(in_id integer)
- budget__get_notes(in_id integer)
- budget__mark_obsolete(in_id integer)
- budget__reject(in_id integer)
- budget__save_details(in_id integer, in_details text[])
- budget__save_info(in_id integer, in_start_date date, in_end_date date, in_reference text, in_description text, in_business_units integer[])
- budget__save_note(in_id integer, in_subject text, in_note text)
- budget__search(in_start_date date, in_end_date date, in_includes_date date, in_reference text, in_description text, in_entered_by integer, in_approved_by integer, in_obsolete_by integer, in_business_units integer[], in_is_approved boolean, in_is_obsolete boolean)
- budget__variance_report(in_id integer)
- business_type__list()
- business_unit__get(in_id integer)
- business_unit__get_tree_for(in_id integer)
- business_unit__list_by_class(in_business_unit_class_id integer, in_active_on date, in_credit_id integer, in_strict_credit boolean)
- business_unit__list_classes(in_active boolean, in_module text)
- business_unit__save(in_id integer, in_class_id integer, in_control_code text, in_description text, in_start_date date, in_end_date date, in_parent_id integer, in_credit_id integer)
- business_unit_class__get_modules(in_id integer)
- business_unit_class__save(in_id integer, in_label text, in_active boolean, in_ordering integer)
- business_unit_class__save_modules(in_id integer, in_mod_ids integer[])
- business_unit_get(in_id integer)
- chart_get_ar_ap(in_account_class integer)
- chart_list_all()
- chart_list_cash(in_account_class integer)
- chart_list_discount(in_account_class integer)
- chart_list_overpayment(in_account_class integer)
- chart_list_search(in_search text, in_link_desc text)
- check_expiration()
- cogs__add_for_ap(in_parts_id integer, in_qty numeric, in_lastcost numeric)
- cogs__add_for_ap_line(in_invoice_id integer)
- cogs__add_for_ar(in_parts_id integer, in_qty numeric)
- cogs__add_for_ar_line(in_invoice_id integer)
- cogs__reverse_ap(in_parts_id integer, in_qty numeric)
- cogs__reverse_ar(in_parts_id integer, in_qty numeric)
- company__get(in_entity_id integer)
- company__get_all_accounts(in_entity_id integer, in_entity_class integer)
- company__get_by_cc(in_control_code text)
- company__next_id()
- company__save(in_control_code text, in_entity_class integer, in_legal_name text, in_tax_id text, in_entity_id integer, in_sic_code text, in_country_id integer, in_sales_tax_id text, in_license_number text)
- company_get_billing_info(in_id integer)
- compound_array(anyarray)
- concat_colon(text)
- concat_colon(text, text)
- contact__search(in_entity_class integer, in_contact text, in_contact_info text[], in_meta_number text, in_address text, in_city text, in_state text, in_mail_code text, in_country text, in_active_date_from date, in_active_date_to date, in_business_id integer, in_name_part text, in_control_code text, in_notes text, in_users boolean)
- contact_class__list()
- cr_coa_to_account_save(in_accno text, in_description text)
- cr_report_block_changing_approved()
- currency_get_exchangerate(in_currency bpchar, in_date date, in_account_class integer)
- customer_location_save(in_entity_id integer, in_location_class integer, in_line_one text, in_line_two text, in_line_three text, in_city text, in_state text, in_mail_code text, in_country_id integer)
- date_get_all_years()
- days_in_month(in_date date)
- deduction__list_for_entity(in_entity_id integer)
- deduction__list_types(in_country_id integer)
- deduction__save(in_rate numeric, in_entity_id integer, in_type_id integer)
- defaults__get_contra_accounts(in_category bpchar)
- defaults_get_defaultcurrency()
- del_recurring()
- del_yearend()
- draft__search(in_type text, in_with_accno text, in_from_date date, in_to_date date, in_amount_le numeric, in_amount_ge numeric)
- draft_approve(in_id integer)
- draft_delete(in_id integer)
- drop_custom_field(character varying, character varying)
- eca__delete_contact(in_credit_id integer, in_class_id integer, in_contact text)
- eca__delete_location(in_credit_id integer, in_id integer, in_location_class integer)
- eca__delete_pricematrix(in_credit_id integer, in_entry_id integer)
- eca__get_by_meta_number(in_meta_number text, in_entity_class integer)
- eca__get_entity(in_credit_id integer)
- eca__get_pricematrix(in_credit_id integer)
- eca__get_pricematrix_by_pricegroup(in_credit_id integer)
- eca__get_taxes(in_id integer)
- eca__history(in_name_part text, in_meta_number text, in_contact_info text, in_address_line text, in_city text, in_state text, in_zip text, in_salesperson text, in_notes text, in_country_id integer, in_from_date date, in_to_date date, in_type bpchar, in_start_from date, in_start_to date, in_entity_class integer, in_inc_open boolean, in_inc_closed boolean)
- eca__history_summary(in_name_part text, in_meta_number text, in_contact_info text, in_address_line text, in_city text, in_state text, in_zip text, in_salesperson text, in_notes text, in_country_id integer, in_from_date date, in_to_date date, in_type bpchar, in_start_from date, in_start_to date, in_entity_class integer, in_inc_open boolean, in_inc_closed boolean)
- eca__list_contacts(in_credit_id integer)
- eca__list_locations(in_credit_id integer)
- eca__list_notes(in_credit_id integer)
- eca__location_save(in_credit_id integer, in_id integer, in_location_class integer, in_line_one text, in_line_two text, in_line_three text, in_city text, in_state text, in_mail_code text, in_country_id integer, in_old_location_class integer)
- eca__save(in_id integer, in_entity_class integer, in_entity_id integer, in_description text, in_discount numeric, in_taxincluded boolean, in_creditlimit numeric, in_discount_terms integer, in_terms integer, in_meta_number character varying, in_business_id integer, in_language_code character varying, in_pricegroup_id integer, in_curr bpchar, in_startdate date, in_enddate date, in_threshold numeric, in_ar_ap_account_id integer, in_cash_account_id integer, in_pay_to_name text, in_taxform_id integer, in_discount_account_id integer)
- eca__save_contact(in_credit_id integer, in_class_id integer, in_description text, in_contact text, in_old_contact text, in_old_class_id integer)
- eca__save_notes(in_credit_id integer, in_note text, in_subject text)
- eca__save_pricematrix(in_parts_id integer, in_credit_id integer, in_pricebreak numeric, in_price numeric, in_lead_time smallint, in_partnumber text, in_validfrom date, in_validto date, in_curr bpchar, in_entry_id integer)
- eca__set_taxes(in_id integer, in_tax_ids integer[])
- eca_bu_trigger()
- employee__all_managers()
- employee__all_salespeople()
- employee__get(in_entity_id integer)
- employee__get_user(in_entity_id integer)
- employee__list_managers(in_id integer)
- employee__save(in_entity_id integer, in_start_date date, in_end_date date, in_dob date, in_role text, in_ssn text, in_sales boolean, in_manager_id integer, in_employeenumber text, in_is_manager boolean)
- employee__search(in_employeenumber text, in_startdate_from date, in_startdate_to date, in_first_name text, in_middle_name text, in_last_name text, in_notes text, in_is_user boolean)
- employee_search(in_startdatefrom date, in_startdateto date, in_name character varying, in_notes text, in_enddateto date, in_enddatefrom date, in_sales boolean)
- entity__delete_bank_account(in_entity_id integer, in_id integer)
- entity__delete_contact(in_entity_id integer, in_class_id integer, in_contact text)
- entity__delete_location(in_entity_id integer, in_id integer, in_location_class integer)
- entity__get(in_entity_id integer)
- entity__get_bank_account(in_id integer)
- entity__list_bank_account(in_entity_id integer)
- entity__list_classes()
- entity__list_contacts(in_entity_id integer)
- entity__list_credit(in_entity_id integer, in_entity_class integer)
- entity__list_locations(in_entity_id integer)
- entity__list_notes(in_entity_id integer)
- entity__location_save(in_entity_id integer, in_id integer, in_location_class integer, in_line_one text, in_line_two text, in_city text, in_state text, in_mail_code text, in_country_id integer, in_created date)
- entity__save_bank_account(in_entity_id integer, in_credit_id integer, in_bic text, in_iban text, in_remark text, in_bank_account_id integer)
- entity__save_contact(in_entity_id integer, in_class_id integer, in_description text, in_contact text, in_old_contact text, in_old_class_id integer)
- entity__save_notes(in_entity_id integer, in_note text, in_subject text)
- entity_credit__get(in_id integer)
- entity_credit_get_id(in_entity_id integer, in_entity_class integer, in_meta_number text)
- entity_credit_get_id_by_meta_number(in_meta_number text, in_account_class integer)
- entity_save(in_entity_id integer, in_name text, in_entity_class integer)
- eoy__latest_checkpoint()
- eoy__reopen_books_at(in_reopen_date date)
- eoy_close_books(in_end_date date, in_reference text, in_description text, in_retention_acc_id integer)
- eoy_create_checkpoint(in_end_date date)
- eoy_earnings_accounts()
- eoy_reopen_books(in_end_date date)
- eoy_zero_accounts(in_end_date date, in_reference text, in_description text, in_retention_acc_id integer)
- file__attach_to_eca(in_content bytea, in_mime_type_id integer, in_file_name text, in_description text, in_id integer, in_ref_key integer, in_file_class integer)
- file__attach_to_entity(in_content bytea, in_mime_type_id integer, in_file_name text, in_description text, in_id integer, in_ref_key integer, in_file_class integer)
- file__attach_to_order(in_content bytea, in_mime_type_id integer, in_file_name text, in_description text, in_id integer, in_ref_key integer, in_file_class integer)
- file__attach_to_part(in_content bytea, in_mime_type_id integer, in_file_name text, in_description text, in_id integer, in_ref_key integer, in_file_class integer)
- file__attach_to_tx(in_content bytea, in_mime_type_id integer, in_file_name text, in_description text, in_id integer, in_ref_key integer, in_file_class integer)
- file__get(in_id integer, in_file_class integer)
- file__get_for_template(in_ref_key integer, in_file_class integer)
- file__get_mime_type(in_mime_type_id integer, in_mime_type_text text)
- file__list_by(in_ref_key integer, in_file_class integer)
- file__list_links(in_ref_key integer, in_file_class integer)
- file__save_incoming(in_content bytea, in_mime_type_id integer, in_file_name text, in_description text)
- file__save_internal(in_content bytea, in_mime_type_id integer, in_file_name text, in_description text)
- file_links_vrebuild()
- form_check(in_session_id integer, in_form_id integer)
- form_close(in_session_id integer, in_form_id integer)
- form_open(in_session_id integer)
- full_ilike_match(seek text, source text)
- get_default_lang()
- get_fractional_month(in_date_first date, in_date_second date)
- get_fractional_year(in_date_from date, in_date_to date)
- get_link_descriptions()
- gifi__list()
- gl_audit_trail_append()
- goods__history(in_date_from date, in_date_to date, in_partnumber text, in_description text, in_serial_number text, in_inc_po boolean, in_inc_so boolean, in_inc_quo boolean, in_inc_rfq boolean, in_inc_is boolean, in_inc_ir boolean)
- goods__search(in_partnumber text, in_description text, in_partsgroup_id integer, in_serial_number text, in_make text, in_model text, in_drawing text, in_microfiche text, in_status text, in_date_from date, in_date_to date)
- in_tree(in_node_id integer, in_search_array public.tree_record[])
- in_tree(in_node_id integer[], in_search_array public.tree_record[])
- inventory__activity(in_from_date date, in_to_date date, in_partnumber text, in_description text)
- inventory__get_item_by_id(in_id integer)
- inventory__get_item_by_partnumber(in_partnumber text)
- inventory__search_part(in_parts_id integer, in_partnumber text, in_counted_date date)
- inventory_adj__details(in_id integer)
- inventory_adj__get(in_id integer)
- inventory_adj__search(in_from_date date, in_to_date date, in_partnumber text, in_source text)
- inventory_adjust__approve(in_id integer)
- inventory_adjust__delete(in_id integer)
- inventory_adjust__get(in_id integer)
- inventory_adjust__get_lines(in_id integer)
- inventory_adjust__list(in_from_date date, in_to_date date, in_approved boolean)
- inventory_adjust__save_info(in_transdate date, in_source text)
- inventory_adjust__save_line(in_adjust_id integer, in_parts_id integer, in_counted numeric, in_expected numeric, in_variance numeric)
- inventory_create_report(in_transdate date)
- inventory_get_item_at_day(in_transdate date, in_partnumber text)
- inventory_report__add_line(in_report_id integer, in_parts_id integer, in_onhand integer, in_counted integer)
- inventory_report__approve(in_id integer, in_ar_trans_id integer, in_ap_trans_id integer)
- inventory_report__delete(in_id integer)
- invoice__get_by_vendor_number(in_meta_number text, in_invoice_number text)
- is_leapyear(in_date date)
- is_same_month(in_date1 date, in_date2 date)
- is_same_year(in_date1 date, in_date2 date)
- journal__add(in_reference text, in_description text, in_journal integer, in_post_date date, in_approved boolean, in_is_template boolean, in_currency text)
- journal__add_line(in_account_id integer, in_journal_id integer, in_amount numeric, in_cleared boolean, in_memo text, in_business_units integer[])
- journal__delete(in_journal_id integer)
- journal__get_entry(in_id integer)
- journal__get_invoice(in_id integer)
- journal__lines(in_id integer)
- journal__make_invoice(in_order_id integer, in_journal_id integer, in_on_hold boolean, in_reverse boolean, in_credit_id integer, in_language_code character varying)
- journal__save_recurring_print(in_id integer, in_formname text, in_printer text)
- journal__search(in_reference text, in_description text, in_entry_type integer, in_transaction_date date, in_approved boolean, in_department_id integer, in_is_template boolean, in_meta_number text, in_entity_class integer, in_recurring boolean)
- journal__validate_entry(in_id integer)
- lastcost(integer)
- leap_days(in_year_from integer, in_year_to integer)
- list_taxforms(in_entity_id integer)
- location__deactivate(in_id integer)
- location__get(in_id integer)
- location_delete(in_id integer)
- location_list_class()
- location_list_country()
- location_save(in_location_id integer, in_address1 text, in_address2 text, in_address3 text, in_city text, in_state text, in_zipcode text, in_country integer)
- lock_record(in_id integer, in_session_id integer)
- lsmb__create_role(in_role text)
- lsmb__decompose_timestamp(in_timestamp timestamp with time zone)
- lsmb__grant_exec(in_role text, in_func text)
- lsmb__grant_menu(in_role text, in_node_id integer, in_perm_type text)
- lsmb__grant_perms(in_role text, in_table text, in_perms text)
- lsmb__grant_perms(in_role text, in_table text, in_perms text, in_cols text[])
- lsmb__grant_role(in_child text, in_parent text)
- lsmb__is_allowed_role(in_rolelist text[])
- lsmb__max_date()
- lsmb__min_date()
- lsmb__role(global_role text)
- lsmb__role_prefix()
- lsmb_module__get(in_id integer)
- lsmb_module__list()
- menu_children(in_parent_id integer)
- menu_generate()
- menu_insert(in_parent_id integer, in_position integer, in_label text)
- mfg_lot__commit(in_id integer)
- months_passed(in_start timestamp without time zone, in_end timestamp without time zone)
- next_leap_year_calc(in_date date, is_end boolean)
- order__combine(in_ids integer[])
- order__search(in_oe_class_id integer, in_meta_number text, in_legal_name text, in_ponumber text, in_ordnumber text, in_open boolean, in_closed boolean, in_shipvia text, in_description text, in_date_from date, in_date_to date, in_shippable boolean, in_buisness_units integer[])
- overpayment__reverse(in_id integer, in_transdate date, in_batch_id integer, in_account_class integer, in_exchangerate numeric, in_curr bpchar)
- parse_date(in_date date)
- part__get_by_id(in_id integer)
- parts__get_by_id(in_id integer)
- parts__get_by_partnumber(in_partnumber text)
- parts__search_lite(in_partnumber text, in_description text)
- partsgroup__search(in_pricegroup text)
- payment__get_gl(in_payment_id integer)
- payment__overpayments_list(in_date_from date, in_date_to date, in_control_code text, in_meta_number text, in_name_part text)
- payment__reverse(in_source text, in_date_paid date, in_credit_id integer, in_cash_accno text, in_date_reversed date, in_account_class integer, in_batch_id integer, in_voucher_id integer, in_exchangerate numeric, in_currency bpchar)
- payment__search(in_source text, in_from_date date, in_to_date date, in_credit_id integer, in_cash_accno text, in_entity_class integer, in_currency bpchar, in_meta_number text)
- payment_bulk_post(in_transactions numeric[], in_batch_id integer, in_source text, in_total numeric, in_ar_ap_accno text, in_cash_accno text, in_payment_date date, in_account_class integer, in_exchangerate numeric, in_currency text)
- payment_gather_header_info(in_account_class integer, in_payment_id integer)
- payment_gather_line_info(in_account_class integer, in_payment_id integer)
- payment_get_all_accounts(in_account_class integer)
- payment_get_all_contact_invoices(in_account_class integer, in_business_id integer, in_currency bpchar, in_date_from date, in_date_to date, in_batch_id integer, in_ar_ap_accno text, in_meta_number text)
- payment_get_available_overpayment_amount(in_account_class integer, in_entity_credit_id integer)
- payment_get_entity_account_payment_info(in_entity_credit_id integer)
- payment_get_entity_accounts(in_account_class integer, in_vc_name text, in_vc_idn text, in_datefrom date, in_dateto date)
- payment_get_open_accounts(in_account_class integer, in_datefrom date, in_dateto date)
- payment_get_open_invoice(in_account_class integer, in_entity_credit_id integer, in_curr bpchar, in_datefrom date, in_dateto date, in_amountfrom numeric, in_amountto numeric, in_invnumber text)
- payment_get_open_invoices(in_account_class integer, in_entity_credit_id integer, in_curr bpchar, in_datefrom date, in_dateto date, in_amountfrom numeric, in_amountto numeric)
- payment_get_open_overpayment_entities(in_account_class integer)
- payment_get_unused_overpayment(in_account_class integer, in_entity_credit_id integer, in_chart_id integer)
- payment_get_vc_info(in_entity_credit_id integer, in_location_class_id integer)
- payment_post(in_datepaid date, in_account_class integer, in_entity_credit_id integer, in_curr bpchar, in_notes text, in_gl_description text, in_cash_account_id integer[], in_amount numeric[], in_cash_approved boolean[], in_source text[], in_memo text[], in_transaction_id integer[], in_op_amount numeric[], in_op_cash_account_id integer[], in_op_source text[], in_op_memo text[], in_op_account_id integer[], in_ovp_payment_id integer[], in_approved boolean)
- payment_type__get_label(in_payment_type_id integer)
- payment_type__list()
- payments_get_open_currencies(in_account_class integer)
- payments_set_exchangerate(in_account_class integer, in_exchangerate numeric, in_curr bpchar, in_datepaid date)
- payroll_deduction_type__search(in_account_id integer, in_pdc_id integer, in_country_id integer, in_label text, in_unit text)
- payroll_income_category__list()
- payroll_income_class__for_country(in_country_id integer)
- payroll_income_type__get(in_id integer)
- payroll_income_type__save(in_id integer, in_account_id integer, in_pic_id integer, in_country_id integer, in_label text, in_unit text, in_default_amount numeric)
- payroll_income_type__search(in_account_id integer, in_pic_id integer, in_country_id integer, in_label text, in_unit text)
- periods_get()
- person__delete_contact(in_person_id integer, in_contact_class_id integer, in_contact text)
- person__delete_location(in_person_id integer, in_location_id integer, in_location_class integer)
- person__get(in_entity_id integer)
- person__get_by_cc(in_control_code text)
- person__get_my_entity_id()
- person__get_my_id()
- person__list_bank_account(in_entity_id integer)
- person__list_contacts(in_entity_id integer)
- person__list_languages()
- person__list_locations(in_entity_id integer)
- person__list_notes(in_entity_id integer)
- person__list_salutations()
- person__save(in_entity_id integer, in_salutation_id integer, in_first_name text, in_middle_name text, in_last_name text, in_country_id integer, in_birthdate date, in_personal_id text)
- person__save_contact(in_entity_id integer, in_contact_class integer, in_old_contact text, in_contact_new text, in_description text, in_old_contact_class integer)
- person__save_location(in_entity_id integer, in_location_id integer, in_location_class integer, in_line_one text, in_line_two text, in_line_three text, in_city text, in_state text, in_mail_code text, in_country_code integer, in_old_location_class integer)
- pnl__customer(in_id integer, in_from_date date, in_to_date date, in_language text)
- pnl__income_statement_accrual(in_from_date date, in_to_date date, in_ignore_yearend text, in_business_units integer[], in_language text)
- pnl__income_statement_cash(in_from_date date, in_to_date date, in_ignore_yearend text, in_business_units integer[], in_language text)
- pnl__invoice(in_id integer, in_language text)
- pnl__product(in_from_date date, in_to_date date, in_parts_id integer, in_business_units integer[], in_language text)
- prevent_closed_transactions()
- pricegroup__list()
- pricegroup__search(in_pricegroup text)
- pricegroups__list()
- pricelist__delete(in_entry_id integer, in_credit_id integer)
- pricelist__save(in_parts_id integer, in_credit_id integer, in_pricebreak numeric, in_price numeric, in_lead_time smallint, in_partnumber text, in_validfrom date, in_validto date, in_curr bpchar, in_entry_id integer, in_qty numeric)
- pricematrix__for_customer(in_credit_id integer, in_parts_id integer, in_transdate date, in_qty numeric, in_currency text)
- pricematrix__for_vendor(in_credit_id integer, in_parts_id integer)
- product(numeric)
- product(numeric, numeric)
- quote_ident_array(text[])
- reconciliation__account_list()
- reconciliation__add_entry(in_report_id integer, in_scn text, in_type text, in_date timestamp without time zone, in_amount numeric)
- reconciliation__check(in_end_date date, in_chart_id integer)
- reconciliation__delete_my_report(in_report_id integer)
- reconciliation__delete_unapproved(in_report_id integer)
- reconciliation__get_cleared_balance(in_chart_id integer, in_report_date date)
- reconciliation__get_current_balance(in_account_id integer, in_date date)
- reconciliation__new_report_id(in_chart_id integer, in_total numeric, in_end_date date, in_recon_fx boolean)
- reconciliation__pending_transactions(in_report_id integer, in_their_total numeric)
- reconciliation__reject_set(in_report_id integer)
- reconciliation__report_approve(in_report_id integer)
- reconciliation__report_details(in_report_id integer)
- reconciliation__report_details_payee(in_report_id integer)
- reconciliation__report_details_payee_with_days(in_report_id integer, in_end_date date)
- reconciliation__report_summary(in_report_id integer)
- reconciliation__save_set(in_report_id integer, in_line_ids integer[])
- reconciliation__search(in_date_from date, in_date_to date, in_balance_from numeric, in_balance_to numeric, in_account_id integer, in_submitted boolean, in_approved boolean)
- reconciliation__submit_set(in_report_id integer, in_line_ids integer[])
- report__aa_outstanding(in_entity_class integer, in_account_id integer, in_entity_name text, in_meta_number text, in_employee_id integer, in_business_units integer[], in_ship_via text, in_on_hold boolean, in_from_date date, in_to_date date, in_partnumber text, in_parts_id integer)
- report__aa_outstanding_details(in_entity_class integer, in_account_id integer, in_entity_name text, in_meta_number text, in_employee_id integer, in_business_units integer[], in_ship_via text, in_on_hold boolean, in_from_date date, in_to_date date, in_partnumber text, in_parts_id integer)
- report__aa_transactions(in_entity_class integer, in_account_id integer, in_entity_name text, in_meta_number text, in_employee_id integer, in_manager_id integer, in_invnumber text, in_ordnumber text, in_ponumber text, in_source text, in_description text, in_notes text, in_shipvia text, in_from_date date, in_to_date date, in_on_hold boolean, in_taxable boolean, in_tax_account_id integer, in_open boolean, in_closed boolean, in_approved boolean)
- report__balance_sheet(in_to_date date, in_language text)
- report__cash_summary(in_from_date date, in_to_date date, in_from_accno text, in_to_accno text)
- report__coa()
- report__general_balance(in_from_date date, in_to_date date)
- report__gl(in_reference text, in_accno text, in_category bpchar, in_source text, in_memo text, in_description text, in_from_date date, in_to_date date, in_approved boolean, in_from_amount numeric, in_to_amount numeric, in_business_units integer[])
- report__incoming_cogs_line(in_date_from date, in_date_to date, in_partnumber text, in_parts_description text)
- report__invoice_aging_detail(in_entity_id integer, in_entity_class integer, in_accno text, in_to_date date, in_business_units integer[], in_use_duedate boolean, in_name_part text)
- report__invoice_aging_summary(in_entity_id integer, in_entity_class integer, in_accno text, in_to_date date, in_business_units integer[], in_use_duedate boolean, in_name_part text)
- report_trial_balance(in_datefrom date, in_dateto date, in_department_id integer, in_project_id integer, in_gifi boolean)
- robot__get(in_entity_id integer)
- robot__get_by_cc(in_control_code text)
- robot__get_my_entity_id()
- robot__list_notes(in_entity_id integer)
- robot__save(in_entity_id integer, in_first_name text, in_middle_name text, in_last_name text, in_country_id integer)
- save_taxform(in_country_code integer, in_taxform_name text)
- sequence__delete(in_label text)
- sequence__get(in_label text)
- sequence__increment(in_label text)
- sequence__list()
- sequence__list_by_key(in_setting_key text)
- sequence__save(in_label text, in_setting_key text, in_prefix text, in_suffix text, in_sequence text, in_accept_input boolean)
- session_check(in_session_id integer, in_token text)
- setting__get_currencies()
- setting__increment_base(in_raw_var text)
- setting__set(in_setting_key character varying, in_value character varying)
- setting_get(in_key character varying)
- setting_get_default_accounts()
- setting_increment(in_key character varying)
- sic__list()
- tax_form__get(in_form_id integer)
- tax_form__list_all()
- tax_form__list_ext()
- tax_form__save(in_id integer, in_country_id integer, in_form_name text, in_default_reportable boolean, in_is_accrual boolean)
- tax_form_details_report(in_tax_form_id integer, in_begin date, in_end date, in_meta_number text)
- tax_form_details_report_accrual(in_tax_form_id integer, in_begin date, in_end date, in_meta_number text)
- tax_form_summary_report(in_tax_form_id integer, in_begin date, in_end date)
- tax_form_summary_report_accrual(in_tax_form_id integer, in_begin date, in_end date)
- template__get(in_template_name text, in_language_code character varying, in_format text)
- template__get_by_id(in_id integer)
- template__list(in_language_code character varying)
- template__save(in_template_name text, in_language_code character varying, in_template text, in_format text)
- tg_enforce_perms_eclass()
- timecard__allocate(in_id integer, in_amount numeric)
- timecard__bu_class(in_id integer)
- timecard__get(id integer)
- timecard__parts(in_timecard boolean, in_service boolean, in_partnumber text)
- timecard__report(in_business_units integer[], in_partnumber text, in_person_id integer, in_date_from date, in_date_to date, in_open boolean, in_closed boolean, in_jctype integer)
- timecard__save(in_id integer, in_business_unit_id integer, in_parts_id integer, in_description text, in_qty numeric, in_allocated numeric, in_sellprice numeric, in_fxsellprice numeric, in_serialnumber text, in_checkedin timestamp with time zone, in_checkedout timestamp with time zone, in_person_id integer, in_notes text, in_total numeric, in_non_billable numeric, in_curr bpchar, in_jctype integer)
- timecard_type__get(in_id integer)
- timecard_type__list()
- to_args(in_base text[], in_args text[])
- to_args(text[])
- track_global_sequence()
- trial_balance__generate(in_from_date date, in_to_date date, in_heading integer, in_accounts integer[], in_ignore_yearend text, in_business_units integer[], in_balance_sign integer, in_all_accounts boolean, in_approved boolean)
- trial_balance__heading_accounts(in_accounts integer[])
- trial_balance__list_headings()
- trigger_parts_short()
- unlock(in_id integer)
- unlock_all()
- user__change_password(in_new_password text)
- user__check_my_expiration()
- user__expires_soon()
- user__get_all_users()
- user__get_preferences(in_user_id integer)
- user__save_preferences(in_dateformat text, in_numberformat text, in_language text, in_stylesheet text, in_printer text)
- voucher__delete(in_voucher_id integer)
- voucher__list(in_batch_id integer)
- voucher_get_batch(in_batch_id integer)
- wage__list_for_entity(in_entity_id integer)
- wage__list_types(in_country_id integer)
- wage__save(in_rate numeric, in_entity_id integer, in_type_id integer)
- warehouse__list()
- warehouse__list_all()
Mapping journal_line to country_tax_form for reporting purposes.
ac_tax_form Structure
| F-Key |
Name |
Type |
Description |
|
acc_trans.entry_id
|
entry_id |
integer |
PRIMARY KEY
|
|
|
reportable |
boolean |
|
Index -
Schema public
This table stores line items for financial transactions. Please note that
payments in 1.3 are not full-fledged transactions.
acc_trans Structure
| F-Key |
Name |
Type |
Description |
|
transactions.id
|
trans_id |
integer |
NOT NULL
|
|
account.id
|
chart_id |
integer |
NOT NULL
|
|
|
amount |
numeric |
NOT NULL
|
|
|
transdate |
date |
DEFAULT ('now'::text)::date
|
|
|
source |
text |
Document Source identifier for individual line items, usually used
for payments.
|
|
|
cleared |
boolean |
DEFAULT false
|
|
|
fx_transaction |
boolean |
DEFAULT false
When 'f', indicates that the amount column states the amount in the currency
as specified in the associated ar, ap, payment or gl record.
When 't', indicates that the amount column states the difference between
the foreighn currency amount and the base amount so that their sum equals the
base amount.
|
|
|
memo |
text |
|
|
invoice.id
|
invoice_id |
integer |
|
|
|
approved |
boolean |
DEFAULT true
|
|
|
cleared_on |
date |
|
|
|
reconciled_on |
date |
|
|
voucher.id
|
voucher_id |
integer |
|
|
|
entry_id |
serial |
PRIMARY KEY
|
Tables referencing this one via Foreign Key Constraints:
acc_trans_transdate_year_idx transdate, date_part('YEAR'::text, transdate)) WHERE (transdate IS NOT NULL
acc_trans_voucher_id_idx voucher_id
Index -
Schema public
This table stores the main account info.
account Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
UNIQUE
NOT NULL
|
|
|
accno |
text |
PRIMARY KEY
|
|
|
description |
text |
|
|
|
is_temp |
boolean |
NOT NULL
DEFAULT false
Only affects equity accounts. If set, close at end of year.
|
|
|
category |
character(1) |
NOT NULL
A=asset,L=liability,Q=Equity,I=Income,E=expense
|
|
|
gifi_accno |
text |
|
|
account_heading.id
|
heading |
integer |
NOT NULL
|
|
|
contra |
boolean |
NOT NULL
DEFAULT false
|
|
|
tax |
boolean |
NOT NULL
DEFAULT false
|
|
|
obsolete |
boolean |
NOT NULL
DEFAULT false
|
account Constraints
| Name |
Constraint |
| account_category_check |
CHECK ((category = ANY (ARRAY['A'::bpchar, 'L'::bpchar, 'Q'::bpchar, 'I'::bpchar, 'E'::bpchar]))) |
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
This table holds account balances at various dates. Transactions MUST NOT
be posted prior to the latest end_date in this table, and no unapproved
transactions (vouchers or drafts) can remain in the closed period.
account_checkpoint Structure
| F-Key |
Name |
Type |
Description |
|
|
end_date |
date |
PRIMARY KEY
|
|
account.id
|
account_id |
integer |
PRIMARY KEY
|
|
|
amount |
numeric |
NOT NULL
|
|
|
id |
serial |
UNIQUE
NOT NULL
|
|
|
debits |
numeric |
|
|
|
credits |
numeric |
|
Index -
Schema public
This table holds the account headings in the system. Each account must belong
to a heading, and a heading can belong to another heading. In this way it is
possible to nest accounts for reporting purposes.
account_heading Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
UNIQUE
NOT NULL
|
|
|
accno |
text |
PRIMARY KEY
|
|
account_heading.id
|
parent_id |
integer |
|
|
|
description |
text |
|
|
|
category |
character(1) |
Same as the column account.category, except that if NULL the category
is automatically derived from the linked accounts.
|
account_heading Constraints
| Name |
Constraint |
| account_heading_category_check |
CHECK ((category = ANY (ARRAY['A'::bpchar, 'L'::bpchar, 'Q'::bpchar, 'I'::bpchar, 'E'::bpchar]))) |
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
Lists for each row
the derived category for each heading, based on the categories of the
linked accounts.
account_heading_derived_category Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
integer |
|
|
|
accno |
text |
|
|
|
description |
text |
|
|
|
parent_id |
integer |
|
|
|
original_category |
character(1) |
|
|
|
asset_count |
bigint |
|
|
|
liability_count |
bigint |
|
|
|
expense_count |
bigint |
|
|
|
income_count |
bigint |
|
|
|
equity_count |
bigint |
|
|
|
derived_category |
text |
|
|
|
category |
bpchar |
|
SELECT derivation.id
,
derivation.accno
,
derivation.description
,
derivation.parent_id
,
derivation.original_category
,
derivation.asset_count
,
derivation.liability_count
,
derivation.expense_count
,
derivation.income_count
,
derivation.equity_count
,
derivation.derived_category
,
COALESCE
(derivation.original_category
, (derivation.derived_category)::bpchar
) AS category
FROM (
SELECT category_counts.id
,
category_counts.accno
,
category_counts.description
,
category_counts.parent_id
,
category_counts.original_category
,
category_counts.asset_count
,
category_counts.liability_count
,
category_counts.expense_count
,
category_counts.income_count
,
category_counts.equity_count
,
CASE
WHEN
(category_counts.equity_count > 0) THEN 'Q'::text
WHEN
(
(category_counts.income_count > 0)
AND (category_counts.expense_count > 0)
) THEN 'Q'::text
WHEN
(
(category_counts.asset_count > 0)
AND (category_counts.liability_count > 0)
) THEN 'Q'::text
WHEN
(category_counts.asset_count > 0) THEN 'A'::text
WHEN
(category_counts.liability_count > 0) THEN 'L'::text
WHEN
(category_counts.expense_count > 0) THEN 'E'::text
WHEN
(category_counts.income_count > 0) THEN 'I'::text
ELSE NULL::text
END AS derived_category
FROM (
SELECT ah.id
,
ah.accno
,
ah.description
,
ah.parent_id
,
ah.category AS original_category
,
count
(
CASE
WHEN
(acc.category = 'A'::bpchar) THEN acc.category
ELSE NULL::bpchar
END
) AS asset_count
,
count
(
CASE
WHEN
(acc.category = 'L'::bpchar) THEN acc.category
ELSE NULL::bpchar
END
) AS liability_count
,
count
(
CASE
WHEN
(acc.category = 'E'::bpchar) THEN acc.category
ELSE NULL::bpchar
END
) AS expense_count
,
count
(
CASE
WHEN
(acc.category = 'I'::bpchar) THEN acc.category
ELSE NULL::bpchar
END
) AS income_count
,
count
(
CASE
WHEN
(acc.category = 'Q'::bpchar) THEN acc.category
ELSE NULL::bpchar
END
) AS equity_count
FROM (
(account_heading_descendant ahd
JOIN account_heading ah
ON (
(ahd.id = ah.id)
)
)
LEFT JOIN account acc
ON (
(ahd.descendant_id = acc.heading)
)
)
GROUP BY ah.id
, ah.accno
, ah.description
, ah.parent_id
, ah.category
) category_counts
) derivation;
Index -
Schema public
Returns rows for
each heading listing its immediate children, children of children, etc., etc.
This is primarily practical when calculating subtotals
for PNL and B/S headings.
account_heading_descendant Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
integer |
|
|
|
level |
integer |
|
|
|
descendant_id |
integer |
|
|
|
accno |
text |
|
|
|
descendant_accno |
text |
|
WITH RECURSIVE account_headings AS
(
SELECT account_heading.id
,
1 AS level
,
account_heading.id AS descendant_id
,
account_heading.accno
,
account_heading.accno AS descendant_accno
FROM account_heading
UNION ALL
SELECT at.id
,
(at.level + 1) AS level
,
ah.id AS descendant_id
,
at.accno
,
ah.accno AS descendant_accno
FROM (account_heading ah
JOIN account_headings at
ON (
(ah.parent_id = at.descendant_id)
)
)
)
SELECT account_headings.id
,
account_headings.level
,
account_headings.descendant_id
,
account_headings.accno
,
account_headings.descendant_accno
FROM account_headings;
Index -
Schema public
Translations for account heading descriptions.
account_heading_translation Structure
| F-Key |
Name |
Type |
Description |
|
account_heading.id
|
trans_id |
integer |
PRIMARY KEY
|
|
|
language_code |
character varying(6) |
PRIMARY KEY
|
|
|
description |
text |
|
Table account_heading_translation Inherits
translation,
Index -
Schema public
Returns in the 'path' field an
array which contains the path of the heading to its associated root.
account_heading_tree Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
integer |
|
|
|
accno |
text |
|
|
|
description |
text |
|
|
|
level |
integer |
|
|
|
path |
integer[] |
|
WITH RECURSIVE account_headings AS
(
SELECT account_heading.id
,
account_heading.accno
,
account_heading.description
,
1 AS level
,
ARRAY[account_heading.id] AS path
FROM account_heading
WHERE (account_heading.parent_id IS NULL)
UNION ALL
SELECT ah.id
,
ah.accno
,
ah.description
,
(at.level + 1) AS level
,
array_append
(at.path
, ah.id
) AS path
FROM (account_heading ah
JOIN account_headings at
ON (
(ah.parent_id = at.id)
)
)
)
SELECT account_headings.id
,
account_headings.accno
,
account_headings.description
,
account_headings.level
,
account_headings.path
FROM account_headings;
Index -
Schema public
Index -
Schema public
This is a lookup table which provide basic information as to categories and
dropdowns of accounts. In general summary accounts cannot belong to more than
one category (an AR summary account cannot appear in other dropdowns for
example). Custom fields are not overwritten when the account is edited from
the front-end.
account_link_description Structure
| F-Key |
Name |
Type |
Description |
|
|
description |
text |
PRIMARY KEY
|
|
|
summary |
boolean |
NOT NULL
|
|
|
custom |
boolean |
NOT NULL
|
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
Translations for account descriptions.
account_translation Structure
| F-Key |
Name |
Type |
Description |
|
account.id
|
trans_id |
integer |
PRIMARY KEY
|
|
|
language_code |
character varying(6) |
PRIMARY KEY
|
|
|
description |
text |
|
Table account_translation Inherits
translation,
Index -
Schema public
Table:
ap
Summary/header information for AP transactions and vendor invoices.
Note that some constraints here are hard to enforce because we haven not gotten
to rewriting the relevant code here.
HV TODO drop entity_id
ap Structure
| F-Key |
Name |
Type |
Description |
|
transactions.id
|
id |
integer |
PRIMARY KEY
DEFAULT nextval('id'::regclass)
|
|
|
invnumber |
text |
Text identifier for the invoice. Must be unique.
|
|
|
transdate |
date |
DEFAULT ('now'::text)::date
|
|
entity.id
|
entity_id |
integer |
|
|
|
taxincluded |
boolean |
DEFAULT false
|
|
|
amount |
numeric |
This stores the total amount (including taxes) for the transaction.
|
|
|
netamount |
numeric |
Total amount excluding taxes for the transaction.
|
|
|
paid |
numeric |
|
|
|
datepaid |
date |
|
|
|
duedate |
date |
|
|
|
invoice |
boolean |
DEFAULT false
True if the transaction tracks goods/services purchase using the invoice
table. False otherwise.
|
|
|
ordnumber |
text |
Order Number
|
|
|
curr |
character(3) |
3 letters to identify the currency.
|
|
|
notes |
text |
These notes are displayed on the invoice when printed or emailed
|
|
entity_employee.entity_id
|
person_id |
integer |
Person who created the transaction
|
|
|
till |
character varying(20) |
|
|
|
quonumber |
text |
Quotation Number
|
|
|
intnotes |
text |
These notes are not displayed when the invoice is printed or emailed and
may be updated without reposting hte invocie.
|
|
|
shipvia |
text |
|
|
|
language_code |
character varying(6) |
|
|
|
ponumber |
text |
Purchase Order Number
|
|
|
shippingpoint |
text |
|
|
|
on_hold |
boolean |
DEFAULT false
|
|
|
approved |
boolean |
DEFAULT true
Only show in financial reports if true.
|
|
|
reverse |
boolean |
DEFAULT false
If true numbers are displayed after multiplying by -1
|
|
|
terms |
smallint |
|
|
|
description |
text |
|
|
|
force_closed |
boolean |
Not exposed to the UI, but can be set to prevent an invoice from showing up
for payment or in outstanding reports.
|
|
|
crdate |
date |
|
|
|
is_return |
boolean |
DEFAULT false
|
|
entity_credit_account.id
|
entity_credit_account |
integer |
NOT NULL
reference for the vendor account used.
|
ap Constraints
| Name |
Constraint |
| ap_check |
CHECK ((((amount IS NULL) AND (curr IS NULL)) OR ((amount IS NOT NULL) AND (curr IS NOT NULL)))) |
Index -
Schema public
Table:
ar
Summary/header information for AR transactions and sales invoices.
Note that some constraints here are hard to enforce because we haven not gotten
to rewriting the relevant code here.
HV TODO drop entity_id
ar Structure
| F-Key |
Name |
Type |
Description |
|
transactions.id
|
id |
integer |
PRIMARY KEY
DEFAULT nextval('id'::regclass)
|
|
|
invnumber |
text |
Text identifier for the invoice. Must be unique.
|
|
|
transdate |
date |
DEFAULT ('now'::text)::date
|
|
entity.id
|
entity_id |
integer |
|
|
|
taxincluded |
boolean |
|
|
|
amount |
numeric |
This stores the total amount (including taxes) for the transaction.
|
|
|
netamount |
numeric |
Total amount excluding taxes for the transaction.
|
|
|
paid |
numeric |
|
|
|
datepaid |
date |
|
|
|
duedate |
date |
|
|
|
invoice |
boolean |
DEFAULT false
True if the transaction tracks goods/services purchase using the invoice
table. False otherwise.
|
|
|
shippingpoint |
text |
|
|
|
terms |
smallint |
|
|
|
notes |
text |
These notes are displayed on the invoice when printed or emailed
|
|
|
curr |
character(3) |
3 letters to identify the currency.
|
|
|
ordnumber |
text |
Order Number
|
|
entity_employee.entity_id
|
person_id |
integer |
Person who created the transaction
|
|
|
till |
character varying(20) |
|
|
|
quonumber |
text |
Quotation Number
|
|
|
intnotes |
text |
These notes are not displayed when the invoice is printed or emailed and
may be updated without reposting hte invocie.
|
|
|
shipvia |
text |
|
|
|
language_code |
character varying(6) |
|
|
|
ponumber |
text |
Purchase Order Number
|
|
|
on_hold |
boolean |
DEFAULT false
|
|
|
reverse |
boolean |
DEFAULT false
If true numbers are displayed after multiplying by -1
|
|
|
approved |
boolean |
DEFAULT true
Only show in financial reports if true.
|
|
entity_credit_account.id
|
entity_credit_account |
integer |
NOT NULL
reference for the customer account used.
|
|
|
force_closed |
boolean |
Not exposed to the UI, but can be set to prevent an invoice from showing up
for payment or in outstanding reports.
|
|
|
description |
text |
|
|
|
is_return |
boolean |
DEFAULT false
|
|
|
crdate |
date |
|
|
|
setting_sequence |
text |
|
ar Constraints
| Name |
Constraint |
| ar_check |
CHECK ((((amount IS NULL) AND (curr IS NULL)) OR ((amount IS NOT NULL) AND (curr IS NOT NULL)))) |
| ar_check1 |
CHECK (((invnumber IS NOT NULL) OR (NOT approved))) |
Index -
Schema public
Holds mapping for parts that are members of assemblies.
assembly Structure
| F-Key |
Name |
Type |
Description |
|
parts.id
|
id |
integer |
PRIMARY KEY
This is the id of the assembly the part is being mapped to.
|
|
parts.id
|
parts_id |
integer |
PRIMARY KEY
ID of part that is a member of the assembly.
|
|
|
qty |
numeric |
|
|
|
bom |
boolean |
|
|
|
adj |
boolean |
|
assembly_id_key id
Index -
Schema public
The account fields here set the defaults for the individual asset items. They
are non-authoritative.
asset_class Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
UNIQUE
NOT NULL
|
|
|
label |
text |
PRIMARY KEY
|
|
account.id
|
asset_account_id |
integer |
|
|
account.id
|
dep_account_id |
integer |
|
|
asset_dep_method.id
|
method |
integer |
|
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
Stores asset depreciation methods, and their relevant stored procedures.
The fixed asset system is such depreciation methods can be plugged in via this
table.
asset_dep_method Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
UNIQUE
NOT NULL
|
|
|
method |
text |
PRIMARY KEY
These are keyed to specific stored procedures. Currently only "straight_line" is supported
|
|
|
sproc |
text |
UNIQUE
NOT NULL
The sproc mentioned here is a stored procedure which must have the following
arguments: (in_asset_ids int[], in_report_date date, in_report_id int).
Here in_asset_ids are the assets to be depreciated, in_report_date is the date
of the report, and in_report_id is the id of the report. The sproc MUST
insert the relevant lines into asset_report_line.
|
|
|
unit_label |
text |
NOT NULL
|
|
|
short_name |
text |
UNIQUE
NOT NULL
|
|
asset_unit_class.id
|
unit_class |
integer |
NOT NULL
|
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
asset_disposal_method Structure
| F-Key |
Name |
Type |
Description |
|
|
label |
text |
PRIMARY KEY
|
|
|
id |
serial |
UNIQUE
NOT NULL
|
|
|
multiple |
integer |
|
|
|
short_label |
character(1) |
|
asset_disposal_method Constraints
| Name |
Constraint |
| asset_disposal_method_multiple_check |
CHECK ((multiple = ANY (ARRAY[1, 0, '-1'::integer]))) |
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
Stores details of asset items. The account fields here are authoritative,
while the ones in the asset_class table are defaults.
asset_item Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
PRIMARY KEY
|
|
|
description |
text |
|
|
|
tag |
text |
UNIQUE#1
NOT NULL
This can be plugged into other routines to generate it automatically via ALTER TABLE .... SET DEFAULT.....
|
|
|
purchase_value |
numeric |
|
|
|
salvage_value |
numeric |
|
|
|
usable_life |
numeric |
|
|
|
purchase_date |
date |
NOT NULL
|
|
|
start_depreciation |
date |
NOT NULL
|
|
warehouse.id
|
location_id |
integer |
|
|
business_unit.id
|
department_id |
integer |
|
|
eca_invoice.journal_id
|
invoice_id |
integer |
|
|
account.id
|
asset_account_id |
integer |
|
|
account.id
|
dep_account_id |
integer |
|
|
account.id
|
exp_account_id |
integer |
|
|
asset_item.id
|
obsolete_by |
integer |
UNIQUE#1
|
|
asset_class.id
|
asset_class_id |
integer |
|
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
asset_note Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
integer |
NOT NULL
DEFAULT nextval('note_id_seq'::regclass)
|
|
|
note_class |
integer |
NOT NULL
DEFAULT 4
|
|
|
note |
text |
NOT NULL
|
|
|
vector |
tsvector |
NOT NULL
DEFAULT ''::tsvector
|
|
|
created |
timestamp without time zone |
NOT NULL
DEFAULT now()
|
|
|
created_by |
text |
DEFAULT "session_user"()
|
|
asset_item.id
|
ref_key |
integer |
NOT NULL
|
|
|
subject |
text |
|
Table asset_note Inherits
note,
asset_note Constraints
| Name |
Constraint |
| asset_note_note_class_check |
CHECK ((note_class = 4)) |
Index -
Schema public
Asset reports are discrete sets of depreciation or disposal transctions,
and each one may be turned into no more than one GL transaction.
asset_report Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
PRIMARY KEY
|
|
|
report_date |
date |
|
|
gl.id
|
gl_id |
bigint |
UNIQUE
|
|
asset_class.id
|
asset_class |
bigint |
|
|
asset_report_class.id
|
report_class |
integer |
|
|
entity.id
|
entered_by |
bigint |
NOT NULL
DEFAULT person__get_my_entity_id()
|
|
entity.id
|
approved_by |
bigint |
|
|
|
entered_at |
timestamp without time zone |
DEFAULT now()
|
|
|
approved_at |
timestamp without time zone |
|
|
|
depreciated_qty |
numeric |
|
|
|
dont_approve |
boolean |
DEFAULT false
|
|
|
submitted |
boolean |
NOT NULL
DEFAULT false
|
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
By default only four types of asset reports are supported. In the future
others may be added. Please correspond on the list before adding more types.
asset_report_class Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
integer |
UNIQUE
NOT NULL
|
|
|
class |
text |
PRIMARY KEY
|
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
asset_report_line Structure
| F-Key |
Name |
Type |
Description |
|
asset_item.id
|
asset_id |
bigint |
PRIMARY KEY
|
|
asset_report.id
|
report_id |
bigint |
PRIMARY KEY
|
|
|
amount |
numeric |
|
|
business_unit.id
|
department_id |
integer |
In case assets are moved between departments, we have to store this here.
|
|
warehouse.id
|
warehouse_id |
integer |
|
Index -
Schema public
Maps disposal method to line items in the asset disposal report.
Index -
Schema public
asset_unit_class Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
integer |
UNIQUE
NOT NULL
|
|
|
class |
text |
PRIMARY KEY
|
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
This stores information on who entered or updated rows in the ar, ap, or gl
tables.
audittrail Structure
| F-Key |
Name |
Type |
Description |
|
|
trans_id |
integer |
|
|
|
tablename |
text |
|
|
|
reference |
text |
|
|
|
formname |
text |
|
|
|
action |
text |
|
|
|
transdate |
timestamp without time zone |
DEFAULT now()
|
|
person.entity_id
|
person_id |
integer |
NOT NULL
|
|
|
entry_id |
bigserial |
PRIMARY KEY
|
audittrail_trans_id_key trans_id
Index -
Schema public
Stores batch header info. Batches are groups of vouchers that are posted
together.
batch Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
PRIMARY KEY
|
|
batch_class.id
|
batch_class_id |
integer |
NOT NULL
Note that this field is largely used for sorting the vouchers. A given batch is NOT restricted to this type.
|
|
|
control_code |
text |
NOT NULL
|
|
|
description |
text |
|
|
|
default_date |
date |
NOT NULL
|
|
|
approved_on |
date |
|
|
entity_employee.entity_id
|
approved_by |
integer |
|
|
entity_employee.entity_id
|
created_by |
integer |
|
|
session.session_id
|
locked_by |
integer |
|
|
|
created_on |
date |
DEFAULT now()
|
batch Constraints
| Name |
Constraint |
| batch_control_code_check |
CHECK ((length(control_code) > 0)) |
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
These values are hard-coded. Please coordinate before adding standard
values. Values from 900 to 999 are reserved for local use.
batch_class Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
UNIQUE
NOT NULL
|
|
|
class |
character varying |
PRIMARY KEY
|
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
Index -
Schema public
budget_info Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
UNIQUE
NOT NULL
|
|
|
start_date |
date |
NOT NULL
|
|
|
end_date |
date |
NOT NULL
|
|
|
reference |
text |
PRIMARY KEY
|
|
|
description |
text |
NOT NULL
|
|
entity.id
|
entered_by |
integer |
NOT NULL
DEFAULT person__get_my_entity_id()
|
|
entity.id
|
approved_by |
integer |
|
|
entity.id
|
obsolete_by |
integer |
|
|
|
entered_at |
timestamp without time zone |
NOT NULL
DEFAULT now()
|
|
|
approved_at |
timestamp without time zone |
|
|
|
obsolete_at |
timestamp without time zone |
|
budget_info Constraints
| Name |
Constraint |
| budget_info_check |
CHECK ((start_date < end_date)) |
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
budget_line Structure
| F-Key |
Name |
Type |
Description |
|
budget_info.id
|
budget_id |
integer |
PRIMARY KEY
|
|
account.id
|
account_id |
integer |
PRIMARY KEY
|
|
|
description |
text |
|
|
|
amount |
numeric |
NOT NULL
|
Index -
Schema public
budget_note Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
integer |
PRIMARY KEY
DEFAULT nextval('note_id_seq'::regclass)
|
|
|
note_class |
integer |
NOT NULL
DEFAULT 6
|
|
|
note |
text |
NOT NULL
|
|
|
vector |
tsvector |
NOT NULL
DEFAULT ''::tsvector
|
|
|
created |
timestamp without time zone |
NOT NULL
DEFAULT now()
|
|
|
created_by |
text |
DEFAULT "session_user"()
|
|
budget_info.id
|
ref_key |
integer |
NOT NULL
|
|
|
subject |
text |
|
Table budget_note Inherits
note,
budget_note Constraints
| Name |
Constraint |
| budget_note_note_class_check |
CHECK ((note_class = 6)) |
Index -
Schema public
Index -
Schema public
Groups of Customers assigned joint discounts.
business Structure
| F-Key |
Name |
Type |
Description |
|
|
id |
serial |
PRIMARY KEY
|
|
|
description |
text |
|
|
|
discount |
numeric |
|
Index -
Schema public
Tracks Projects, Departments, Funds, Etc.
Tables referencing this one via Foreign Key Constraints:
Index -
Schema public
business_unit_ac Structure
| F-Key |
Name |
Type |
Description |
|
acc_trans.entry_id
|
entry_id |
integer |
PRIMARY KEY
|