25 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
44 $this->numero = 50100;
46 $this->rights_class =
'cashdesk';
48 $this->family =
"portal";
49 $this->module_position =
'59';
51 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
54 $this->version =
'dolibarr';
56 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
57 $this->picto =
'cash-register';
60 $this->dirs = array();
63 $this->config_page_url = array(
"cashdesk.php@cashdesk");
66 $this->hidden =
false;
67 $this->depends = array(
'always'=>
"modBanque",
'always'=>
"modFacture",
'always'=>
"modProduct",
'FR'=>
'modBlockedLog');
68 $this->requiredby = array();
69 $this->phpmin = array(5, 4);
70 $this->need_dolibarr_version = array(2, 4);
71 $this->langfiles = array(
"cashdesk");
72 $this->warnings_activation = array(
'FR'=>
'WarningNoteModulePOSForFrenchLaw');
76 $this->
const = array();
79 $this->boxes = array();
82 $this->rights = array();
86 $this->rights[$r][0] = 50101;
87 $this->rights[$r][1] =
'Use Point of sale';
88 $this->rights[$r][2] =
'a';
89 $this->rights[$r][3] = 0;
90 $this->rights[$r][4] =
'run';
93 $this->menus = array();
97 $this->menu[$r] = array(
'fk_menu'=>0,
99 'titre'=>
'PointOfSaleShort',
100 'mainmenu'=>
'cashdesk',
101 'url'=>
'/cashdesk/index.php?user=__USER_LOGIN__',
104 'enabled'=>
'$conf->cashdesk->enabled',
105 'perms'=>
'$user->rights->cashdesk->run',
106 'target'=>
'pointofsale',
134 public function init($options =
'')
139 $this->
remove($options);
141 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.
Class to describe and enable module Point Of Sales.
$conf db name
Only used if Module[ID]Name translation string is not found.
$conf db
API class for accounts.
__construct($db)
Constructor.
init($options= '')
Function called when module is enabled.
_init($array_sql, $options= '')
Enables a module.