48 $this->numero = 51000;
52 $this->family =
"financial";
54 $this->module_position =
'70';
59 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
63 $this->descriptionlong =
"Asset module to manage fixed asset module and depreciation charge";
68 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
72 $this->picto =
'asset';
78 $this->module_parts = array();
82 $this->dirs = array(
"/asset/temp");
85 $this->config_page_url = array(
"setup.php@asset");
88 $this->hidden =
false;
89 $this->depends = array();
90 $this->requiredby = array();
91 $this->conflictwith = array();
92 $this->langfiles = array(
"assets");
93 $this->phpmin = array(7, 0);
94 $this->need_dolibarr_version = array(7, 0);
95 $this->warnings_activation = array();
96 $this->warnings_activation_ext = array();
108 $this->
const = array();
109 $this->
const[1] = array(
112 "mod_asset_standard",
113 "Name of numbering rules for fixed asset",
122 $conf->asset->enabled = 0;
127 $this->tabs = array();
156 $this->dictionaries = array();
161 $this->boxes = array(
179 $this->rights = array();
180 $this->rights_class =
'asset';
184 $this->rights[$r][0] = 51001;
185 $this->rights[$r][1] =
'Read assets';
186 $this->rights[$r][2] =
'r';
187 $this->rights[$r][3] = 0;
188 $this->rights[$r][4] =
'read';
189 $this->rights[$r][5] =
'';
192 $this->rights[$r][0] = 51002;
193 $this->rights[$r][1] =
'Create/Update assets';
194 $this->rights[$r][2] =
'w';
195 $this->rights[$r][3] = 0;
196 $this->rights[$r][4] =
'write';
197 $this->rights[$r][5] =
'';
200 $this->rights[$r][0] = 51003;
201 $this->rights[$r][1] =
'Delete assets';
202 $this->rights[$r][2] =
'd';
203 $this->rights[$r][3] = 0;
204 $this->rights[$r][4] =
'delete';
205 $this->rights[$r][5] =
'';
208 $this->rights[$r][0] = 51004;
209 $this->rights[$r][1] =
'Read asset models';
210 $this->rights[$r][2] =
'r';
211 $this->rights[$r][3] = 0;
212 $this->rights[$r][4] =
'model_advance';
213 $this->rights[$r][5] =
'read';
216 $this->rights[$r][0] = 51005;
217 $this->rights[$r][1] =
'Create/Update asset models';
218 $this->rights[$r][2] =
'w';
219 $this->rights[$r][3] = 0;
220 $this->rights[$r][4] =
'model_advance';
221 $this->rights[$r][5] =
'write';
224 $this->rights[$r][0] = 51006;
225 $this->rights[$r][1] =
'Delete asset models';
226 $this->rights[$r][2] =
'd';
227 $this->rights[$r][3] = 0;
228 $this->rights[$r][4] =
'model_advance';
229 $this->rights[$r][5] =
'delete';