@@ -526,7 +526,7 @@ discard block |
||
| 526 | 526 | |
| 527 | 527 | |
| 528 | 528 | |
| 529 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 529 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 530 | 530 | /** |
| 531 | 531 | * Triggered when opened tag is found |
| 532 | 532 | * |
@@ -537,7 +537,7 @@ discard block |
||
| 537 | 537 | */ |
| 538 | 538 | public function feed_start_element($p, $element, $attrs) |
| 539 | 539 | { |
| 540 | - // phpcs:enable |
|
| 540 | + // phpcs:enable |
|
| 541 | 541 | $el = $element = strtolower($element); |
| 542 | 542 | $attrs = array_change_key_case($attrs, CASE_LOWER); |
| 543 | 543 | |
@@ -615,7 +615,7 @@ discard block |
||
| 615 | 615 | } |
| 616 | 616 | |
| 617 | 617 | |
| 618 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 618 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 619 | 619 | /** |
| 620 | 620 | * Triggered when CDATA is found |
| 621 | 621 | * |
@@ -625,7 +625,7 @@ discard block |
||
| 625 | 625 | */ |
| 626 | 626 | public function feed_cdata($p, $text) |
| 627 | 627 | { |
| 628 | - // phpcs:enable |
|
| 628 | + // phpcs:enable |
|
| 629 | 629 | if ($this->_format == 'atom' and $this->incontent) { |
| 630 | 630 | $this->append_content($text); |
| 631 | 631 | } else { |
@@ -634,7 +634,7 @@ discard block |
||
| 634 | 634 | } |
| 635 | 635 | } |
| 636 | 636 | |
| 637 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 637 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 638 | 638 | /** |
| 639 | 639 | * Triggered when closed tag is found |
| 640 | 640 | * |
@@ -644,7 +644,7 @@ discard block |
||
| 644 | 644 | */ |
| 645 | 645 | public function feed_end_element($p, $el) |
| 646 | 646 | { |
| 647 | - // phpcs:enable |
|
| 647 | + // phpcs:enable |
|
| 648 | 648 | $el = strtolower($el); |
| 649 | 649 | |
| 650 | 650 | if ($el == 'item' or $el == 'entry') { |
@@ -693,7 +693,7 @@ discard block |
||
| 693 | 693 | return $str1; |
| 694 | 694 | } |
| 695 | 695 | |
| 696 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 696 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 697 | 697 | /** |
| 698 | 698 | * Enter description here ... |
| 699 | 699 | * |
@@ -702,7 +702,7 @@ discard block |
||
| 702 | 702 | */ |
| 703 | 703 | public function append_content($text) |
| 704 | 704 | { |
| 705 | - // phpcs:enable |
|
| 705 | + // phpcs:enable |
|
| 706 | 706 | if (!empty($this->initem)) { |
| 707 | 707 | $this->concat($this->current_item[$this->incontent], $text); |
| 708 | 708 | } elseif (!empty($this->inchannel)) { |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | return $this->LibStatut($this->status, $mode); |
| 401 | 401 | } |
| 402 | 402 | |
| 403 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 403 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 404 | 404 | /** |
| 405 | 405 | * Give a label from a status |
| 406 | 406 | * |
@@ -410,7 +410,7 @@ discard block |
||
| 410 | 410 | */ |
| 411 | 411 | public function LibStatut($status, $mode = 0) |
| 412 | 412 | { |
| 413 | - // phpcs:enable |
|
| 413 | + // phpcs:enable |
|
| 414 | 414 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
| 415 | 415 | global $langs; |
| 416 | 416 | //$langs->load("mymodule@mymodule"); |
@@ -240,7 +240,7 @@ |
||
| 240 | 240 | |
| 241 | 241 | $this->id = $obj->rowid; |
| 242 | 242 | $this->ref = $obj->rowid; |
| 243 | - $this->date_start = $this->db->jdate($obj->date_start); |
|
| 243 | + $this->date_start = $this->db->jdate($obj->date_start); |
|
| 244 | 244 | $this->date_end = $this->db->jdate($obj->date_end); |
| 245 | 245 | $this->label = $obj->label; |
| 246 | 246 | $this->statut = $obj->status; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | |
| 53 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 53 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 54 | 54 | /** |
| 55 | 55 | * Display On Off selector |
| 56 | 56 | * |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function select_typejob($htmlname, $selected = 0, $readonly = 0) |
| 63 | 63 | { |
| 64 | - // phpcs:enable |
|
| 64 | + // phpcs:enable |
|
| 65 | 65 | global $langs; |
| 66 | 66 | |
| 67 | 67 | $langs->load('cron@cron'); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $this->db = $db; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 69 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 70 | 70 | /** |
| 71 | 71 | * Return list of journals with label by nature |
| 72 | 72 | * |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function select_journal($selectid, $htmlname = 'journal', $nature = 0, $showempty = 0, $select_in = 0, $select_out = 0, $morecss = 'maxwidth300 maxwidthonsmartphone', $usecache = '', $disabledajaxcombo = 0) |
| 85 | 85 | { |
| 86 | - // phpcs:enable |
|
| 86 | + // phpcs:enable |
|
| 87 | 87 | global $conf, $langs; |
| 88 | 88 | |
| 89 | 89 | $out = ''; |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | return $out; |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 149 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 150 | 150 | /** |
| 151 | 151 | * Return list of journals with label by nature |
| 152 | 152 | * |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | */ |
| 164 | 164 | public function multi_select_journal($selectedIds = array(), $htmlname = 'journal', $nature = 0, $showempty = 0, $select_in = 0, $select_out = 0, $morecss = '', $usecache = '', $disabledajaxcombo = 0) |
| 165 | 165 | { |
| 166 | - // phpcs:enable |
|
| 166 | + // phpcs:enable |
|
| 167 | 167 | global $conf, $langs; |
| 168 | 168 | |
| 169 | 169 | $out = ''; |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | return $out; |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 228 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 229 | 229 | /** |
| 230 | 230 | * Return list of accounting category. |
| 231 | 231 | * Use mysoc->country_id or mysoc->country_code so they must be defined. |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | */ |
| 241 | 241 | public function select_accounting_category($selected = 0, $htmlname = 'account_category', $useempty = 0, $maxlen = 0, $help = 1, $allcountries = 0) |
| 242 | 242 | { |
| 243 | - // phpcs:enable |
|
| 243 | + // phpcs:enable |
|
| 244 | 244 | global $langs, $mysoc; |
| 245 | 245 | |
| 246 | 246 | if (empty($mysoc->country_id) && empty($mysoc->country_code) && empty($allcountries)) { |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | return $out; |
| 316 | 316 | } |
| 317 | 317 | |
| 318 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 318 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 319 | 319 | /** |
| 320 | 320 | * Return select filter with date of transaction |
| 321 | 321 | * |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | */ |
| 326 | 326 | public function select_bookkeeping_importkey($htmlname = 'importkey', $selectedkey = '') |
| 327 | 327 | { |
| 328 | - // phpcs:enable |
|
| 328 | + // phpcs:enable |
|
| 329 | 329 | $options = array(); |
| 330 | 330 | |
| 331 | 331 | $sql = "SELECT DISTINCT import_key FROM " . $this->db->prefix() . "accounting_bookkeeping"; |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | return Form::selectarray($htmlname, $options, $selectedkey); |
| 349 | 349 | } |
| 350 | 350 | |
| 351 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 351 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 352 | 352 | /** |
| 353 | 353 | * Return list of accounts with label by chart of accounts |
| 354 | 354 | * |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | */ |
| 366 | 366 | public function select_account($selectid, $htmlname = 'account', $showempty = 0, $event = array(), $select_in = 0, $select_out = 0, $morecss = 'minwidth100 maxwidth300 maxwidthonsmartphone', $usecache = '', $active = '1') |
| 367 | 367 | { |
| 368 | - // phpcs:enable |
|
| 368 | + // phpcs:enable |
|
| 369 | 369 | global $conf, $langs; |
| 370 | 370 | |
| 371 | 371 | require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php'; |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | return $out; |
| 460 | 460 | } |
| 461 | 461 | |
| 462 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 462 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 463 | 463 | /** |
| 464 | 464 | * Return list of auxiliary accounts. Cumulate list from customers, suppliers and users. |
| 465 | 465 | * |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | */ |
| 474 | 474 | public function select_auxaccount($selectid, $htmlname = 'account_num_aux', $showempty = 0, $morecss = 'minwidth100 maxwidth300 maxwidthonsmartphone', $usecache = '', $labelhtmlname = '') |
| 475 | 475 | { |
| 476 | - // phpcs:enable |
|
| 476 | + // phpcs:enable |
|
| 477 | 477 | global $conf; |
| 478 | 478 | |
| 479 | 479 | $aux_account = array(); |
@@ -554,7 +554,7 @@ discard block |
||
| 554 | 554 | return $out; |
| 555 | 555 | } |
| 556 | 556 | |
| 557 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 557 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 558 | 558 | /** |
| 559 | 559 | * Return HTML combo list of years existing into book keepping |
| 560 | 560 | * |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | */ |
| 567 | 567 | public function selectyear_accountancy_bookkepping($selected = '', $htmlname = 'yearid', $useempty = 0, $output_format = 'html') |
| 568 | 568 | { |
| 569 | - // phpcs:enable |
|
| 569 | + // phpcs:enable |
|
| 570 | 570 | global $conf; |
| 571 | 571 | |
| 572 | 572 | $out_array = array(); |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $this->db = $db; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 61 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Output a combo list with projects qualified for a third party / user |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function select_projects($socid = -1, $selected = '', $htmlname = 'projectid', $maxlength = 16, $option_only = 0, $show_empty = 1, $discard_closed = 0, $forcefocus = 0, $disabled = 0, $mode = 0, $filterkey = '', $nooutput = 0, $forceaddid = 0, $morecss = '', $htmlid = '', $morefilter = '') |
| 85 | 85 | { |
| 86 | - // phpcs:enable |
|
| 86 | + // phpcs:enable |
|
| 87 | 87 | global $langs, $conf, $form; |
| 88 | 88 | |
| 89 | 89 | $selected_input_value = ''; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 130 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 131 | 131 | |
| 132 | 132 | /** |
| 133 | 133 | * Returns an array with projects qualified for a third party |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | */ |
| 153 | 153 | public function select_projects_list($socid = -1, $selected = 0, $htmlname = 'projectid', $maxlength = 24, $option_only = 0, $show_empty = 1, $discard_closed = 0, $forcefocus = 0, $disabled = 0, $mode = 0, $filterkey = '', $nooutput = 0, $forceaddid = 0, $htmlid = '', $morecss = 'maxwidth500', $morefilter = '') |
| 154 | 154 | { |
| 155 | - // phpcs:enable |
|
| 155 | + // phpcs:enable |
|
| 156 | 156 | global $user, $conf, $langs; |
| 157 | 157 | |
| 158 | 158 | require_once DOL_DOCUMENT_ROOT . '/projet/class/project.class.php'; |
@@ -516,7 +516,7 @@ discard block |
||
| 516 | 516 | } |
| 517 | 517 | |
| 518 | 518 | |
| 519 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 519 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 520 | 520 | |
| 521 | 521 | /** |
| 522 | 522 | * Build a HTML select list of element of same thirdparty to suggest to link them to project |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | */ |
| 532 | 532 | public function select_element($table_element, $socid = 0, $morecss = '', $limitonstatus = -2, $projectkey = "fk_projet", $placeholder = '') |
| 533 | 533 | { |
| 534 | - // phpcs:enable |
|
| 534 | + // phpcs:enable |
|
| 535 | 535 | global $conf, $langs; |
| 536 | 536 | |
| 537 | 537 | if ($table_element == 'projet_task') { |
@@ -792,7 +792,7 @@ |
||
| 792 | 792 | if (is_array($selected)) { |
| 793 | 793 | $selectedarray = $selected; |
| 794 | 794 | } elseif ($selected == 99) { |
| 795 | - $selectedarray = array(0,1); |
|
| 795 | + $selectedarray = array(0, 1); |
|
| 796 | 796 | } else { |
| 797 | 797 | $selectedarray = explode(',', $selected); |
| 798 | 798 | } |
@@ -314,7 +314,7 @@ |
||
| 314 | 314 | return $this->LibStatut($this->active, $mode); |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 317 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 318 | 318 | /** |
| 319 | 319 | * Return the label of a given status |
| 320 | 320 | * |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | return $out; |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 136 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 137 | 137 | /** |
| 138 | 138 | * Return HTML select list of export models |
| 139 | 139 | * |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | */ |
| 147 | 147 | public function select_export_model($selected = '', $htmlname = 'exportmodelid', $type = '', $useempty = 0, $fk_user = null) |
| 148 | 148 | { |
| 149 | - // phpcs:enable |
|
| 149 | + // phpcs:enable |
|
| 150 | 150 | global $conf, $langs, $user; |
| 151 | 151 | |
| 152 | 152 | $sql = "SELECT rowid, label, fk_user"; |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | |
| 198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 199 | 199 | /** |
| 200 | 200 | * Return list of export models |
| 201 | 201 | * |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | */ |
| 209 | 209 | public function select_import_model($selected = '', $htmlname = 'importmodelid', $type = '', $useempty = 0, $fk_user = null) |
| 210 | 210 | { |
| 211 | - // phpcs:enable |
|
| 211 | + // phpcs:enable |
|
| 212 | 212 | global $conf, $langs, $user; |
| 213 | 213 | |
| 214 | 214 | $sql = "SELECT rowid, label, fk_user"; |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | |
| 260 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 260 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 261 | 261 | /** |
| 262 | 262 | * Return list of ecotaxes with label |
| 263 | 263 | * |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | */ |
| 268 | 268 | public function select_ecotaxes($selected = '', $htmlname = 'ecotaxe_id') |
| 269 | 269 | { |
| 270 | - // phpcs:enable |
|
| 270 | + // phpcs:enable |
|
| 271 | 271 | global $langs; |
| 272 | 272 | |
| 273 | 273 | $sql = "SELECT e.rowid, e.code, e.label, e.price, e.organization,"; |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | } |
| 308 | 308 | |
| 309 | 309 | |
| 310 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 310 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 311 | 311 | /** |
| 312 | 312 | * Return list of revenue stamp for country |
| 313 | 313 | * |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | */ |
| 319 | 319 | public function select_revenue_stamp($selected = '', $htmlname = 'revenuestamp', $country_code = '') |
| 320 | 320 | { |
| 321 | - // phpcs:enable |
|
| 321 | + // phpcs:enable |
|
| 322 | 322 | global $langs; |
| 323 | 323 | |
| 324 | 324 | $out = ''; |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | } |
| 358 | 358 | |
| 359 | 359 | |
| 360 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 360 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 361 | 361 | /** |
| 362 | 362 | * Return a HTML select list to select a percent |
| 363 | 363 | * |
@@ -372,7 +372,7 @@ discard block |
||
| 372 | 372 | */ |
| 373 | 373 | public function select_percent($selected = 0, $htmlname = 'percent', $disabled = 0, $increment = 5, $start = 0, $end = 100, $showempty = 0) |
| 374 | 374 | { |
| 375 | - // phpcs:enable |
|
| 375 | + // phpcs:enable |
|
| 376 | 376 | $return = '<select class="flat maxwidth75 right" name="' . $htmlname . '" ' . ($disabled ? 'disabled' : '') . '>'; |
| 377 | 377 | if ($showempty) { |
| 378 | 378 | $return .= '<option value="-1"' . (($selected == -1 || $selected == '') ? ' selected' : '') . '> </option>'; |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | return $return; |
| 394 | 394 | } |
| 395 | 395 | |
| 396 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 396 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 397 | 397 | /** |
| 398 | 398 | * Return select list for categories (to use in form search selectors) |
| 399 | 399 | * |
@@ -408,7 +408,7 @@ discard block |
||
| 408 | 408 | */ |
| 409 | 409 | public function select_categories($type, $selected = 0, $htmlname = 'search_categ', $nocateg = 0, $showempty = 1, $morecss = '') |
| 410 | 410 | { |
| 411 | - // phpcs:enable |
|
| 411 | + // phpcs:enable |
|
| 412 | 412 | global $conf, $langs; |
| 413 | 413 | require_once DOL_DOCUMENT_ROOT . '/categories/class/categorie.class.php'; |
| 414 | 414 | |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | } |
| 466 | 466 | |
| 467 | 467 | |
| 468 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 468 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 469 | 469 | /** |
| 470 | 470 | * Return select list for categories (to use in form search selectors) |
| 471 | 471 | * |
@@ -480,7 +480,7 @@ discard block |
||
| 480 | 480 | */ |
| 481 | 481 | public function select_salesrepresentatives($selected, $htmlname, $user, $showstatus = 0, $showempty = 1, $morecss = '', $norepresentative = 0) |
| 482 | 482 | { |
| 483 | - // phpcs:enable |
|
| 483 | + // phpcs:enable |
|
| 484 | 484 | global $conf, $langs, $hookmanager; |
| 485 | 485 | global $action; |
| 486 | 486 | |
@@ -823,7 +823,7 @@ discard block |
||
| 823 | 823 | } |
| 824 | 824 | } |
| 825 | 825 | |
| 826 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 826 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 827 | 827 | /** |
| 828 | 828 | * Output a HTML code to select a color |
| 829 | 829 | * |
@@ -838,7 +838,7 @@ discard block |
||
| 838 | 838 | */ |
| 839 | 839 | public function select_color($set_color = '', $prefix = 'f_color', $form_name = '', $showcolorbox = 1, $arrayofcolors = []) |
| 840 | 840 | { |
| 841 | - // phpcs:enable |
|
| 841 | + // phpcs:enable |
|
| 842 | 842 | print $this->selectColor($set_color, $prefix, $form_name, $showcolorbox, $arrayofcolors); |
| 843 | 843 | } |
| 844 | 844 | |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | return $out; |
| 990 | 990 | } |
| 991 | 991 | |
| 992 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 992 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 993 | 993 | /** |
| 994 | 994 | * Create an image for color |
| 995 | 995 | * |
@@ -1002,7 +1002,7 @@ discard block |
||
| 1002 | 1002 | */ |
| 1003 | 1003 | public function CreateColorIcon($color, $module, $name, $x = 12, $y = 12) |
| 1004 | 1004 | { |
| 1005 | - // phpcs:enable |
|
| 1005 | + // phpcs:enable |
|
| 1006 | 1006 | global $conf; |
| 1007 | 1007 | |
| 1008 | 1008 | $file = $conf->$module->dir_temp . '/' . $name . '.png'; |
@@ -1029,7 +1029,7 @@ discard block |
||
| 1029 | 1029 | imagedestroy($image); |
| 1030 | 1030 | } |
| 1031 | 1031 | |
| 1032 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1032 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1033 | 1033 | /** |
| 1034 | 1034 | * Return HTML combo list of week |
| 1035 | 1035 | * |
@@ -1040,7 +1040,7 @@ discard block |
||
| 1040 | 1040 | */ |
| 1041 | 1041 | public function select_dayofweek($selected = '', $htmlname = 'weekid', $useempty = 0) |
| 1042 | 1042 | { |
| 1043 | - // phpcs:enable |
|
| 1043 | + // phpcs:enable |
|
| 1044 | 1044 | global $langs; |
| 1045 | 1045 | |
| 1046 | 1046 | $week = array( |
@@ -1073,7 +1073,7 @@ discard block |
||
| 1073 | 1073 | return $select_week; |
| 1074 | 1074 | } |
| 1075 | 1075 | |
| 1076 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1076 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1077 | 1077 | /** |
| 1078 | 1078 | * Return HTML combo list of month |
| 1079 | 1079 | * |
@@ -1087,7 +1087,7 @@ discard block |
||
| 1087 | 1087 | */ |
| 1088 | 1088 | public function select_month($selected = '', $htmlname = 'monthid', $useempty = 0, $longlabel = 0, $morecss = 'minwidth50 maxwidth75imp valignmiddle', $addjscombo = false) |
| 1089 | 1089 | { |
| 1090 | - // phpcs:enable |
|
| 1090 | + // phpcs:enable |
|
| 1091 | 1091 | global $langs; |
| 1092 | 1092 | |
| 1093 | 1093 | require_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php'; |
@@ -1123,7 +1123,7 @@ discard block |
||
| 1123 | 1123 | return $select_month; |
| 1124 | 1124 | } |
| 1125 | 1125 | |
| 1126 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1126 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1127 | 1127 | /** |
| 1128 | 1128 | * Return HTML combo list of years |
| 1129 | 1129 | * |
@@ -1142,7 +1142,7 @@ discard block |
||
| 1142 | 1142 | */ |
| 1143 | 1143 | public function select_year($selected = '', $htmlname = 'yearid', $useempty = 0, $min_year = 10, $max_year = 5, $offset = 0, $invert = 0, $option = '', $morecss = 'valignmiddle maxwidth75imp', $addjscombo = false) |
| 1144 | 1144 | { |
| 1145 | - // phpcs:enable |
|
| 1145 | + // phpcs:enable |
|
| 1146 | 1146 | print $this->selectyear($selected, $htmlname, $useempty, $min_year, $max_year, $offset, $invert, $option, $morecss, $addjscombo); |
| 1147 | 1147 | } |
| 1148 | 1148 | |
@@ -1438,7 +1438,7 @@ discard block |
||
| 1438 | 1438 | } |
| 1439 | 1439 | |
| 1440 | 1440 | |
| 1441 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1441 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1442 | 1442 | /** |
| 1443 | 1443 | * Return a HTML select list of a dictionary |
| 1444 | 1444 | * |
@@ -1453,7 +1453,7 @@ discard block |
||
| 1453 | 1453 | */ |
| 1454 | 1454 | public function select_dictionary($htmlname, $dictionarytable, $keyfield = 'code', $labelfield = 'label', $selected = '', $useempty = 0, $moreattrib = '') |
| 1455 | 1455 | { |
| 1456 | - // phpcs:enable |
|
| 1456 | + // phpcs:enable |
|
| 1457 | 1457 | global $langs, $conf; |
| 1458 | 1458 | |
| 1459 | 1459 | $langs->load("admin"); |
@@ -1017,9 +1017,9 @@ |
||
| 1017 | 1017 | |
| 1018 | 1018 | $color = substr($color, 1, 6); |
| 1019 | 1019 | |
| 1020 | - $red = hexdec(substr($color, 0, 2)); // Red channel conversion |
|
| 1021 | - $green = hexdec(substr($color, 2, 2)); // Green channel conversion |
|
| 1022 | - $blue = hexdec(substr($color, 4, 2)); // Blue channel conversion |
|
| 1020 | + $red = hexdec(substr($color, 0, 2)); // Red channel conversion |
|
| 1021 | + $green = hexdec(substr($color, 2, 2)); // Green channel conversion |
|
| 1022 | + $blue = hexdec(substr($color, 4, 2)); // Blue channel conversion |
|
| 1023 | 1023 | |
| 1024 | 1024 | $couleur = imagecolorallocate($image, $red, $green, $blue); |
| 1025 | 1025 | //print $red.$green.$blue; |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | |
| 416 | 416 | |
| 417 | 417 | |
| 418 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 418 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 419 | 419 | /** |
| 420 | 420 | * Link the discount to a particular invoice line or a particular invoice. |
| 421 | 421 | * When discount is a global discount used as an invoice line, we link using rowidline. |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | */ |
| 428 | 428 | public function link_to_invoice($rowidline, $rowidinvoice) |
| 429 | 429 | { |
| 430 | - // phpcs:enable |
|
| 430 | + // phpcs:enable |
|
| 431 | 431 | // Check parameters |
| 432 | 432 | if (!$rowidline && !$rowidinvoice) { |
| 433 | 433 | $this->error = 'ErrorBadParameters'; |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | } |
| 475 | 475 | |
| 476 | 476 | |
| 477 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 477 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 478 | 478 | /** |
| 479 | 479 | * Link the discount to a particular invoice line or a particular invoice. |
| 480 | 480 | * Do not call this if discount is linked to a reconcialiated invoice |
@@ -483,7 +483,7 @@ discard block |
||
| 483 | 483 | */ |
| 484 | 484 | public function unlink_invoice() |
| 485 | 485 | { |
| 486 | - // phpcs:enable |
|
| 486 | + // phpcs:enable |
|
| 487 | 487 | $sql = "UPDATE " . $this->db->prefix() . "societe_remise_except"; |
| 488 | 488 | if (!empty($this->discount_type)) { |
| 489 | 489 | $sql .= " SET fk_invoice_supplier_line = NULL, fk_invoice_supplier = NULL"; |
@@ -47,16 +47,16 @@ |
||
| 47 | 47 | public $total_ht; |
| 48 | 48 | public $total_tva; |
| 49 | 49 | public $total_ttc; |
| 50 | - public $amount_ht; // deprecated |
|
| 50 | + public $amount_ht; // deprecated |
|
| 51 | 51 | public $amount_tva; // deprecated |
| 52 | 52 | public $amount_ttc; // deprecated |
| 53 | 53 | |
| 54 | 54 | public $multicurrency_total_ht; |
| 55 | 55 | public $multicurrency_total_tva; |
| 56 | 56 | public $multicurrency_total_ttc; |
| 57 | - public $multicurrency_amount_ht; // deprecated |
|
| 58 | - public $multicurrency_amount_tva; // deprecated |
|
| 59 | - public $multicurrency_amount_ttc; // deprecated |
|
| 57 | + public $multicurrency_amount_ht; // deprecated |
|
| 58 | + public $multicurrency_amount_tva; // deprecated |
|
| 59 | + public $multicurrency_amount_ttc; // deprecated |
|
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * @var double |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | $this->withbodyreadonly = 0; |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 125 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 126 | 126 | /** |
| 127 | 127 | * Show the form to input an sms. |
| 128 | 128 | * |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | */ |
| 133 | 133 | public function show_form($morecss = 'titlefield', $showform = 1) |
| 134 | 134 | { |
| 135 | - // phpcs:enable |
|
| 135 | + // phpcs:enable |
|
| 136 | 136 | global $conf, $langs, $form; |
| 137 | 137 | |
| 138 | 138 | if (!is_object($form)) { |
@@ -209,10 +209,10 @@ |
||
| 209 | 209 | } else { |
| 210 | 210 | print '<tr><td class="' . $morecss . '">' . $langs->trans("SmsFrom") . "</td><td>"; |
| 211 | 211 | if (getDolGlobalString('MAIN_SMS_SENDMODE')) { |
| 212 | - $sendmode = getDolGlobalString('MAIN_SMS_SENDMODE'); // $conf->global->MAIN_SMS_SENDMODE looks like a value 'module' |
|
| 213 | - $classmoduleofsender = getDolGlobalString('MAIN_MODULE_' . strtoupper($sendmode) . '_SMS', $sendmode); // $conf->global->MAIN_MODULE_XXX_SMS looks like a value 'class@module' |
|
| 212 | + $sendmode = getDolGlobalString('MAIN_SMS_SENDMODE'); // $conf->global->MAIN_SMS_SENDMODE looks like a value 'module' |
|
| 213 | + $classmoduleofsender = getDolGlobalString('MAIN_MODULE_' . strtoupper($sendmode) . '_SMS', $sendmode); // $conf->global->MAIN_MODULE_XXX_SMS looks like a value 'class@module' |
|
| 214 | 214 | if ($classmoduleofsender == 'ovh') { |
| 215 | - $classmoduleofsender = 'ovhsms@ovh'; // For backward compatibility |
|
| 215 | + $classmoduleofsender = 'ovhsms@ovh'; // For backward compatibility |
|
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | $tmp = explode('@', $classmoduleofsender); |