52f96c64b95a288a23498259281bbd4ebff44a56
[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         );
45
46 $type_shortcuts = array(
47         ST_JOURNAL => _("GJ"), // general journal
48         ST_BANKPAYMENT => _("BP"),
49         ST_BANKDEPOSIT => _("BD"),
50         ST_BANKTRANSFER => _("BT"),
51         ST_SALESINVOICE => _("SI"),
52         ST_CUSTCREDIT => _("CN"),
53         ST_CUSTPAYMENT => _("CP"),
54         ST_CUSTDELIVERY => _("DN"),
55         ST_LOCTRANSFER => _("IT"), // inventory transfer
56         ST_INVADJUST => _("IA"),
57         ST_PURCHORDER => _("PO"),
58         ST_SUPPINVOICE => _("PI"), // purchase invoice
59         ST_SUPPCREDIT => _("PC"),
60         ST_SUPPAYMENT => _("SP"),
61         ST_SUPPRECEIVE => _("GRN"),
62         ST_WORKORDER => _("WO"),
63         ST_MANUISSUE => _("WI"),
64         ST_MANURECEIVE => _("WP"),
65         ST_SALESORDER => _("SO"),
66         ST_SALESQUOTE => _("SQ"),
67         ST_COSTUPDATE => _("CU"),
68         ST_DIMENSION => _("Dim")
69 );
70
71
72 //----------------------------------------------------------------------------------
73 //              Bank transaction types
74 //
75 $bank_account_types = array (
76         BT_TRANSFER => _("Savings Account"),
77                 _("Chequing Account"),
78                 _("Credit Account"),
79                 _("Cash Account")
80         );
81
82 $bank_transfer_types = array(
83         BT_TRANSFER => _("Transfer"),
84                         _("Cheque"),
85                         _("Credit"),
86                         _("Cash")
87         );
88
89 //----------------------------------------------------------------------------------
90 //      Payment types
91 //
92
93 $payment_person_types = array (
94         PT_MISC => _("Miscellaneous"),
95                                 _("Work Order"),
96                                 _("Customer"),
97                                 _("Supplier"),
98                                 _("Quick Entry")
99         );
100
101 //----------------------------------------------------------------------------------
102 //      Manufacturing types
103 //
104 $wo_types_array = array (
105         WO_ASSEMBLY => _("Assemble"),
106         WO_UNASSEMBLY => _("Unassemble"),
107         WO_ADVANCED => _("Advanced Manufacture")
108         );
109
110 $wo_cost_types = array(
111         WO_LABOUR => _("Labour Cost"),
112         WO_OVERHEAD => _("Overhead Cost"),
113         WO_MATERIALS => _("Materials")
114 );
115
116 //----------------------------------------------------------------------------------
117 //      GL account classes
118 //
119 $class_types = array(
120         CL_ASSETS => _("Assets"),
121         CL_LIABILITIES => _("Liabilities"),
122         CL_EQUITY => _("Equity"),
123         CL_INCOME => _("Income"),
124         CL_COGS => _("Cost of Goods Sold"),
125         CL_EXPENSE => _("Expense"),
126 );
127
128 //----------------------------------------------------------------------------------
129 //      Quick entry types
130 //
131 $quick_actions = array(
132         '=' => _('Remainder'), // post current base amount to GL account
133         'a' => _('Amount'), // post amount to GL account
134         'a+' => _('Amount, increase base'), // post amount to GL account and increase base
135         'a-' => _('Amount, reduce base'), // post amount to GL account and reduce base
136         '%' => _('% amount of base'),   // store acc*amount% to GL account
137         '%+' => _('% amount of base, increase base'),   // ditto & increase base amount
138         '%-' => _('% amount of base, reduce base'),     // ditto & reduce base amount
139         'T' => _('Taxes added'), // post taxes calculated on base amount
140         'T+' => _('Taxes added, increase base'), // ditto & increase base amount
141         'T-' => _('Taxes added, reduce base'), // ditto & reduce base amount
142         't' => _('Taxes included'), // post taxes calculated on base amount
143         't+' => _('Taxes included, increase base'), // ditto & increase base amount
144         't-' => _('Taxes included, reduce base') // ditto & reduce base amount
145 );
146
147 $quick_entry_types = array(
148         QE_DEPOSIT => _("Bank Deposit"),
149         QE_PAYMENT => _("Bank Payment"),
150         QE_JOURNAL => _("Journal Entry"),
151         QE_SUPPINV => _("Supplier Invoice/Credit")
152 );
153
154 //----------------------------------------------------------------------------------
155 // Types of stock items
156 $stock_types = array(
157         'M' => _("Manufactured"),
158         'B' => _("Purchased"),
159         'D' => _("Service")
160 );
161
162 //----------------------------------------------------------------------------------
163
164 $tag_types = array (
165         TAG_ACCOUNT   => _("Account"),
166         TAG_DIMENSION => _("Dimension")
167 );
168
169 //----------------------------------------------------------------------------------
170 // crm contacts categories
171 $sys_crm_cats = array (
172         'cust_branch' => _("Customer branch"),
173         'supplier' => _("Supplier"),
174         'shipper' => _("Shipper"),
175         'company' => _("Company internal")
176 );
177 //----------------------------------------------------------------------------------
178
179 $pterm_types = array(
180         PTT_PRE => _("Prepayment"),
181         PTT_CASH => _("Cash"),
182         PTT_DAYS => _("After No. of Days"),
183         PTT_FOLLOWING => _("Day In Following Month")
184 );
185
186 $tax_algorithms = array( 
187         TCA_LINES => _("Sum per line taxes"), 
188         TCA_TOTALS => _("Taxes from totals")
189 );
190 //----------------------------------------------------------------------------------
191
192 $bank_owner_types = array(
193         BO_UNKNOWN => _("Unknown"),
194         BO_COMPANY => _("Company"),
195         BO_CUSTBRANCH => _("Customer"),
196         BO_SUPPLIER => _("Supplier")
197 );
198
199 // This month array is for use with the last 3 dateformats. 
200 $tmonths = array("", _("Jan"),_("Feb"),_("Mar"),_("Apr"),_("May"),_("Jun"),_("Jul"),_("Aug"),_("Sep"),_("Oct"),_("Nov"),_("Dec"));
201
202 ?>