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";
66 $this->version =
'dolibarr';
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();
104 $this->
const = array();
105 $this->
const[1] = array(
106 "ASSET_DEPRECIATION_DURATION_PER_YEAR",
109 "Duration per year to calculate depreciation. In some case, can be 365 days",
115 $this->
const[2] = array(
118 "mod_asset_standard",
119 "Name of numbering rules for fixed asset",
128 $conf->asset->enabled = 0;
133 $this->tabs = array();
162 $this->dictionaries = array();
167 $this->boxes = array(
185 $this->rights = array();
186 $this->rights_class =
'asset';
190 $this->rights[$r][0] = 51001;
191 $this->rights[$r][1] =
'Read assets';
192 $this->rights[$r][2] =
'r';
193 $this->rights[$r][3] = 0;
194 $this->rights[$r][4] =
'read';
195 $this->rights[$r][5] =
'';
198 $this->rights[$r][0] = 51002;
199 $this->rights[$r][1] =
'Create/Update assets';
200 $this->rights[$r][2] =
'w';
201 $this->rights[$r][3] = 0;
202 $this->rights[$r][4] =
'write';
203 $this->rights[$r][5] =
'';
206 $this->rights[$r][0] = 51003;
207 $this->rights[$r][1] =
'Delete assets';
208 $this->rights[$r][2] =
'd';
209 $this->rights[$r][3] = 0;
210 $this->rights[$r][4] =
'delete';
211 $this->rights[$r][5] =
'';
214 $this->rights[$r][0] = 51004;
215 $this->rights[$r][1] =
'Read asset models';
216 $this->rights[$r][2] =
'r';
217 $this->rights[$r][3] = 0;
218 $this->rights[$r][4] =
'model_advance';
219 $this->rights[$r][5] =
'read';
222 $this->rights[$r][0] = 51005;
223 $this->rights[$r][1] =
'Create/Update asset models';
224 $this->rights[$r][2] =
'w';
225 $this->rights[$r][3] = 0;
226 $this->rights[$r][4] =
'model_advance';
227 $this->rights[$r][5] =
'write';
230 $this->rights[$r][0] = 51006;
231 $this->rights[$r][1] =
'Delete asset models';
232 $this->rights[$r][2] =
'd';
233 $this->rights[$r][3] = 0;
234 $this->rights[$r][4] =
'model_advance';
235 $this->rights[$r][5] =
'delete';