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)
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;
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")
46 //----------------------------------------------------------------------------------
47 // Bank transaction types
49 $bank_account_types = array (
50 BT_TRANSFER => _("Savings Account"),
51 _("Chequing Account"),
56 $bank_transfer_types = array(
57 BT_TRANSFER => _("Transfer"),
63 //----------------------------------------------------------------------------------
67 $payment_person_types = array (
68 PT_MISC => _("Miscellaneous"),
75 //----------------------------------------------------------------------------------
76 // Manufacturing types
78 $wo_types_array = array (
79 WO_ASSEMBLY => _("Assemble"),
80 WO_UNASSEMBLY => _("Unassemble"),
81 WO_ADVANCED => _("Advanced Manufacture")
84 $wo_cost_types = array(
85 WO_LABOUR => _("Labour Cost"),
86 WO_OVERHEAD => _("Overhead Cost"),
89 //----------------------------------------------------------------------------------
93 CL_ASSETS => _("Assets"),
94 CL_LIABILITIES => _("Liabilities"),
95 CL_EQUITY => _("Equity"),
96 CL_INCOME => _("Income"),
97 CL_COGS => _("Cost of Goods Sold"),
98 CL_EXPENSE => _("Expense"),
101 //----------------------------------------------------------------------------------
104 $quick_actions = array(
105 '=' => _('Remainder'), // post current base amount to GL account
106 'a' => _('Amount'), // post amount to GL account
107 'a+' => _('Amount, increase base'), // post amount to GL account and increase base
108 'a-' => _('Amount, reduce base'), // post amount to GL account and reduce base
109 '%' => _('% amount of base'), // store acc*amount% to GL account
110 '%+' => _('% amount of base, increase base'), // ditto & increase base amount
111 '%-' => _('% amount of base, reduce base'), // ditto & reduce base amount
112 'T' => _('Taxes added'), // post taxes calculated on base amount
113 'T+' => _('Taxes added, increase base'), // ditto & increase base amount
114 'T-' => _('Taxes added, reduce base'), // ditto & reduce base amount
115 't' => _('Taxes included'), // post taxes calculated on base amount
116 't+' => _('Taxes included, increase base'), // ditto & increase base amount
117 't-' => _('Taxes included, reduce base') // ditto & reduce base amount
120 $quick_entry_types = array(
121 QE_DEPOSIT => _("Bank Deposit"),
122 QE_PAYMENT => _("Bank Payment"),
123 QE_JOURNAL => _("Journal Entry"),
124 QE_SUPPINV => _("Supplier Invoice/Credit")
127 //----------------------------------------------------------------------------------
128 // Types of stock items
129 $stock_types = array(
130 'M' => _("Manufactured"),
131 'B' => _("Purchased"),
135 //----------------------------------------------------------------------------------
138 TAG_ACCOUNT => _("Account"),
139 TAG_DIMENSION => _("Dimension")
142 //----------------------------------------------------------------------------------
143 // crm contacts categories
144 $sys_crm_cats = array (
145 'cust_branch' => _("Customer branch"),
146 'supplier' => _("Supplier"),
147 'shipper' => _("Shipper"),
148 'company' => _("Company internal")
150 //----------------------------------------------------------------------------------
152 $pterm_types = array(
153 PTT_PRE => _("Prepayment"),
154 PTT_CASH => _("Cash"),
155 PTT_DAYS => _("After No. of Days"),
156 PTT_FOLLOWING => _("Day In Following Month")