28 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
46 $this->numero = 64000;
49 $this->family =
"interface";
50 $this->module_position =
'52';
52 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
54 $this->
description =
"Enable Direct Printing System.";
55 $this->version =
'dolibarr';
56 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
60 $this->picto =
'printer';
63 $this->dirs = array();
66 $this->config_page_url = array(
"printing.php@printing");
69 $this->hidden =
false;
70 $this->depends = array();
71 $this->requiredby = array();
72 $this->conflictwith = array();
73 $this->phpmin = array(5, 4);
74 $this->need_dolibarr_version = array(3, 7, -2);
75 $this->conflictwith = array();
76 $this->langfiles = array(
"printing");
79 $this->
const = array();
82 $this->boxes = array();
85 $this->rights = array();
86 $this->rights_class =
'printing';
97 $this->rights[$r][0] = 64001;
98 $this->rights[$r][1] =
'DirectPrint';
99 $this->rights[$r][2] =
'r';
100 $this->rights[$r][3] = 0;
101 $this->rights[$r][4] =
'read';
104 $this->menus = array();
108 $this->menu[$r] = array(
'fk_menu'=>
'fk_mainmenu=home,fk_leftmenu=admintools',
110 'titre'=>
'MenuDirectPrinting',
111 'url'=>
'/printing/index.php?mainmenu=home&leftmenu=admintools',
114 'enabled'=>
'$conf->printing->enabled && preg_match(\'/^(admintools|all)/\', $leftmenu)',
115 'perms'=>
'$user->rights->printing->read',
</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.
Class to describe and activate module Direct Printing.
$conf db name
Only used if Module[ID]Name translation string is not found.
$conf db
API class for accounts.
__construct($db)
Constructor.