Implemented attachments for Bank Account, and redesign of Bank Accounts to a tabbed...
[fa-stable.git] / includes / sysnames.inc
1 <?php
2 /**********************************************************************
3     Copyright (C) FrontAccounting, LLC.
4         Released under the terms of the GNU General Public License, GPL, 
5         as published by the Free Software Foundation, either version 3 
6         of the License, or (at your option) any later version.
7     This program is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
10     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ***********************************************************************/
12 //----------------------------------------------------------------------------------
13 //      FrontAccounting global system names. They have to be stored separate from
14 //      sys types defines to enable inclusion after every language change
15 //      (which happens for multilanguage bulk reports)
16 //
17 global $systypes_array, $bank_account_types, $bank_transfer_types, 
18         $payment_person_types, $wo_types_array, $wo_cost_types, $class_types,
19         $quick_actions, $quick_entry_types, $stock_types, $tag_types, $bank_owner;
20
21 $systypes_array = array (
22         ST_JOURNAL => _("Journal Entry"),
23         ST_BANKPAYMENT => _("Bank Payment"),
24         ST_BANKDEPOSIT => _("Bank Deposit"),
25         ST_BANKTRANSFER => _("Funds Transfer"),
26         ST_SALESINVOICE => _("Sales Invoice"),
27         ST_CUSTCREDIT => _("Customer Credit Note"),
28         ST_CUSTPAYMENT => _("Customer Payment"),
29         ST_CUSTDELIVERY => _("Delivery Note"),
30         ST_LOCTRANSFER => _("Location Transfer"),
31         ST_INVADJUST => _("Inventory Adjustment"),
32         ST_PURCHORDER => _("Purchase Order"),
33         ST_SUPPINVOICE => _("Supplier Invoice"),
34         ST_SUPPCREDIT => _("Supplier Credit Note"),
35         ST_SUPPAYMENT => _("Supplier Payment"),
36         ST_SUPPRECEIVE => _("Purchase Order Delivery"),
37         ST_WORKORDER => _("Work Order"),
38         ST_MANUISSUE => _("Work Order Issue"),
39         ST_MANURECEIVE => _("Work Order Production"),
40         ST_SALESORDER => _("Sales Order"),
41         ST_SALESQUOTE => _("Sales Quotation"),
42         ST_COSTUPDATE => _("Cost Update"),
43         ST_DIMENSION => _("Dimension"),
44         ST_CUSTOMER => _("Customer"),
45         ST_SUPPLIER => _("Supplier"),
46         ST_ITEM => _("Item"),
47         ST_FIXEDASSET => _("Fixed Asset"),
48         ST_BANKACCOUNT => _("Bank Account"),
49         );
50
51 $fa_systypes_array = array (
52         ST_INVADJUST => _("Fixed Assets Disposal"),
53         ST_COSTUPDATE => _("Fixed Assets Revaluation"),
54         );
55
56 $type_shortcuts = array(
57         ST_JOURNAL => _("GJ"), // general journal
58         ST_BANKPAYMENT => _("BP"),
59         ST_BANKDEPOSIT => _("BD"),
60         ST_BANKTRANSFER => _("BT"),
61         ST_SALESINVOICE => _("SI"),
62         ST_CUSTCREDIT => _("CN"),
63         ST_CUSTPAYMENT => _("CP"),
64         ST_CUSTDELIVERY => _("DN"),
65         ST_LOCTRANSFER => _("IT"), // inventory transfer
66         ST_INVADJUST => _("IA"),
67         ST_PURCHORDER => _("PO"),
68         ST_SUPPINVOICE => _("PI"), // purchase invoice
69         ST_SUPPCREDIT => _("PC"),
70         ST_SUPPAYMENT => _("SP"),
71         ST_SUPPRECEIVE => _("GRN"),
72         ST_WORKORDER => _("WO"),
73         ST_MANUISSUE => _("WI"),
74         ST_MANURECEIVE => _("WP"),
75         ST_SALESORDER => _("SO"),
76         ST_SALESQUOTE => _("SQ"),
77         ST_COSTUPDATE => _("CU"),
78         ST_DIMENSION => _("Dim")
79 );
80
81
82 //----------------------------------------------------------------------------------
83 //              Bank transaction types
84 //
85 $bank_account_types = array (
86         BT_TRANSFER => _("Savings Account"),
87                 _("Chequing Account"),
88                 _("Credit Account"),
89                 _("Cash Account")
90         );
91
92 $bank_transfer_types = array(
93         BT_TRANSFER => _("Transfer"),
94                         _("Cheque"),
95                         _("Credit"),
96                         _("Cash")
97         );
98
99 //----------------------------------------------------------------------------------
100 //      Payment types
101 //
102
103 $payment_person_types = array (
104         PT_MISC => _("Miscellaneous"),
105                                 _("Work Order"),
106                                 _("Customer"),
107                                 _("Supplier"),
108                                 _("Quick Entry")
109         );
110
111 //----------------------------------------------------------------------------------
112 //      Manufacturing types
113 //
114 $wo_types_array = array (
115         WO_ASSEMBLY => _("Assemble"),
116         WO_UNASSEMBLY => _("Unassemble"),
117         WO_ADVANCED => _("Advanced Manufacture")
118         );
119
120 $wo_cost_types = array(
121         WO_LABOUR => _("Labour Cost"),
122         WO_OVERHEAD => _("Overhead Cost"),
123         WO_MATERIALS => _("Materials")
124 );
125
126 //----------------------------------------------------------------------------------
127 //      GL account classes
128 //
129 $class_types = array(
130         CL_ASSETS => _("Assets"),
131         CL_LIABILITIES => _("Liabilities"),
132         CL_EQUITY => _("Equity"),
133         CL_INCOME => _("Income"),
134         CL_COGS => _("Cost of Goods Sold"),
135         CL_EXPENSE => _("Expense"),
136 );
137
138 //----------------------------------------------------------------------------------
139 //      Quick entry types
140 //
141 $quick_actions = array(
142         '=' => _('Remainder'), // post current base amount to GL account
143         'a' => _('Amount'), // post amount to GL account
144         'a+' => _('Amount, increase base'), // post amount to GL account and increase base
145         'a-' => _('Amount, reduce base'), // post amount to GL account and reduce base
146         '%' => _('% amount of base'),   // store acc*amount% to GL account
147         '%+' => _('% amount of base, increase base'),   // ditto & increase base amount
148         '%-' => _('% amount of base, reduce base'),     // ditto & reduce base amount
149         'T' => _('Taxes added'), // post taxes calculated on base amount
150         'T+' => _('Taxes added, increase base'), // ditto & increase base amount
151         'T-' => _('Taxes added, reduce base'), // ditto & reduce base amount
152         't' => _('Taxes included'), // post taxes calculated on base amount
153         't+' => _('Taxes included, increase base'), // ditto & increase base amount
154         't-' => _('Taxes included, reduce base') // ditto & reduce base amount
155 );
156
157 $quick_entry_types = array(
158         QE_DEPOSIT => _("Bank Deposit"),
159         QE_PAYMENT => _("Bank Payment"),
160         QE_JOURNAL => _("Journal Entry"),
161         QE_SUPPINV => _("Supplier Invoice/Credit")
162 );
163
164 //----------------------------------------------------------------------------------
165 // depreciation methods
166 $depreciation_methods = array(
167   'D' => _("Declining balance"),
168   'S' => _("Straight line"),
169   'N' => _("Sum of the Year Digits"),
170   'O' => _("One-time"),
171 );
172
173 //----------------------------------------------------------------------------------
174 // Types of stock items
175 $stock_types = array(
176         'M' => _("Manufactured"),
177         'B' => _("Purchased"),
178         'D' => _("Service")
179 );
180
181 //----------------------------------------------------------------------------------
182
183 $tag_types = array (
184         TAG_ACCOUNT   => _("Account"),
185         TAG_DIMENSION => _("Dimension")
186 );
187
188 //----------------------------------------------------------------------------------
189 // crm contacts categories
190 $sys_crm_cats = array (
191         'cust_branch' => _("Customer branch"),
192         'supplier' => _("Supplier"),
193         'shipper' => _("Shipper"),
194         'company' => _("Company internal")
195 );
196 //----------------------------------------------------------------------------------
197
198 $pterm_types = array(
199         PTT_PRE => _("Prepayment"),
200         PTT_CASH => _("Cash"),
201         PTT_DAYS => _("After No. of Days"),
202         PTT_FOLLOWING => _("Day In Following Month")
203 );
204
205 $tax_algorithms = array( 
206         TCA_LINES => _("Sum per line taxes"), 
207         TCA_TOTALS => _("Taxes from totals")
208 );
209 //----------------------------------------------------------------------------------
210
211 $bank_owner_types = array(
212         BO_UNKNOWN => _("Unknown"),
213         BO_COMPANY => _("Company"),
214         BO_CUSTBRANCH => _("Customer"),
215         BO_SUPPLIER => _("Supplier")
216 );
217
218 // This month array is for use with the last 3 dateformats. 
219 $tmonths = array("", _("Jan"),_("Feb"),_("Mar"),_("Apr"),_("May"),_("Jun"),_("Jul"),_("Aug"),_("Sep"),_("Oct"),_("Nov"),_("Dec"));
220
221 //
222 //      FA supported db backend language settings.
223 //
224 $supported_collations = array(
225   'utf8_xx' => _('Unicode (multilanguage)'),
226   'utf8_is' => _('Icelandic'),
227   'utf8_lv' => _('Latvian'),
228   'utf8_ro' => _('Romanian'),
229   'utf8_sl' => _('Slovenian'),
230   'utf8_pl' => _('Polish'),
231   'utf8_et' => _('Estonian'),
232   'utf8_es' => _('Spanish'), // or 'spanish2',
233   'utf8_sw' => _('Swedish'),
234   'utf8_tr' => _('Turkish'),
235   'utf8_cs' => _('Czech'),
236   'utf8_da' => _('Danish'),
237   'utf8_lt' => _('Lithuanian'),
238   'utf8_sk' => _('Slovak'),
239   'utf8_sp' => _('Spanish (alternative)'),
240   'utf8_fa' => _('Persian'),
241   'utf8_hu' => _('Hungarian'),
242   'utf8_fr' => _('French'),
243   'utf8_it' => _('Italian'),
244 );
245