Contact categories support added.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 11 May 2010 11:55:11 +0000 (11:55 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 11 May 2010 11:55:11 +0000 (11:55 +0000)
includes/access_levels.inc
includes/sysnames.inc

index 797f374e010ca1eefe0428c92d5d7109e4b03747..709e46f33d23844ee5cf7cff3b605bf1b90485c4 100644 (file)
@@ -110,6 +110,7 @@ $security_areas =array(
        'SA_INVENTORYMOVETYPE'  => array(SS_SETUP|11, _("Inventory movement types")),
        'SA_WORKCENTRES' => array(SS_SETUP|12, _("Manufacture work centres")),
        'SA_FORMSETUP' => array(SS_SETUP|13, _("Forms setup")),
+       'SA_CRMCATEGORY' => array(SS_SETUP|14, _("Contact categories")),
 //
 // Special and common functions
 //
@@ -298,7 +299,7 @@ function get_access_extensions($id) {
        $security_sections = $security_areas = array();
        
        if (isset($ext['acc_file']))
-               include($path_to_root.($ext['type'] == 'plugin' ? '/modules/':'/').$ext['path'].'/'.$ext['acc_file']);
+               include($path_to_root.($ext['type'] == 'plugin' ? '/modules/':'/').$ext['path'].'/'.$ext['acc_file']);
 
        return array($security_areas, $security_sections);
 }
index 705311082a84319a06805ab0870d98fbef208b64..a60c6c947a4a58054d43658b724f70055d12d0a8 100644 (file)
@@ -139,4 +139,13 @@ $tag_types = array (
        TAG_DIMENSION => _("Dimension")
 );
 
+//----------------------------------------------------------------------------------
+// crm contacts categories
+$sys_crm_cats = array (
+       'cust_branch' => _("Customer branch"),
+       'supplier' => _("Supplier"),
+       'shipper' => _("Shipper"),
+       'company' => _("Company internal")
+);
+
 ?>
\ No newline at end of file