27 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
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 =
"Assets module to manage assets module and depreciation charge on Dolibarr";
66 $this->version =
'development';
68 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
72 $this->picto =
'accounting';
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(5, 4);
94 $this->need_dolibarr_version = array(7, 0);
95 $this->warnings_activation = array();
96 $this->warnings_activation_ext = array();
105 $this->
const = array();
108 if (!isset($conf->asset) || !isset($conf->asset->enabled))
110 $conf->asset =
new stdClass();
111 $conf->asset->enabled = 0;
116 $this->tabs = array();
145 $this->dictionaries = array();
150 $this->boxes = array(
168 $this->rights = array();
169 $this->rights_class =
'asset';
173 $this->rights[$r][0] = 51001;
174 $this->rights[$r][1] =
'Read assets';
175 $this->rights[$r][2] =
'r';
176 $this->rights[$r][3] = 0;
177 $this->rights[$r][4] =
'read';
178 $this->rights[$r][5] =
'';
181 $this->rights[$r][0] = 51002;
182 $this->rights[$r][1] =
'Create/Update assets';
183 $this->rights[$r][2] =
'w';
184 $this->rights[$r][3] = 0;
185 $this->rights[$r][4] =
'write';
186 $this->rights[$r][5] =
'';
189 $this->rights[$r][0] = 51003;
190 $this->rights[$r][1] =
'Delete assets';
191 $this->rights[$r][2] =
'd';
192 $this->rights[$r][3] = 0;
193 $this->rights[$r][4] =
'delete';
194 $this->rights[$r][5] =
'';
197 $this->rights[$r][0] = 51005;
198 $this->rights[$r][1] =
'Setup types of asset';
199 $this->rights[$r][2] =
'w';
200 $this->rights[$r][3] = 0;
201 $this->rights[$r][4] =
'setup_advance';
202 $this->rights[$r][5] =
'';
217 public function init($options =
'')
220 $this->
remove($options);
224 return $this->
_init($sql, $options);
</td > param sortfield sortorder printFieldListOption< tdclass="liste_titremaxwidthsearchright"></td ></tr >< trclass="liste_titre">< inputtype="checkbox"onClick="toggle(this)"/> Ref p ref Label p label Duration p duration center DesiredStock p desiredstock right StockLimitShort p seuil_stock_alerte right stock_physique right stock_real_warehouse right Ordered right StockToBuy right SupplierRef right param sortfield sortorder printFieldListTitle warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow StockTooLow help help help< trclass="oddeven">< td >< inputtype="checkbox"class="check"name="choose'.$i.'"></td >< tdclass="nowrap"> stock</td >< td >< inputtype="hidden"name="desc'.$i.'"value="'.dol_escape_htmltag($objp-> description
Only used if Module[ID]Desc translation string is not found.
init($options= '')
Function called when module is enabled.
$conf db name
Only used if Module[ID]Name translation string is not found.
Description and activation class for module FixedAssets.
$conf db
API class for accounts.
__construct($db)
Constructor.
_init($array_sql, $options= '')
Enables a module.