@@ -149,7 +149,7 @@ |
||
149 | 149 | |
150 | 150 | // Permissions |
151 | 151 | $this->rights = array(); // Permission array used by this module |
152 | - $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
152 | + $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
153 | 153 | |
154 | 154 | $this->rights[$r][0] = 63001; |
155 | 155 | $this->rights[$r][1] = 'Read resources'; |
@@ -117,7 +117,7 @@ |
||
117 | 117 | $code = strtoupper(trim($code)); |
118 | 118 | |
119 | 119 | if (empty($code) && $this->code_null && !getDolGlobalString('MAIN_COMPANY_CODE_ALWAYS_REQUIRED')) { |
120 | - $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
120 | + $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
121 | 121 | } elseif (empty($code) && (!$this->code_null || getDolGlobalString('MAIN_COMPANY_CODE_ALWAYS_REQUIRED'))) { |
122 | 122 | $result = -2; |
123 | 123 | } |
@@ -396,7 +396,7 @@ |
||
396 | 396 | /* END MODULEBUILDER EXPORT STOCKTRANSFER */ |
397 | 397 | |
398 | 398 | // Imports profiles provided by this module |
399 | - $r = 1; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
399 | + $r = 1; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
400 | 400 | /* BEGIN MODULEBUILDER IMPORT STOCKTRANSFER */ |
401 | 401 | /* |
402 | 402 | $langs->load("stocktransfer@stocktransfer"); |
@@ -689,7 +689,7 @@ |
||
689 | 689 | $keyforaliasextra = 'extra'; |
690 | 690 | include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php'; |
691 | 691 | $this->export_sql_start[$r] = 'SELECT DISTINCT '; |
692 | - $this->export_sql_end[$r] = ' FROM ' . MAIN_DB_PREFIX . 'societe as s'; |
|
692 | + $this->export_sql_end[$r] = ' FROM ' . MAIN_DB_PREFIX . 'societe as s'; |
|
693 | 693 | if (!empty($user) && !$user->hasRight('societe', 'client', 'voir')) { |
694 | 694 | $this->export_sql_end[$r] .= ' LEFT JOIN ' . MAIN_DB_PREFIX . 'societe_commerciaux as sc ON sc.fk_soc = s.rowid'; |
695 | 695 | } |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | $r = 1; |
249 | 249 | |
250 | 250 | $this->export_code[$r] = $this->rights_class . '_' . $r; |
251 | - $this->export_label[$r] = 'MOs'; // Translation key (used only if key ExportDataset_xxx_z not found) |
|
251 | + $this->export_label[$r] = 'MOs'; // Translation key (used only if key ExportDataset_xxx_z not found) |
|
252 | 252 | $this->export_icon[$r] = 'mrp'; |
253 | 253 | $this->export_fields_array[$r] = array( |
254 | 254 | 'm.rowid' => "Id", |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | /* END MODULEBUILDER IMPORT MO */ |
331 | 331 | $r++; |
332 | 332 | $this->import_code[$r] = $this->rights_class . '_' . $r; |
333 | - $this->import_label[$r] = 'MOs'; // Translation key (used only if key ExportDataset_xxx_z not found) |
|
333 | + $this->import_label[$r] = 'MOs'; // Translation key (used only if key ExportDataset_xxx_z not found) |
|
334 | 334 | $this->import_icon[$r] = 'mrp'; |
335 | 335 | $this->import_entities_array[$r] = array(); // We define here only fields that use a different icon from the one defined in import_icon |
336 | 336 | $this->import_tables_array[$r] = array('m' => MAIN_DB_PREFIX . 'mrp_mo', 'extra' => MAIN_DB_PREFIX . 'mrp_mo_extrafields'); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | // Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',0), |
96 | 96 | // 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0) ); |
97 | 97 | $this->const = array(); // List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 0 or 'allentities') |
98 | - $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
98 | + $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
99 | 99 | |
100 | 100 | $this->const[$r][0] = "HOLIDAY_ADDON"; |
101 | 101 | $this->const[$r][1] = "chaine"; |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | |
159 | 159 | // Permissions |
160 | 160 | $this->rights = array(); // Permission array used by this module |
161 | - $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
161 | + $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
162 | 162 | |
163 | 163 | $this->rights[$r][0] = 20001; // Permission id (must not be already used) |
164 | 164 | $this->rights[$r][1] = 'Read leave requests (yours and your subordinates)'; // Permission label |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | 'type' => 'info', |
117 | 117 | ); |
118 | 118 | } else { |
119 | - $keyforprovider = ''; // @FIXME |
|
119 | + $keyforprovider = ''; // @FIXME |
|
120 | 120 | |
121 | 121 | $this->google_id = getDolGlobalString('OAUTH_GOOGLE_ID'); |
122 | 122 | $this->google_secret = getDolGlobalString('OAUTH_GOOGLE_SECRET'); |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | global $conf; |
259 | 259 | $ret = array(); |
260 | 260 | |
261 | - $keyforprovider = ''; // @FIXME |
|
261 | + $keyforprovider = ''; // @FIXME |
|
262 | 262 | |
263 | 263 | // Token storage |
264 | 264 | $storage = new DoliStorage($this->db, $conf, $keyforprovider); |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | 'contentType' => $contenttype, |
401 | 401 | ); |
402 | 402 | |
403 | - $keyforprovider = ''; // @FIXME |
|
403 | + $keyforprovider = ''; // @FIXME |
|
404 | 404 | |
405 | 405 | // Dolibarr Token storage |
406 | 406 | $storage = new DoliStorage($this->db, $conf, $keyforprovider); |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | $error = 0; |
453 | 453 | $html = ''; |
454 | 454 | |
455 | - $keyforprovider = ''; // @FIXME |
|
455 | + $keyforprovider = ''; // @FIXME |
|
456 | 456 | |
457 | 457 | // Token storage |
458 | 458 | $storage = new DoliStorage($this->db, $conf, $keyforprovider); |
@@ -98,7 +98,7 @@ |
||
98 | 98 | |
99 | 99 | // Permissions |
100 | 100 | $this->rights = array(); // Permission array used by this module |
101 | - $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
101 | + $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
102 | 102 | |
103 | 103 | // Add here list of permission defined by an id, a label, a boolean and two constant strings. |
104 | 104 | // Example: |
@@ -121,7 +121,7 @@ |
||
121 | 121 | |
122 | 122 | |
123 | 123 | // Exports |
124 | - $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
124 | + $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |