X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Ftypes.inc;h=f9acce38cc845a187c0935d7c961f271c20777be;hb=7796f55d85412cbc2904b0577b419d9625958257;hp=675ecb770f5f18f0cd1ab17d1433a4d7faed5435;hpb=286e6233d6d7d63fbaafea42475ecbd5f4cf0dd0;p=fa-stable.git diff --git a/includes/types.inc b/includes/types.inc index 675ecb77..f9acce38 100644 --- a/includes/types.inc +++ b/includes/types.inc @@ -10,6 +10,8 @@ See the License here . ***********************************************************************/ //---------------------------------------------------------------------------------- +// FrontAccounting system transaction types +// define('ST_JOURNAL', 0); define('ST_BANKPAYMENT', 1); @@ -20,8 +22,10 @@ define('ST_SALESINVOICE', 10); 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); @@ -29,15 +33,15 @@ define('ST_SUPPAYMENT', 22); 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"), @@ -64,6 +68,8 @@ $systypes_array = array ( ); //---------------------------------------------------------------------------------- +// Bank transaction types +// define('BT_TRANSFER', 0); define('BT_CHEQUE', 1); define('BT_CREDIT', 2); @@ -84,17 +90,23 @@ $bank_transfer_types = array( ); //---------------------------------------------------------------------------------- -/* 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); @@ -110,7 +122,6 @@ $payment_person_types = array ( _("Quick Entry") ); - function payment_person_currency($type, $person_id) { switch ($type) { @@ -174,7 +185,8 @@ function payment_person_has_items($type) { } //---------------------------------------------------------------------------------- - +// Manufacturing types +// define('WO_ASSEMBLY', 0); define('WO_UNASSEMBLY', 1); define('WO_ADVANCED', 2); @@ -185,8 +197,17 @@ $wo_types_array = array ( 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); @@ -212,14 +233,9 @@ function get_class_type_convert($ctype) 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 @@ -248,6 +264,16 @@ $quick_entry_types = array( 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"), @@ -255,12 +281,14 @@ $stock_types = array( '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