@@ -164,7 +164,7 @@ |
||
164 | 164 | $maxfilesizearray = getMaxFileSizeArray(); |
165 | 165 | $maxmin = $maxfilesizearray['maxmin']; |
166 | 166 | if ($maxmin > 0) { |
167 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
167 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
168 | 168 | } |
169 | 169 | $texte .= ' <input type="file" name="uploadfile">'; |
170 | 170 | $texte .= '<input type="hidden" value="TICKET_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * Dolibarr version of the loaded document |
35 | 35 | * @var string |
36 | 36 | */ |
37 | - public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr' |
|
37 | + public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr' |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @var string Error code (or message) |
@@ -99,11 +99,11 @@ |
||
99 | 99 | |
100 | 100 | // Permissions |
101 | 101 | $this->rights = array(); // Permission array used by this module |
102 | - $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
102 | + $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
103 | 103 | |
104 | 104 | // Main menu entries |
105 | 105 | $this->menu = array(); // List of menus to add |
106 | - $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
106 | + $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
107 | 107 | |
108 | 108 | // left menu entry |
109 | 109 | $this->menu[$r] = array( |
@@ -105,10 +105,10 @@ |
||
105 | 105 | |
106 | 106 | // Permissions |
107 | 107 | $this->rights = array(); // Permission array used by this module |
108 | - $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
108 | + $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
109 | 109 | |
110 | 110 | // Main menu entries |
111 | 111 | $this->menu = array(); // List of menus to add |
112 | - $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
112 | + $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
113 | 113 | } |
114 | 114 | } |
@@ -100,7 +100,7 @@ |
||
100 | 100 | if (preg_match("/^export_(.*)\.modules\.php$/i", $file, $reg)) { |
101 | 101 | $moduleid = $reg[1]; |
102 | 102 | if ($moduleid == 'csv') { |
103 | - continue; // This may happen if on old file export_csv.modules.php was not correctly deleted |
|
103 | + continue; // This may happen if on old file export_csv.modules.php was not correctly deleted |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | // Loading Class |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | |
201 | 201 | // Exports |
202 | 202 | //-------- |
203 | - $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
203 | + $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
204 | 204 | |
205 | 205 | // Export warehouses |
206 | 206 | $r++; |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | 'e.phone' => 'Text', 'e.fax' => 'Text', 'e.statut' => 'Text', 'pe.rowid' => 'List:entrepot:ref:rowid:stock', 'pe.ref' => 'Text' |
220 | 220 | ); |
221 | 221 | $this->export_entities_array[$r] = array(); // We define here only fields that use another icon that the one defined into export_icon |
222 | - $this->export_aggregate_array[$r] = array(); // TODO Not used yet |
|
222 | + $this->export_aggregate_array[$r] = array(); // TODO Not used yet |
|
223 | 223 | $keyforselect = 'warehouse'; |
224 | 224 | $keyforelement = 'warehouse'; |
225 | 225 | $keyforaliasextra = 'extra'; |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | 'p.datec' => 'product', 'p.tms' => 'product', 'p.pmp' => 'product', 'p.cost_price' => 'product', |
267 | 267 | 'ps.reel' => 'stock', |
268 | 268 | 'p.seuil_stock_alerte' => 'product', 'p.barcode' => 'product', 'bt.libelle' => 'product', |
269 | - ); // We define here only fields that use another icon that the one defined into export_icon |
|
269 | + ); // We define here only fields that use another icon that the one defined into export_icon |
|
270 | 270 | if (isModEnabled('barcode')) { |
271 | 271 | $this->export_entities_array[$r] = array_merge($this->export_entities_array[$r], array('p.barcode' => 'product')); |
272 | 272 | } |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | $this->export_dependencies_array[$r] = array('stock' => array('p.rowid', 'e.rowid')); // We must keep this until the aggregate_array is used. To have a unique key, if we ask a field of a child, to avoid the DISTINCT to discard them. |
275 | 275 | $keyforselect = 'product'; |
276 | 276 | $keyforelement = 'product'; |
277 | - $keyforaliasextra = 'extra'; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
277 | + $keyforaliasextra = 'extra'; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
278 | 278 | include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php'; |
279 | 279 | $this->export_fields_array[$r] = array_merge($this->export_fields_array[$r], array('ps.reel' => 'Stock')); |
280 | 280 | |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | 'p.datec' => 'product', 'p.tms' => 'product', 'p.pmp' => 'product', 'p.cost_price' => 'product', |
326 | 326 | 'pb.rowid' => 'batch', 'pb.batch' => 'batch', 'pb.qty' => 'batch', |
327 | 327 | 'pl.eatby' => 'batch', 'pl.sellby' => 'batch' |
328 | - ); // We define here only fields that use another icon that the one defined into export_icon |
|
328 | + ); // We define here only fields that use another icon that the one defined into export_icon |
|
329 | 329 | if (isModEnabled('barcode')) { |
330 | 330 | $this->export_entities_array[$r] = array_merge($this->export_entities_array[$r], array('p.barcode' => 'product')); |
331 | 331 | } |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | $this->export_dependencies_array[$r] = array('stockbatch' => array('pb.rowid'), 'batch' => array('pb.rowid')); // We must keep this until the aggregate_array is used. To add unique key if we ask a field of a child to avoid the DISTINCT to discard them. |
334 | 334 | $keyforselect = 'product_lot'; |
335 | 335 | $keyforelement = 'batch'; |
336 | - $keyforaliasextra = 'extra'; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
336 | + $keyforaliasextra = 'extra'; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
337 | 337 | include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php'; |
338 | 338 | |
339 | 339 | $this->export_sql_start[$r] = 'SELECT DISTINCT '; |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | 'e.rowid' => 'warehouse', 'e.ref' => 'warehouse', 'e.description' => 'warehouse', 'e.lieu' => 'warehouse', 'e.address' => 'warehouse', 'e.zip' => 'warehouse', 'e.town' => 'warehouse', |
376 | 376 | 'p.rowid' => "product", 'p.ref' => "product", 'p.fk_product_type' => "product", 'p.label' => "product", 'p.description' => "product", 'p.note' => "product", |
377 | 377 | 'p.price' => "product", 'p.tva_tx' => 'product', 'p.tosell' => "product", 'p.tobuy' => "product", 'p.duration' => "product", 'p.datec' => 'product', 'p.tms' => 'product' |
378 | - ); // We define here only fields that use another icon that the one defined into export_icon |
|
378 | + ); // We define here only fields that use another icon that the one defined into export_icon |
|
379 | 379 | if (isModEnabled('productbatch')) { |
380 | 380 | $this->export_fields_array[$r]['sm.batch'] = 'Batch'; |
381 | 381 | $this->export_TypeFields_array[$r]['sm.batch'] = 'Text'; |
@@ -281,7 +281,7 @@ |
||
281 | 281 | |
282 | 282 | // Main menu entries to add |
283 | 283 | $this->menu = array(); |
284 | - $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
284 | + $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
285 | 285 | // Add here entries to declare new menus |
286 | 286 | /* |
287 | 287 | $this->menu[$r++] = array( |
@@ -346,7 +346,7 @@ |
||
346 | 346 | include DOL_DOCUMENT_ROOT . '/core/commonfieldsinexport.inc.php'; |
347 | 347 | $keyforselect = 'ticket'; |
348 | 348 | $keyforaliasextra = 'extra'; |
349 | - $keyforelement = 'ticket'; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
349 | + $keyforelement = 'ticket'; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
350 | 350 | include DOL_DOCUMENT_ROOT . '/core/extrafieldsinexport.inc.php'; |
351 | 351 | $this->export_sql_start[$r] = 'SELECT DISTINCT '; |
352 | 352 | $this->export_sql_end[$r] = ' FROM ' . MAIN_DB_PREFIX . 'ticket as t'; |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | |
267 | 267 | // Main menu entries to add |
268 | 268 | $this->menu = array(); |
269 | - $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
269 | + $r = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
270 | 270 | // Add here entries to declare new menus |
271 | 271 | /* BEGIN MODULEBUILDER TOPMENU */ |
272 | 272 | /* END MODULEBUILDER TOPMENU */ |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | /* END MODULEBUILDER EXPORT AVAILABILITIES */ |
310 | 310 | |
311 | 311 | // Imports profiles provided by this module |
312 | - $r = 1; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
312 | + $r = 1; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
313 | 313 | /* BEGIN MODULEBUILDER IMPORT AVAILABILITIES */ |
314 | 314 | /* |
315 | 315 | $langs->load("agenda"); |