27 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
48 $this->numero = 50150;
50 $this->rights_class =
'takepos';
54 $this->family =
"portal";
56 $this->module_position =
'60';
61 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
63 $this->
description =
"Point of sales module (Touch Screen POS)";
65 $this->descriptionlong =
"Point Of Sales (compliant with touch screen)";
68 $this->version =
'dolibarr';
70 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
74 $this->picto =
'cash-register';
80 $this->module_parts = array(
94 $this->dirs = array();
97 $this->config_page_url = array(
"setup.php@takepos");
100 $this->hidden =
false;
101 $this->depends = array(
'always1'=>
"modBanque",
'always2'=>
"modFacture",
'always3'=>
"modProduct",
'always4'=>
'modCategorie',
'FR1'=>
'modBlockedLog');
102 $this->requiredby = array();
103 $this->conflictwith = array();
104 $this->langfiles = array(
"cashdesk");
105 $this->phpmin = array(5, 4);
106 $this->need_dolibarr_version = array(4, 0);
107 $this->warnings_activation = array(
'FR'=>
'WarningNoteModulePOSForFrenchLaw');
108 $this->warnings_activation_ext = array();
117 $this->
const = array(
122 if (!isset($conf->takepos) || !isset($conf->takepos->enabled))
124 $conf->takepos =
new stdClass();
125 $conf->takepos->enabled = 0;
130 $this->tabs = array();
159 $this->dictionaries = array();
178 $this->boxes = array(
187 $this->cronjobs = array(
196 $this->rights = array();
201 $this->rights[$r][0] = 50151;
202 $this->rights[$r][1] =
'Use Point Of Sale';
203 $this->rights[$r][2] =
'a';
204 $this->rights[$r][3] = 0;
205 $this->rights[$r][4] =
'run';
209 $this->menu = array();
215 $this->menu[$r++] = array(
'fk_menu'=>
'',
217 'titre'=>
'PointOfSaleShort',
218 'mainmenu'=>
'takepos',
220 'url'=>
'/takepos/index.php',
222 'position'=>1000 + $r,
223 'enabled'=>
'$conf->takepos->enabled',
224 'perms'=>
'$user->rights->takepos->run',
266 public function init($options =
'')
270 dolibarr_set_const($db,
"TAKEPOS_PRINT_METHOD",
"browser",
'chaine', 0,
'', $conf->entity);
277 $this->
remove($options);
279 return $this->
_init($sql, $options);
290 public function remove($options =
'')
294 return $this->
_remove($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.
dolibarr_set_const($db, $name, $value, $type= 'chaine', $visible=0, $note= '', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
$conf db name
Only used if Module[ID]Name translation string is not found.
$conf db
API class for accounts.
_remove($array_sql, $options= '')
Disable function.
Class to describe and enable module TakePos.
init($options= '')
Function called when module is enabled.
_init($array_sql, $options= '')
Enables a module.
__construct($db)
Constructor.
_load_tables($reldir)
Create tables and keys required by module.