Fix position of modules is string on 2 digits
This commit is contained in:
parent
c0d45430c4
commit
e24117e75b
@ -162,10 +162,10 @@ foreach ($modulesdir as $dir)
|
||||
$familykey = $objMod->family;
|
||||
}
|
||||
|
||||
$moduleposition = ($objMod->module_position?$objMod->module_position:'500');
|
||||
if ($moduleposition == 500 && ($objMod->isCoreOrExternalModule() == 'external'))
|
||||
$moduleposition = ($objMod->module_position?$objMod->module_position:'50');
|
||||
if ($moduleposition == '50' && ($objMod->isCoreOrExternalModule() == 'external'))
|
||||
{
|
||||
$moduleposition = 800;
|
||||
$moduleposition = '80'; // External modules at end by default
|
||||
}
|
||||
|
||||
$orders[$i] = $familyinfo[$familykey]['position']."_".$familykey."_".$moduleposition."_".$j; // Sort by family, then by module position then number
|
||||
|
||||
@ -370,10 +370,10 @@ foreach ($modulesdir as $dir)
|
||||
$familykey = $objMod->family;
|
||||
}
|
||||
|
||||
$moduleposition = ($objMod->module_position?$objMod->module_position:'500');
|
||||
if ($moduleposition == 500 && ($objMod->isCoreOrExternalModule() == 'external'))
|
||||
$moduleposition = ($objMod->module_position?$objMod->module_position:'50');
|
||||
if ($moduleposition == '50' && ($objMod->isCoreOrExternalModule() == 'external'))
|
||||
{
|
||||
$moduleposition = 800;
|
||||
$moduleposition = '80'; // External modules at end by default
|
||||
}
|
||||
|
||||
// Add list of warnings to show into arrayofwarnings and arrayofwarningsext
|
||||
|
||||
@ -83,10 +83,9 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
||||
public $familyinfo;
|
||||
|
||||
/**
|
||||
* @var int Module position
|
||||
* @since 3.9.0
|
||||
* @var string Module position on 2 digits
|
||||
*/
|
||||
public $module_position=500;
|
||||
public $module_position='50';
|
||||
|
||||
/**
|
||||
* @var string Module name
|
||||
|
||||
@ -45,7 +45,7 @@ class modAccounting extends DolibarrModules
|
||||
$this->numero = 50400;
|
||||
|
||||
$this->family = "financial";
|
||||
$this->module_position = 610;
|
||||
$this->module_position = '61';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i', '', get_class($this));
|
||||
$this->description = "Advanced accounting management";
|
||||
|
||||
@ -49,7 +49,7 @@ class modAdherent extends DolibarrModules
|
||||
$this->numero = 310;
|
||||
|
||||
$this->family = "hr";
|
||||
$this->module_position = 20;
|
||||
$this->module_position = '20';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Management of members of a foundation or association";
|
||||
|
||||
@ -51,7 +51,7 @@ class modAgenda extends DolibarrModules
|
||||
$this->numero = 2400;
|
||||
|
||||
$this->family = "projects";
|
||||
$this->module_position = 15;
|
||||
$this->module_position = '15';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Follow events or rendez-vous. Record manual events into Agendas or let application record automatic events for log tracking.";
|
||||
|
||||
@ -53,7 +53,7 @@ class modAsset extends DolibarrModules
|
||||
// It is used to group modules by family in module setup page
|
||||
$this->family = "financial";
|
||||
// Module position in the family on 2 digits ('01', '10', '20', ...)
|
||||
$this->module_position = '90';
|
||||
$this->module_position = '70';
|
||||
// Gives the possibility to the module, to provide his own family info and position of this family (Overwrite $this->family and $this->module_position. Avoid this)
|
||||
//$this->familyinfo = array('myownfamily' => array('position' => '01', 'label' => $langs->trans("MyOwnFamily")));
|
||||
|
||||
|
||||
@ -49,7 +49,7 @@ class modBanque extends DolibarrModules
|
||||
$this->numero = 85;
|
||||
|
||||
$this->family = "financial";
|
||||
$this->module_position = 510;
|
||||
$this->module_position = '51';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des comptes financiers de type Comptes bancaires ou postaux";
|
||||
|
||||
@ -47,7 +47,7 @@ class modBlockedLog extends DolibarrModules
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "base";
|
||||
// Module position in the family on 2 digits ('01', '10', '20', ...)
|
||||
$this->module_position = '90';
|
||||
$this->module_position = '75';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Enable a log on some business events into a non reversible log. This module may be mandatory for some countries.";
|
||||
|
||||
@ -46,7 +46,7 @@ class modCashDesk extends DolibarrModules
|
||||
$this->rights_class = 'cashdesk';
|
||||
|
||||
$this->family = "portal";
|
||||
$this->module_position = 10;
|
||||
$this->module_position = '10';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "CashDesk module";
|
||||
|
||||
@ -45,7 +45,7 @@ class modCategorie extends DolibarrModules
|
||||
$this->numero = 1780;
|
||||
|
||||
$this->family = "technic";
|
||||
$this->module_position = 20;
|
||||
$this->module_position = '20';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des categories (produits, clients, fournisseurs...)";
|
||||
|
||||
@ -46,7 +46,7 @@ class modCollab extends DolibarrModules
|
||||
// Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "portal";
|
||||
$this->module_position = 51;
|
||||
$this->module_position = '51';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Enable the public collaboration features, like shared pad, shared online sheets, etc...";
|
||||
|
||||
@ -51,7 +51,7 @@ class modCommande extends DolibarrModules
|
||||
$this->numero = 25;
|
||||
|
||||
$this->family = "crm";
|
||||
$this->module_position = 30;
|
||||
$this->module_position = '30';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des commandes clients";
|
||||
|
||||
@ -48,7 +48,7 @@ class modComptabilite extends DolibarrModules
|
||||
$this->numero = 10;
|
||||
|
||||
$this->family = "financial";
|
||||
$this->module_position = 600;
|
||||
$this->module_position = '60';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion sommaire de comptabilite";
|
||||
|
||||
@ -47,6 +47,7 @@ class modContrat extends DolibarrModules
|
||||
$this->numero = 54;
|
||||
|
||||
$this->family = "crm";
|
||||
$this->module_position = '35';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des contrats de services";
|
||||
|
||||
@ -58,7 +58,7 @@ class modDataPolicies extends DolibarrModules {
|
||||
// It is used to group modules by family in module setup page
|
||||
$this->family = "hr";
|
||||
// Module position in the family on 2 digits ('01', '10', '20', ...)
|
||||
$this->module_position = '90';
|
||||
$this->module_position = '70';
|
||||
// Gives the possibility to the module, to provide his own family info and position of this family (Overwrite $this->family and $this->module_position. Avoid this)
|
||||
//$this->familyinfo = array('myownfamily' => array('position' => '01', 'label' => $langs->trans("MyOwnFamily")));
|
||||
// Module label (no space allowed), used if translation string 'ModuledatapoliciesName' not found (MyModue is name of module).
|
||||
@ -68,8 +68,6 @@ class modDataPolicies extends DolibarrModules {
|
||||
// Used only if file README.md and README-LL.md not found.
|
||||
$this->descriptionlong = "";
|
||||
|
||||
$this->editor_name = 'Inovea Conseil';
|
||||
|
||||
// Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated' or a version string like 'x.y.z'
|
||||
$this->version = 'development';
|
||||
// Key used in llx_const table to save module status enabled/disabled (where datapolicies is value of property name of module in uppercase)
|
||||
@ -136,10 +134,6 @@ class modDataPolicies extends DolibarrModules {
|
||||
);
|
||||
|
||||
$country = explode(":", $conf->global->MAIN_INFO_SOCIETE_COUNTRY);
|
||||
if ($country[0] == $conf->entity && $country[2] == "France")
|
||||
$this->editor_url = "https://www.inovea-conseil.com (<a target='_blank' href='https://www.dolibiz.com/wp-content/uploads/attestation/attestation-" . $this->name . "-" . $this->version . ".pdf'>Attestation NF525</a>)";
|
||||
else
|
||||
$this->editor_url = 'https://www.inovea-conseil.com';
|
||||
|
||||
// Some keys to add into the overwriting translation tables
|
||||
/* $this->overwrite_translation = array(
|
||||
|
||||
@ -52,7 +52,7 @@ class modDav extends DolibarrModules
|
||||
// It is used to group modules by family in module setup page
|
||||
$this->family = "interface";
|
||||
// Module position in the family on 2 digits ('01', '10', '20', ...)
|
||||
$this->module_position = '90';
|
||||
$this->module_position = '75';
|
||||
// Gives the possibility to the module, to provide his own family info and position of this family (Overwrite $this->family and $this->module_position. Avoid this)
|
||||
//$this->familyinfo = array('myownfamily' => array('position' => '01', 'label' => $langs->trans("MyOwnFamily")));
|
||||
|
||||
|
||||
@ -45,7 +45,7 @@ class modDeplacement extends DolibarrModules
|
||||
$this->numero = 75 ;
|
||||
|
||||
$this->family = "hr";
|
||||
$this->module_position = 41;
|
||||
$this->module_position = '41';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des notes de frais et deplacements"; // Si traduction Module75Desc non trouvee
|
||||
|
||||
@ -45,7 +45,7 @@ class modDocumentGeneration extends DolibarrModules
|
||||
$this->numero = 1520;
|
||||
|
||||
$this->family = "technic";
|
||||
$this->module_position = 80;
|
||||
$this->module_position = '80';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Direct mail document generation";
|
||||
|
||||
@ -48,7 +48,7 @@ class modECM extends DolibarrModules
|
||||
// Family can be 'crm','financial','hr','projects','product','ecm','technic','other'
|
||||
// It is used to sort modules in module setup page
|
||||
$this->family = "ecm";
|
||||
$this->module_position = 10;
|
||||
$this->module_position = '10';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
// Module description used if translation string 'ModuleXXXDesc' not found (XXX is id value)
|
||||
|
||||
@ -49,7 +49,7 @@ class modExpedition extends DolibarrModules
|
||||
$this->numero = 80;
|
||||
|
||||
$this->family = "crm";
|
||||
$this->module_position = 40;
|
||||
$this->module_position = '40';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des expeditions";
|
||||
|
||||
@ -44,7 +44,7 @@ class modExpenseReport extends DolibarrModules
|
||||
$this->numero = 770;
|
||||
|
||||
$this->family = "hr";
|
||||
$this->module_position = 40;
|
||||
$this->module_position = '40';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
|
||||
|
||||
@ -44,7 +44,7 @@ class modExport extends DolibarrModules
|
||||
$this->numero = 240;
|
||||
|
||||
$this->family = "technic";
|
||||
$this->module_position = 72;
|
||||
$this->module_position = '72';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Outils d'exports de donnees Dolibarr (via un assistant)";
|
||||
|
||||
@ -48,7 +48,7 @@ class modFacture extends DolibarrModules
|
||||
$this->numero = 30;
|
||||
|
||||
$this->family = "financial";
|
||||
$this->module_position = 10;
|
||||
$this->module_position = '10';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i', '', get_class($this));
|
||||
$this->description = "Gestion des factures";
|
||||
|
||||
@ -45,7 +45,7 @@ class modFckeditor extends DolibarrModules
|
||||
$this->numero = 2000;
|
||||
|
||||
$this->family = "technic";
|
||||
$this->module_position = 20;
|
||||
$this->module_position = '20';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Editeur WYSIWYG";
|
||||
|
||||
@ -50,6 +50,7 @@ class modFicheinter extends DolibarrModules
|
||||
$this->numero = 70;
|
||||
|
||||
$this->family = "crm";
|
||||
$this->module_position = '45';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des fiches d'intervention";
|
||||
|
||||
@ -50,7 +50,7 @@ class modFournisseur extends DolibarrModules
|
||||
// Family can be 'crm','financial','hr','projects','product','ecm','technic','other'
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "srm";
|
||||
$this->module_position = 10;
|
||||
$this->module_position = '10';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des fournisseurs";
|
||||
|
||||
@ -54,7 +54,7 @@ class modHoliday extends DolibarrModules
|
||||
// Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "hr";
|
||||
$this->module_position = 30;
|
||||
$this->module_position = '30';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
|
||||
@ -95,28 +95,28 @@ class modHoliday extends DolibarrModules
|
||||
// 2=>array('MAIN_MODULE_MYMODULE_NEEDSMARTY','chaine',1,'Constant to say module need smarty',0)
|
||||
$this->const = array(); // List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 0 or 'allentities')
|
||||
$r=0;
|
||||
|
||||
|
||||
$this->const[$r][0] = "HOLIDAY_ADDON";
|
||||
$this->const[$r][1] = "chaine";
|
||||
$this->const[$r][2] = "mod_holiday_madonna";
|
||||
$this->const[$r][3] = 'Nom du gestionnaire de numerotation des congés';
|
||||
$this->const[$r][4] = 0;
|
||||
$r++;
|
||||
|
||||
|
||||
$this->const[$r][0] = "HOLIDAY_ADDON_PDF";
|
||||
$this->const[$r][1] = "chaine";
|
||||
$this->const[$r][2] = "celebrate";
|
||||
$this->const[$r][3] = 'Name of PDF model of holiday';
|
||||
$this->const[$r][4] = 0;
|
||||
$r++;
|
||||
|
||||
|
||||
$this->const[$r][0] = "HOLIDAY_ADDON_PDF_ODT_PATH";
|
||||
$this->const[$r][1] = "chaine";
|
||||
$this->const[$r][2] = "DOL_DATA_ROOT/doctemplates/holiday";
|
||||
$this->const[$r][3] = "";
|
||||
$this->const[$r][4] = 0;
|
||||
$r++;
|
||||
|
||||
|
||||
// Array to add new pages in new tabs
|
||||
//$this->tabs[] = array('data'=>'user:+paidholidays:CPTitreMenu:holiday:$user->rights->holiday->read:/holiday/list.php?mainmenu=hrm&id=__ID__'); // We avoid to get one tab for each module. RH data are already in RH tab.
|
||||
$this->tabs[] = array(); // To add a new tab identified by code tabname1
|
||||
|
||||
@ -44,7 +44,7 @@ class modImport extends DolibarrModules
|
||||
$this->numero = 250;
|
||||
|
||||
$this->family = "technic";
|
||||
$this->module_position = 70;
|
||||
$this->module_position = '70';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Outils d'imports de donnees Dolibarr (via un assistant)";
|
||||
|
||||
@ -44,7 +44,7 @@ class modLabel extends DolibarrModules
|
||||
$this->numero = 60;
|
||||
|
||||
$this->family = "technic";
|
||||
$this->module_position = 80;
|
||||
$this->module_position = '75';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des etiquettes";
|
||||
|
||||
@ -48,7 +48,7 @@ class modMargin extends DolibarrModules
|
||||
// Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "financial";
|
||||
$this->module_position = 550;
|
||||
$this->module_position = '55';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
|
||||
|
||||
@ -54,7 +54,7 @@ class modMultiCurrency extends DolibarrModules
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "technic";
|
||||
// Module position in the family
|
||||
$this->module_position = 40;
|
||||
$this->module_position = '40';
|
||||
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i', '', get_class($this));
|
||||
|
||||
@ -47,7 +47,7 @@ class modOauth extends DolibarrModules
|
||||
// Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "interface";
|
||||
$this->module_position = 510;
|
||||
$this->module_position = '51';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
|
||||
|
||||
@ -52,7 +52,7 @@ class modOpenSurvey extends DolibarrModules
|
||||
// Family can be 'crm','financial','hr','projects','product','technic','other'
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "portal";
|
||||
$this->module_position = 40;
|
||||
$this->module_position = '40';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
// Module description used if translation string 'ModuleXXXDesc' not found (XXX is value MyModule)
|
||||
|
||||
@ -48,7 +48,7 @@ class modPrelevement extends DolibarrModules
|
||||
$this->numero = 57;
|
||||
|
||||
$this->family = "financial";
|
||||
$this->module_position = 520;
|
||||
$this->module_position = '52';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des Prelevements";
|
||||
|
||||
@ -47,7 +47,7 @@ class modPrinting extends DolibarrModules
|
||||
// Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "interface";
|
||||
$this->module_position = 520;
|
||||
$this->module_position = '52';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
|
||||
|
||||
@ -50,7 +50,7 @@ class modProduct extends DolibarrModules
|
||||
$this->numero = 50;
|
||||
|
||||
$this->family = "products";
|
||||
$this->module_position = 20;
|
||||
$this->module_position = '20';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Product management";
|
||||
|
||||
@ -46,7 +46,7 @@ class modProductBatch extends DolibarrModules
|
||||
$this->numero = 39000;
|
||||
|
||||
$this->family = "products";
|
||||
$this->module_position = 45;
|
||||
$this->module_position = '45';
|
||||
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Batch number, eat-by and sell-by date management module";
|
||||
|
||||
@ -49,7 +49,7 @@ class modProjet extends DolibarrModules
|
||||
$this->numero = 400;
|
||||
|
||||
$this->family = "projects";
|
||||
$this->module_position = 10;
|
||||
$this->module_position = '10';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des projets";
|
||||
|
||||
@ -49,7 +49,7 @@ class modPropale extends DolibarrModules
|
||||
$this->numero = 20;
|
||||
|
||||
$this->family = "crm";
|
||||
$this->module_position = 20;
|
||||
$this->module_position = '20';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des propositions commerciales";
|
||||
|
||||
@ -47,7 +47,7 @@ class modReceiptPrinter extends DolibarrModules
|
||||
// Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "interface";
|
||||
$this->module_position = 530;
|
||||
$this->module_position = '53';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
|
||||
|
||||
@ -55,7 +55,7 @@ class modResource extends DolibarrModules
|
||||
// Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "projects";
|
||||
$this->module_position = 20;
|
||||
$this->module_position = '20';
|
||||
// Module label (no space allowed)
|
||||
// used if translation string 'ModuleXXXName' not found
|
||||
// (where XXX is value of numeric property 'numero' of module)
|
||||
|
||||
@ -48,7 +48,7 @@ class modService extends DolibarrModules
|
||||
$this->numero = 53;
|
||||
|
||||
$this->family = "products";
|
||||
$this->module_position = 30;
|
||||
$this->module_position = '30';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Service management";
|
||||
|
||||
@ -49,7 +49,7 @@ class modSociete extends DolibarrModules
|
||||
$this->numero = 1;
|
||||
|
||||
$this->family = "crm";
|
||||
$this->module_position = 10;
|
||||
$this->module_position = '10';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des sociétés et contacts";
|
||||
|
||||
@ -48,7 +48,7 @@ class modStock extends DolibarrModules
|
||||
$this->numero = 52;
|
||||
|
||||
$this->family = "products";
|
||||
$this->module_position = 40;
|
||||
$this->module_position = '40';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des stocks";
|
||||
@ -75,9 +75,9 @@ class modStock extends DolibarrModules
|
||||
// Constants
|
||||
$this->const = array();
|
||||
$r=0;
|
||||
|
||||
|
||||
$this->const[$r] = array('STOCK_ALLOW_NEGATIVE_TRANSFER','chaine','1','',1);
|
||||
|
||||
|
||||
$r++;
|
||||
$this->const[$r][0] = "STOCK_ADDON_PDF";
|
||||
$this->const[$r][1] = "chaine";
|
||||
@ -349,8 +349,8 @@ class modStock extends DolibarrModules
|
||||
'UPDATE llx_product p SET p.stock= (SELECT SUM(ps.reel) FROM llx_product_stock ps WHERE ps.fk_product = p.rowid);'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Function called when module is enabled.
|
||||
* The init function add constants, boxes, permissions and menus (defined in constructor) into Dolibarr database.
|
||||
|
||||
@ -55,7 +55,7 @@ class modTicket extends DolibarrModules
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "crm";
|
||||
// Module position in the family
|
||||
$this->module_position = 500;
|
||||
$this->module_position = '60';
|
||||
// Module label (no space allowed)
|
||||
// used if translation string 'ModuleXXXName' not found
|
||||
// (where XXX is value of numeric property 'numero' of module)
|
||||
|
||||
@ -46,7 +46,7 @@ class modUser extends DolibarrModules
|
||||
$this->numero = 0;
|
||||
|
||||
$this->family = "hr"; // Family for module (or "base" if core module)
|
||||
$this->module_position = 10;
|
||||
$this->module_position = '10';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Gestion des utilisateurs (requis)";
|
||||
|
||||
@ -46,7 +46,7 @@ class modWebsite extends DolibarrModules
|
||||
// Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
|
||||
// It is used to group modules in module setup page
|
||||
$this->family = "portal";
|
||||
$this->module_position = 50;
|
||||
$this->module_position = '50';
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
$this->name = preg_replace('/^mod/i','',get_class($this));
|
||||
$this->description = "Enable to build and serve public web sites with CMS features";
|
||||
|
||||
@ -55,7 +55,7 @@ class modMyModule extends DolibarrModules
|
||||
$this->family = "other";
|
||||
// Module position in the family on 2 digits ('01', '10', '20', ...)
|
||||
$this->module_position = '90';
|
||||
// Gives the possibility to the module, to provide his own family info and position of this family (Overwrite $this->family and $this->module_position. Avoid this)
|
||||
// Gives the possibility for the module, to provide his own family info and position of this family (Overwrite $this->family and $this->module_position. Avoid this)
|
||||
//$this->familyinfo = array('myownfamily' => array('position' => '01', 'label' => $langs->trans("MyOwnFamily")));
|
||||
|
||||
// Module label (no space allowed), used if translation string 'ModuleMyModuleName' not found (MyModule is name of module).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user