PhreeBooks contains several example chart of accounts that can be entered during setup. There is also a provision to import your own chart of accounts during the set-up process. Your custom chart of accounts file should be placed into the directory /modules/install/charts before the setup script is executed. The file requirements are as follows:
File Type: Text (.php extension)
Format: php syntax as follows:
Comments - preceeded by a //
Variable $chart_description - defines the title of the chart of accounts
Autoincrement Array Variable $chart_array - contains three elements (1) Account Number (alphanumeric), (2) Description, (3) Account_type code.
The Account types are:
0 - Cash
2 - Accounts Receivable
4 - Inventory
6 - Other Current Assets
8 - Fixed Assets
10 - Accumulated Depreciation
12 - Other Assets
20 - Accounts Payable
22 - Other Current Liabilities
24 - Long Term Liabilities
30 - Income
32 - Cost of Sales
34 - Expenses
40 - Equity - Doesn\'t Close
42 - Equity - Gets Closed
44 - Equity - Retained Earnings
The example below is a snippet from the USA General Retail chart of accounts:
<?php
// Chart of Accounts for USA simple General company
$chart_description = "US - General store simple Chart of Accounts";
$chart_array = array();
$chart_array[] = array('1060','Checking Account','0');
$chart_array[] = array('1065','Petty Cash','0');
$chart_array[] = array('1200','Accounts Receivables','2');
$chart_array[] = array('1205','Allowance for doubtful accounts','2');
.
.
.
$chart_array[] = array('5800','Licenses','34');
$chart_array[] = array('5810','Foreign Exchange Loss','34');
?>