Incorrect Journal Balance (sales invoice) when many decimals in tax and price.
[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         );
47
48 $fa_systypes_array = array (
49         ST_INVADJUST => _("Fixed Assets Disposal"),
50         ST_COSTUPDATE => _("Fixed Assets Revaluation"),
51         );
52
53 $type_shortcuts = array(
54         ST_JOURNAL => _("GJ"), // general journal
55         ST_BANKPAYMENT => _("BP"),
56         ST_BANKDEPOSIT => _("BD"),
57         ST_BANKTRANSFER => _("BT"),
58         ST_SALESINVOICE => _("SI"),
59         ST_CUSTCREDIT => _("CN"),
60         ST_CUSTPAYMENT => _("CP"),
61         ST_CUSTDELIVERY => _("DN"),
62         ST_LOCTRANSFER => _("IT"), // inventory transfer
63         ST_INVADJUST => _("IA"),
64         ST_PURCHORDER => _("PO"),
65         ST_SUPPINVOICE => _("PI"), // purchase invoice
66         ST_SUPPCREDIT => _("PC"),
67         ST_SUPPAYMENT => _("SP"),
68         ST_SUPPRECEIVE => _("GRN"),
69         ST_WORKORDER => _("WO"),
70         ST_MANUISSUE => _("WI"),
71         ST_MANURECEIVE => _("WP"),
72         ST_SALESORDER => _("SO"),
73         ST_SALESQUOTE => _("SQ"),
74         ST_COSTUPDATE => _("CU"),
75         ST_DIMENSION => _("Dim")
76 );
77
78
79 //----------------------------------------------------------------------------------
80 //              Bank transaction types
81 //
82 $bank_account_types = array (
83         BT_TRANSFER => _("Savings Account"),
84                 _("Chequing Account"),
85                 _("Credit Account"),
86                 _("Cash Account")
87         );
88
89 $bank_transfer_types = array(
90         BT_TRANSFER => _("Transfer"),
91                         _("Cheque"),
92                         _("Credit"),
93                         _("Cash")
94         );
95
96 //----------------------------------------------------------------------------------
97 //      Payment types
98 //
99
100 $payment_person_types = array (
101         PT_MISC => _("Miscellaneous"),
102                                 _("Work Order"),
103                                 _("Customer"),
104                                 _("Supplier"),
105                                 _("Quick Entry")
106         );
107
108 //----------------------------------------------------------------------------------
109 //      Manufacturing types
110 //
111 $wo_types_array = array (
112         WO_ASSEMBLY => _("Assemble"),
113         WO_UNASSEMBLY => _("Unassemble"),
114         WO_ADVANCED => _("Advanced Manufacture")
115         );
116
117 $wo_cost_types = array(
118         WO_LABOUR => _("Labour Cost"),
119         WO_OVERHEAD => _("Overhead Cost"),
120         WO_MATERIALS => _("Materials")
121 );
122
123 //----------------------------------------------------------------------------------
124 //      GL account classes
125 //
126 $class_types = array(
127         CL_ASSETS => _("Assets"),
128         CL_LIABILITIES => _("Liabilities"),
129         CL_EQUITY => _("Equity"),
130         CL_INCOME => _("Income"),
131         CL_COGS => _("Cost of Goods Sold"),
132         CL_EXPENSE => _("Expense"),
133 );
134
135 //----------------------------------------------------------------------------------
136 //      Quick entry types
137 //
138 $quick_actions = array(
139         '=' => _('Remainder'), // post current base amount to GL account
140         'a' => _('Amount'), // post amount to GL account
141         'a+' => _('Amount, increase base'), // post amount to GL account and increase base
142         'a-' => _('Amount, reduce base'), // post amount to GL account and reduce base
143         '%' => _('% amount of base'),   // store acc*amount% to GL account
144         '%+' => _('% amount of base, increase base'),   // ditto & increase base amount
145         '%-' => _('% amount of base, reduce base'),     // ditto & reduce base amount
146         'T' => _('Taxes added'), // post taxes calculated on base amount
147         'T+' => _('Taxes added, increase base'), // ditto & increase base amount
148         'T-' => _('Taxes added, reduce base'), // ditto & reduce base amount
149         't' => _('Taxes included'), // post taxes calculated on base amount
150         't+' => _('Taxes included, increase base'), // ditto & increase base amount
151         't-' => _('Taxes included, reduce base') // ditto & reduce base amount
152 );
153
154 $quick_entry_types = array(
155         QE_DEPOSIT => _("Bank Deposit"),
156         QE_PAYMENT => _("Bank Payment"),
157         QE_JOURNAL => _("Journal Entry"),
158         QE_SUPPINV => _("Supplier Invoice/Credit")
159 );
160
161 //----------------------------------------------------------------------------------
162 // depreciation methods
163 $depreciation_methods = array(
164   'D' => _("Declining balance"),
165   'S' => _("Straight line"),
166   'N' => _("Sum of the Year Digits"),
167   'O' => _("One-time"),
168 );
169
170 //----------------------------------------------------------------------------------
171 // Types of stock items
172 $stock_types = array(
173         'M' => _("Manufactured"),
174         'B' => _("Purchased"),
175         'D' => _("Service")
176 );
177
178 //----------------------------------------------------------------------------------
179
180 $tag_types = array (
181         TAG_ACCOUNT   => _("Account"),
182         TAG_DIMENSION => _("Dimension")
183 );
184
185 //----------------------------------------------------------------------------------
186 // crm contacts categories
187 $sys_crm_cats = array (
188         'cust_branch' => _("Customer branch"),
189         'supplier' => _("Supplier"),
190         'shipper' => _("Shipper"),
191         'company' => _("Company internal")
192 );
193 //----------------------------------------------------------------------------------
194
195 $pterm_types = array(
196         PTT_PRE => _("Prepayment"),
197         PTT_CASH => _("Cash"),
198         PTT_DAYS => _("After No. of Days"),
199         PTT_FOLLOWING => _("Day In Following Month")
200 );
201
202 $tax_algorithms = array( 
203         TCA_LINES => _("Sum per line taxes"), 
204         TCA_TOTALS => _("Taxes from totals")
205 );
206 //----------------------------------------------------------------------------------
207
208 $bank_owner_types = array(
209         BO_UNKNOWN => _("Unknown"),
210         BO_COMPANY => _("Company"),
211         BO_CUSTBRANCH => _("Customer"),
212         BO_SUPPLIER => _("Supplier")
213 );
214
215 // This month array is for use with the last 3 dateformats. 
216 $tmonths = array("", _("Jan"),_("Feb"),_("Mar"),_("Apr"),_("May"),_("Jun"),_("Jul"),_("Aug"),_("Sep"),_("Oct"),_("Nov"),_("Dec"));
217
218 //
219 //      FA supported db backend language settings.
220 //
221 $supported_collations = array(
222   'utf8_xx' => _('Unicode (multilanguage)'),
223   'utf8_is' => _('Icelandic'),
224   'utf8_lv' => _('Latvian'),
225   'utf8_ro' => _('Romanian'),
226   'utf8_sl' => _('Slovenian'),
227   'utf8_pl' => _('Polish'),
228   'utf8_et' => _('Estonian'),
229   'utf8_es' => _('Spanish'), // or 'spanish2',
230   'utf8_sw' => _('Swedish'),
231   'utf8_tr' => _('Turkish'),
232   'utf8_cs' => _('Czech'),
233   'utf8_da' => _('Danish'),
234   'utf8_lt' => _('Lithuanian'),
235   'utf8_sk' => _('Slovak'),
236   'utf8_sp' => _('Spanish (alternative)'),
237   'utf8_fa' => _('Persian'),
238   'utf8_hu' => _('Hungarian'),
239   'utf8_fr' => _('French'),
240   'utf8_it' => _('Italian'),
241 );
242