27 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
48 $this->numero = 62000;
50 $this->rights_class =
'incoterm';
53 $this->family =
"srm";
54 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
56 $this->version =
'dolibarr';
58 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
59 $this->picto =
'generic';
61 $this->module_parts = array();
62 $this->dirs = array();
64 $this->config_page_url = array();
67 $this->hidden =
false;
68 $this->depends = array();
69 $this->requiredby = array();
70 $this->conflictwith = array();
71 $this->phpmin = array(5, 4);
72 $this->need_dolibarr_version = array(3, 0);
73 $this->langfiles = array(
"incoterm");
76 array(
'INCOTERM_ACTIVATE',
'chaine', 0,
'Description de INCOTERM_ACTIVATE')
79 $this->tabs = array();
82 if (!isset($conf->incoterm->enabled))
84 $conf->incoterm =
new stdClass();
85 $conf->incoterm->enabled = 0;
87 $this->dictionaries = array(
89 'tabname'=>array(MAIN_DB_PREFIX.
"c_incoterms"),
90 'tablib'=>array(
"Incoterms"),
91 'tabsql'=>array(
'SELECT rowid, code, libelle, active FROM '.MAIN_DB_PREFIX.
'c_incoterms'),
92 'tabsqlsort'=>array(
"rowid ASC"),
93 'tabfield'=>array(
"code,libelle"),
94 'tabfieldvalue'=>array(
"code,libelle"),
95 'tabfieldinsert'=>array(
"code,libelle"),
96 'tabrowid'=>array(
"rowid"),
97 'tabcond'=>array($conf->incoterm->enabled)
100 $this->boxes = array();
104 $this->rights = array();
108 $this->menus = array();
__construct($db)
Constructor.
</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.
$conf db name
Only used if Module[ID]Name translation string is not found.
$conf db
API class for accounts.
Description and activation class for module MyModule.