28 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
46 $this->family =
"technic";
47 $this->module_position =
'78';
49 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
50 $this->
description =
"Direct mail document generation";
52 $this->version =
'development';
54 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
55 $this->picto =
'email';
58 $this->dirs = array(
"/documentgeneration/temp");
64 $this->depends = array();
65 $this->requiredby = array();
66 $this->conflictwith = array();
67 $this->langfiles = array(
"orders",
"bills",
"companies",
"mails");
71 $this->
const = array();
74 $this->boxes = array();
77 $this->rights = array();
78 $this->rights_class =
'document';
82 $this->rights[$r][0] = 1521;
83 $this->rights[$r][1] =
'Lire les documents';
84 $this->rights[$r][2] =
'r';
85 $this->rights[$r][3] = 0;
86 $this->rights[$r][4] =
'lire';
89 $this->rights[$r][0] = 1522;
90 $this->rights[$r][1] =
'Supprimer les documents clients';
91 $this->rights[$r][2] =
'd';
92 $this->rights[$r][3] = 0;
93 $this->rights[$r][4] =
'supprimer';
105 public function init($options =
'')
110 $this->
remove($options);
_init($array_sql, $options='')
Enables a module.
Class to describe and enable module Document.
init($options='')
Function called when module is enabled.
__construct($db)
Constructor.
if(isModEnabled('invoice') && $user->hasRight('facture', 'lire')) if((isModEnabled('fournisseur') &&!getDolGlobalString('MAIN_USE_NEW_SUPPLIERMOD') && $user->hasRight("fournisseur", "facture", "lire"))||(isModEnabled('supplier_invoice') && $user->hasRight("supplier_invoice", "lire"))) if(isModEnabled('don') && $user->hasRight('don', 'lire')) if(isModEnabled('tax') && $user->hasRight('tax', 'charges', 'lire')) if(isModEnabled('invoice') &&isModEnabled('order') && $user->hasRight("commande", "lire") &&!getDolGlobalString('WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER')) $sql
Social contributions to pay.
print *****$script_file(".$version.") pid cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
$conf db name
Only used if Module[ID]Name translation string is not found.