Creating Accounts Files
| Languages: |
English | Italiano | 日本語 | Translate this article... |
Contents |
Introduction
This document explains how to create, import and configure the accounting schema and the chart of accounts. You can import the accounting schema and chart of accounts as a single file. The accounting schema import is completed at the Initial Client Setup process. The import of the client accounts can be done afterwards. To know more about these imports take a look at the Creating New Entity tutorial. The Openbravo localization project has created some accounting schemas for different countries, so you may be able to tailor an existing one to suit your needs rather than starting a new one.
Once you have a new chart of accounts created is very important that you do the Chart of Accounts testing process to verify that it is correct.
File structure: defining the file
The file is a plain text file (with commas (,) as field separator) that defines all the accounts. When the file is used at Initial Client Setup the application only reads the lines required to do the account schema but not the ones for the default client accounts which Openbravo ERP uses when posting to the General Ledger.
To ensure that your chart of accounts is imported correctly, the file must be encoded using UTF-8 charset.
You can download an already existing chart of accounts for other country and use it as a template to adapt it to your needs, or you can create the entire file from scratch.
Each field of the file comprises one line.
| Field Name | Description | Mandatory | Length and type |
|---|---|---|---|
| Account Name | The name of the account | Yes | Up to 60 characters. |
| Account Description | Brief description for the account | No | Up to 255 characters. |
| Account Value | This is the key for the account and must be unique. In most circumstances it is the account number | Yes | Up to 20 alphanumeric characters |
| Account Type | Defines the type of the account. It can contain any text, but only the first character is used. This first character must be one of the following:
| Yes | Any length but only the first character is used. |
| Account Sign | Defines the sign of the account in the reports. An account has got two columns: debit and credit. Amounts are added to one of the columns in each entry. At the end of the day, one account will have got two amounts: debit and credit amounts. The sign of the whole account (due to debit and credit movements) can be established following one of the next rules:
| Yes | Any length but only the first character is used. |
| Account Document | If this is a default account used in accounting schema type Yes. Otherwise, type No. The fields with this field set to Yes are processed during the Initial Client Setup proccess | Yes | Must be Yes,No or Empty. |
| Account Summary | This field is defines the account as a summary account. Summary accounts are parents in the hierarchy of accounts and used only for reporting You cannot post to a summary account | Yes | Must be Yes, No or Empty. |
| Account Parent | Defines the account's parent account. The parent is ignored during the Initial Client Setup process | No | Must be the search key of a valid summary account |
| Account Level | Defines the level of the account. The last level that correspond with Account Summary = N, must be S (Subaccount). Any other level can be added to the existing ones. As they are defined in the dictionary as a reference list, you can edit this list and modify the values shown for this field, setting all the new values you need. The only thing that must be noted is that the lowest level must be 'S' Subaccount, as accounting reports uses this value.Following levels are defined by default in the Openbravo 2.35mp1:
| No | Unlimited but only the first letter is used. |
| Operands | If the account is the product of a calculation between other accounts, you can define the operands here. For example, if the value of account A is the result of adding the value of accounts B and C, the value of the operand column in the chart of accounts would be B+C. This feature works only if referred operands are already inserted before, otherwise system can not find them when trying to insert them. | No | Unlimited |
Which accounts must be defined?
How you define your accounts file depends primarily on whether there are official rules in your country. For example, in countries like France or Spain there are standard charts of accounts and general accounting reports. In this case you must define a chart of accounts with the structure of the general accounting reports that include all the accounts. Other countries such as the USA have no defined plan, so you must define a general plan that suits your enterprise. The structure of the file must include the Balance Sheet (with Assets, Liabilities and Owner’s Equity) and a Profit and Loss report (with Expenses and Revenues).
You can use the chart of accounts for the USA as an example to build the chart of accounts for your country.
Accounts hierarchy
The general accounting report has a hierarchical structure. The Balance Sheet has two sides, following the equation Assets = Liabilities + Owner’s equity. The Asset side of the balance sheet is composed of different types of assets: Current Assets and Long Term Assets, and each one can have different sub-accounts.
The levels of this hierarchy can differ from one schema to another; the only requirement is that the last level, where the accounting is done, must start with the letter S (from Sub-account).
The Parent column of the accounts file creates the hierarchical relationship between accounts. This column specifies which account is the parent of the account.
In the US chart of accounts you can see the structure in the worksheet and how it produces the General Accounting Reports.
Default accounts
Openbravo ERP makes most account entries automatically. To enable automatic account entries, it is necessary to define the default accounts. With this information Openbravo ERP builds the accounting entry with the account number defined in the chart of accounts.
The chart of accounts must include the defaults that are explained here.
The defaults are defined in the chart of accounts file with a constant that must be written literally in the default column. The following table has an explanation of these accounts.
Note: these defaults are the ones that are to keep in Openbravo ERP R2.35 version. In 2.34 the next account database fields are marked as NOT NULLABLE within the C_ACCTSCHEMA_DEFAULT table:
- W_INVENTORY_ACCT
- W_REVALUATION_ACCT
- WITHHOLDING_ACCT
- PJ_WIP_ACCT
- B_PAYMENTSELECT_ACCT
And C_ACCTSCHEMA_GL table:
- INTERCOMPANYDUEFROM_ACCT
- PPVOFFSET_ACCT
You can assign them to any account not currently in use.
| Default | Type | Description | Example of name of the account.Example name, as used in the USA chart of accounts |
|---|---|---|---|
| A_ACCUMDEPRECIATION_ACCT | Asset | Account used by the amortization process to show the depreciation of an asset | Accumulated Depreciation |
| A_DEPRECIATION_ACCT | Expense | Account used by the amortization process to define the lost of value caused by the depreciation of an asset | Depreciation Expense |
| B_ASSET_ACCT | Asset | The account used for the movements of a bank account | Bank Account |
| B_EXPENSE_ACCT | Expense | Charges made by the bank | Bank charge |
| B_INTRANSIT_ACCT | Asset | Account used for the period between the settlement and the bank statement registration | Bank in transit |
| B_REVALUATIONGAIN_ACCT | Revenue | Account for the revenues due to gain for revaluations of foreign money | Bank revaluation gain |
| B_REVALUATIONLOSS_ACCT | Expense | Account for the expenses due to loss for revaluations of foreign money | Bank revaluation loss |
| C_RECEIVABLE_ACCT | Asset | Account for the payments to be received from an invoice. They are created in the invoice process and cancelled when the payment is made or cancelled | Accounts receivable |
| CB_ASSET_ACCT | Asset | Account for the petty cash used by the company | Petty Cash |
| CB_CASHTRANSFER_ACCT | Asset | Account used for the money transferred from or to petty cash | Petty Cash In-Transfer |
| CB_DIFFERENCES_ACCT | Expense | Accounts for differences in petty cash | Petty Cash differences |
| CB_EXPENSE_ACCT | Memo | Account for petty cash unknown expenses, it?s used as a temporary account | Cash book expenses |
| CB_RECEIPT_ACCT | Memo | Account for petty cash unknown revenues, it?s used as a temporary account | Cash book receipts |
| CH_EXPENSE_ACCT | Memo | Account for other unknown expenses, it?s used as a temporary account | Charge Expenses |
| CURRENCYBALANCING_ACCT | Expense | Account used for currency balancing (rounding) | Currency balancing |
| DEFAULT_ACCT | Expense | Account used when there is not a defined account for other default | Default account |
| INCOMESUMMARY_ACCT | Owner's Equity | Account used to calculate the income for the period. Also it is used to show the income in the balance sheet before the closing process | Income summary |
| NOTINVOICEDRECEIPTS_ACCT | Liability | Account used for the receipts that haven not been invoiced yet. It is used only if the company is configured to account shipments | Not invoiced receipts |
| P_ASSET_ACCT | Asset | Account used for fixed assets | Product asset |
| P_COGS_ACCT | Expense | Account for the cost of the good sold. It is used in the shipment of the product | Cost of goods sold |
| P_EXPENSE_ACCT | Expense | Account used for the expenses from purchase invoices | Service costs |
| P_REVENUE_ACCT | Revenue | Account used for the revenues from sale invoices | Sales |
| RETAINEDEARNING_ACCT | Owner's Equity | Account used for profits and losses of previous periods. It receives the value of income summary if it is defined | Retained earnings |
| SUSPENSEBALANCING_ACCT | Memo | Account used in the accounting process if the accounting entry is not balanced and it is defined to produce an accounting entry | Suspense Balancing |
| SUSPENSEERROR_ACCT | Memo | Account used when the accounting process produces an error and it is defined to produce an accounting entry | Suspense Error |
| T_CREDIT_ACCT | Asset | Tax that is due to the company | Tax Receivables |
| T_DUE_ACCT | Liability | Tax owed by the company | Tax Due |
| V_LIABILITY_ACCT | Liability | Account for the payments due for an invoice. They are created in the invoice process and cancelled when the payment is made or cancelled | Accounts payable |
| W_DIFFERENCES_ACCT | Expense | Gains or losses due to differences in the inventory | Inventory loss |
| WRITEOFF_ACCT | Expense | Account used for irrecoverable amounts | Bad debts |
Category: Localization ERP

