See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
//----------------------------------------------------------------------------------
+// FrontAccounting system transaction types
+//
define('ST_JOURNAL', 0);
define('ST_BANKPAYMENT', 1);
define('ST_CUSTCREDIT', 11);
define('ST_CUSTPAYMENT', 12);
define('ST_CUSTDELIVERY', 13);
+
define('ST_LOCTRANSFER', 16);
define('ST_INVADJUST', 17);
+
define('ST_PURCHORDER', 18);
define('ST_SUPPINVOICE', 20);
define('ST_SUPPCREDIT', 21);
define('ST_SUPPRECEIVE', 25);
define('ST_WORKORDER', 26);
+define('ST_MANUISSUE', 28);
+define('ST_MANURECEIVE', 29);
+
define('ST_SALESORDER', 30);
define('ST_SALESQUOTE', 32);
define('ST_COSTUPDATE', 35);
define('ST_DIMENSION', 40);
-define('ST_MANUISSUE', 28);
-define('ST_MANURECEIVE', 29);
-
$systypes_array = array (
ST_JOURNAL => _("Journal Entry"),
ST_BANKPAYMENT => _("Bank Payment"),
);
//----------------------------------------------------------------------------------
+// Bank transaction types
+//
define('BT_TRANSFER', 0);
define('BT_CHEQUE', 1);
define('BT_CREDIT', 2);
);
//----------------------------------------------------------------------------------
-/* Menu tabs */
-$tabs = array('orders'=>_("Sales"), 'AP'=>_("Purchases"), 'stock'=>_("Items and Inventory"), 'manuf'=>_("Manufacturing"),
- 'proj'=>_("Dimensions"), 'GL'=>_("Banking and General Ledger"), 'system'=>_("Setup"));
-
-//----------------------------------------------------------------------------------
+// Core FA menu tabs (modules)
+//
+$tabs = array('orders'=>_("Sales"),
+ 'AP'=>_("Purchases"),
+ 'stock'=>_("Items and Inventory"),
+ 'manuf'=>_("Manufacturing"),
+ 'proj'=>_("Dimensions"),
+ 'GL'=>_("Banking and General Ledger"),
+ 'system'=>_("Setup"));
include_once($path_to_root . "/manufacturing/includes/manufacturing_db.inc");
include_once($path_to_root . "/purchasing/includes/purchasing_db.inc");
include_once($path_to_root . "/sales/includes/sales_db.inc");
include_once($path_to_root . "/dimensions/includes/dimensions_db.inc");
-
+//----------------------------------------------------------------------------------
+// Payment types
+//
define('PT_MISC', 0);
define('PT_WORKORDER', 1);
define('PT_CUSTOMER', 2);
_("Quick Entry")
);
-
function payment_person_currency($type, $person_id) {
switch ($type)
{
}
//----------------------------------------------------------------------------------
-
+// Manufacturing types
+//
define('WO_ASSEMBLY', 0);
define('WO_UNASSEMBLY', 1);
define('WO_ADVANCED', 2);
WO_ADVANCED => _("Advanced Manufacture")
);
-//----------------------------------------------------------------------------------
+define('WO_LABOUR', 0);
+define('WO_OVERHEAD', 1);
+
+$wo_cost_types = array(
+ WO_LABOUR => _("Labour Cost"),
+ WO_OVERHEAD => _("Overhead Cost"),
+);
+//----------------------------------------------------------------------------------
+// GL account classes
+//
define('CL_NONE', 0); // for backward compatibility
define('CL_ASSETS', 1);
define('CL_LIABILITIES', 2);
else
return ((($ctype >= CL_LIABILITIES && $ctype <= CL_INCOME) || $ctype == CL_NONE) ? -1 : 1);
}
-define('WO_LABOUR', 0);
-define('WO_OVERHEAD', 1);
-
-$wo_cost_types = array(
- WO_LABOUR => _("Labour Cost"),
- WO_OVERHEAD => _("Overhead Cost"),
-);
-
+//----------------------------------------------------------------------------------
+// Quick entry types
+//
$quick_actions = array(
'=' => _('Remainder'), // post current base amount to GL account
'a' => _('Amount'), // post amount to GL account
QE_SUPPINV => _("Supplier Invoice/Credit")
);
+//----------------------------------------------------------------------------------
+// Special option values for various list selectors.
+//
+define('ANY_TEXT', '');
+define('ANY_NUMERIC', -1);
+define('ALL_TEXT', '');
+define('ALL_NUMERIC', -1);
+
+
+//----------------------------------------------------------------------------------
// Types of stock items
$stock_types = array(
'M' => _("Manufactured"),
'D' => _("Service")
);
-/*
- Special option values for various list selectors.
-*/
-define('ANY_TEXT', '');
-define('ANY_NUMERIC', -1);
-define('ALL_TEXT', '');
-define('ALL_NUMERIC', -1);
+//----------------------------------------------------------------------------------
+
+define('TAG_ACCOUNT', 1);
+define('TAG_DIMENSION', 2);
+
+$tag_types = array (
+ TAG_ACCOUNT => _("Account"),
+ TAG_DIMENSION => _("Dimension")
+);
?>
\ No newline at end of file