@@ -767,7 +767,7 @@ discard block |
||
| 767 | 767 | } |
| 768 | 768 | } |
| 769 | 769 | |
| 770 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 770 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 771 | 771 | /** |
| 772 | 772 | * Classify the expense report as paid |
| 773 | 773 | * |
@@ -780,7 +780,7 @@ discard block |
||
| 780 | 780 | */ |
| 781 | 781 | public function set_paid($id, $fuser, $notrigger = 0) |
| 782 | 782 | { |
| 783 | - // phpcs:enable |
|
| 783 | + // phpcs:enable |
|
| 784 | 784 | dol_syslog(get_class($this) . "::set_paid is deprecated, use setPaid instead", LOG_NOTICE); |
| 785 | 785 | return $this->setPaid($id, $fuser, $notrigger); |
| 786 | 786 | } |
@@ -846,7 +846,7 @@ discard block |
||
| 846 | 846 | return $this->LibStatut($this->status, $mode); |
| 847 | 847 | } |
| 848 | 848 | |
| 849 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 849 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 850 | 850 | /** |
| 851 | 851 | * Returns the label of a status |
| 852 | 852 | * |
@@ -856,7 +856,7 @@ discard block |
||
| 856 | 856 | */ |
| 857 | 857 | public function LibStatut($status, $mode = 0) |
| 858 | 858 | { |
| 859 | - // phpcs:enable |
|
| 859 | + // phpcs:enable |
|
| 860 | 860 | global $langs; |
| 861 | 861 | |
| 862 | 862 | $labelStatus = $langs->transnoentitiesnoconv($this->labelStatus[$status]); |
@@ -986,7 +986,7 @@ discard block |
||
| 986 | 986 | return 1; |
| 987 | 987 | } |
| 988 | 988 | |
| 989 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 989 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 990 | 990 | /** |
| 991 | 991 | * fetch_line_by_project |
| 992 | 992 | * |
@@ -996,7 +996,7 @@ discard block |
||
| 996 | 996 | */ |
| 997 | 997 | public function fetch_line_by_project($projectid, $user) |
| 998 | 998 | { |
| 999 | - // phpcs:enable |
|
| 999 | + // phpcs:enable |
|
| 1000 | 1000 | global $langs; |
| 1001 | 1001 | |
| 1002 | 1002 | $langs->load('trips'); |
@@ -1088,7 +1088,7 @@ discard block |
||
| 1088 | 1088 | return 0; |
| 1089 | 1089 | } |
| 1090 | 1090 | |
| 1091 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1091 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1092 | 1092 | /** |
| 1093 | 1093 | * fetch_lines |
| 1094 | 1094 | * |
@@ -1096,7 +1096,7 @@ discard block |
||
| 1096 | 1096 | */ |
| 1097 | 1097 | public function fetch_lines() |
| 1098 | 1098 | { |
| 1099 | - // phpcs:enable |
|
| 1099 | + // phpcs:enable |
|
| 1100 | 1100 | $this->lines = array(); |
| 1101 | 1101 | |
| 1102 | 1102 | $sql = ' SELECT de.rowid, de.comments, de.qty, de.value_unit, de.date, de.rang,'; |
@@ -1426,7 +1426,7 @@ discard block |
||
| 1426 | 1426 | } |
| 1427 | 1427 | } |
| 1428 | 1428 | |
| 1429 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1429 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1430 | 1430 | /** |
| 1431 | 1431 | * set_save_from_refuse |
| 1432 | 1432 | * |
@@ -1435,7 +1435,7 @@ discard block |
||
| 1435 | 1435 | */ |
| 1436 | 1436 | public function set_save_from_refuse($fuser) |
| 1437 | 1437 | { |
| 1438 | - // phpcs:enable |
|
| 1438 | + // phpcs:enable |
|
| 1439 | 1439 | // Sélection de la date de début de la NDF |
| 1440 | 1440 | $sql = 'SELECT date_debut'; |
| 1441 | 1441 | $sql .= ' FROM ' . MAIN_DB_PREFIX . $this->table_element; |
@@ -1577,7 +1577,7 @@ discard block |
||
| 1577 | 1577 | return 0; |
| 1578 | 1578 | } |
| 1579 | 1579 | |
| 1580 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1580 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1581 | 1581 | /** |
| 1582 | 1582 | * set_unpaid |
| 1583 | 1583 | * |
@@ -1589,7 +1589,7 @@ discard block |
||
| 1589 | 1589 | */ |
| 1590 | 1590 | public function set_unpaid($fuser, $notrigger = 0) |
| 1591 | 1591 | { |
| 1592 | - // phpcs:enable |
|
| 1592 | + // phpcs:enable |
|
| 1593 | 1593 | dol_syslog(get_class($this) . "::set_unpaid is deprecated, use setUnpaid instead", LOG_NOTICE); |
| 1594 | 1594 | return $this->setUnpaid($fuser, $notrigger); |
| 1595 | 1595 | } |
@@ -1645,7 +1645,7 @@ discard block |
||
| 1645 | 1645 | return 0; |
| 1646 | 1646 | } |
| 1647 | 1647 | |
| 1648 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1648 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1649 | 1649 | /** |
| 1650 | 1650 | * set_cancel |
| 1651 | 1651 | * |
@@ -1656,7 +1656,7 @@ discard block |
||
| 1656 | 1656 | */ |
| 1657 | 1657 | public function set_cancel($fuser, $detail, $notrigger = 0) |
| 1658 | 1658 | { |
| 1659 | - // phpcs:enable |
|
| 1659 | + // phpcs:enable |
|
| 1660 | 1660 | $error = 0; |
| 1661 | 1661 | $this->date_cancel = $this->db->idate(dol_now()); |
| 1662 | 1662 | if ($this->status != self::STATUS_CANCELED) { |
@@ -1879,7 +1879,7 @@ discard block |
||
| 1879 | 1879 | return $result; |
| 1880 | 1880 | } |
| 1881 | 1881 | |
| 1882 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1882 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1883 | 1883 | /** |
| 1884 | 1884 | * Update total of an expense report when you add a line. |
| 1885 | 1885 | * |
@@ -1889,7 +1889,7 @@ discard block |
||
| 1889 | 1889 | */ |
| 1890 | 1890 | public function update_totaux_add($ligne_total_ht, $ligne_total_tva) |
| 1891 | 1891 | { |
| 1892 | - // phpcs:enable |
|
| 1892 | + // phpcs:enable |
|
| 1893 | 1893 | $this->total_ht += (float) $ligne_total_ht; |
| 1894 | 1894 | $this->total_tva += (float) $ligne_total_tva; |
| 1895 | 1895 | $this->total_ttc += $this->total_tva; |
@@ -2375,7 +2375,7 @@ discard block |
||
| 2375 | 2375 | return 1; |
| 2376 | 2376 | } |
| 2377 | 2377 | |
| 2378 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2378 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2379 | 2379 | /** |
| 2380 | 2380 | * periode_existe |
| 2381 | 2381 | * |
@@ -2388,7 +2388,7 @@ discard block |
||
| 2388 | 2388 | { |
| 2389 | 2389 | global $conf; |
| 2390 | 2390 | |
| 2391 | - // phpcs:enable |
|
| 2391 | + // phpcs:enable |
|
| 2392 | 2392 | $sql = "SELECT rowid, date_debut, date_fin"; |
| 2393 | 2393 | $sql .= " FROM " . MAIN_DB_PREFIX . $this->table_element; |
| 2394 | 2394 | $sql .= " WHERE entity = " . ((int) $conf->entity); // not shared, only for the current entity |
@@ -2429,7 +2429,7 @@ discard block |
||
| 2429 | 2429 | } |
| 2430 | 2430 | |
| 2431 | 2431 | |
| 2432 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2432 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2433 | 2433 | /** |
| 2434 | 2434 | * Return list of people with permission to validate expense reports. |
| 2435 | 2435 | * Search for permission "approve expense report" |
@@ -2438,7 +2438,7 @@ discard block |
||
| 2438 | 2438 | */ |
| 2439 | 2439 | public function fetch_users_approver_expensereport() |
| 2440 | 2440 | { |
| 2441 | - // phpcs:enable |
|
| 2441 | + // phpcs:enable |
|
| 2442 | 2442 | $users_validator = array(); |
| 2443 | 2443 | |
| 2444 | 2444 | $sql = "SELECT DISTINCT ur.fk_user"; |
@@ -2564,7 +2564,7 @@ discard block |
||
| 2564 | 2564 | } |
| 2565 | 2565 | } |
| 2566 | 2566 | |
| 2567 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2567 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2568 | 2568 | /** |
| 2569 | 2569 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
| 2570 | 2570 | * |
@@ -2574,7 +2574,7 @@ discard block |
||
| 2574 | 2574 | */ |
| 2575 | 2575 | public function load_board($user, $option = 'topay') |
| 2576 | 2576 | { |
| 2577 | - // phpcs:enable |
|
| 2577 | + // phpcs:enable |
|
| 2578 | 2578 | global $conf, $langs; |
| 2579 | 2579 | |
| 2580 | 2580 | if ($user->socid) { |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | } |
| 298 | 298 | } |
| 299 | 299 | |
| 300 | - // phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter |
|
| 300 | + // phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter |
|
| 301 | 301 | /** |
| 302 | 302 | * Update database |
| 303 | 303 | * |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | */ |
| 308 | 308 | public function update($user = null, $notrigger = 0) |
| 309 | 309 | { |
| 310 | - // phpcs:enable |
|
| 310 | + // phpcs:enable |
|
| 311 | 311 | $error = 0; |
| 312 | 312 | |
| 313 | 313 | // Clean parameters |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | } |
| 376 | 376 | } |
| 377 | 377 | |
| 378 | - // phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter |
|
| 378 | + // phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter |
|
| 379 | 379 | /** |
| 380 | 380 | * Delete object in database |
| 381 | 381 | * |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | */ |
| 386 | 386 | public function delete($user, $notrigger = 0) |
| 387 | 387 | { |
| 388 | - // phpcs:enable |
|
| 388 | + // phpcs:enable |
|
| 389 | 389 | $error = 0; |
| 390 | 390 | |
| 391 | 391 | $this->db->begin(); |
@@ -487,7 +487,7 @@ discard block |
||
| 487 | 487 | return ''; |
| 488 | 488 | } |
| 489 | 489 | |
| 490 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 490 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 491 | 491 | /** |
| 492 | 492 | * Return the label of a given status |
| 493 | 493 | * |
@@ -497,7 +497,7 @@ discard block |
||
| 497 | 497 | */ |
| 498 | 498 | public function LibStatut($status, $mode = 0) |
| 499 | 499 | { |
| 500 | - // phpcs:enable |
|
| 500 | + // phpcs:enable |
|
| 501 | 501 | //global $langs; |
| 502 | 502 | |
| 503 | 503 | return ''; |
@@ -635,7 +635,7 @@ discard block |
||
| 635 | 635 | } |
| 636 | 636 | |
| 637 | 637 | |
| 638 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 638 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 639 | 639 | /** |
| 640 | 640 | * Update link between the expense report payment and the generated line in llx_bank |
| 641 | 641 | * |
@@ -644,7 +644,7 @@ discard block |
||
| 644 | 644 | */ |
| 645 | 645 | public function update_fk_bank($id_bank) |
| 646 | 646 | { |
| 647 | - // phpcs:enable |
|
| 647 | + // phpcs:enable |
|
| 648 | 648 | $sql = "UPDATE " . MAIN_DB_PREFIX . "payment_expensereport SET fk_bank = " . ((int) $id_bank) . " WHERE rowid = " . ((int) $this->id); |
| 649 | 649 | |
| 650 | 650 | dol_syslog(get_class($this) . "::update_fk_bank", LOG_DEBUG); |
@@ -717,7 +717,7 @@ discard block |
||
| 717 | 717 | |
| 718 | 718 | |
| 719 | 719 | |
| 720 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 720 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 721 | 721 | /** |
| 722 | 722 | * Clean sensible object datas |
| 723 | 723 | * |
@@ -726,7 +726,7 @@ discard block |
||
| 726 | 726 | */ |
| 727 | 727 | protected function _cleanObjectDatas($object) |
| 728 | 728 | { |
| 729 | - // phpcs:enable |
|
| 729 | + // phpcs:enable |
|
| 730 | 730 | $object = parent::_cleanObjectDatas($object); |
| 731 | 731 | |
| 732 | 732 | unset($object->fk_statut); |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | return $this->LibStatut($this->statut, $mode); |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 199 | 199 | /** |
| 200 | 200 | * Return the label of a given status |
| 201 | 201 | * |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | */ |
| 206 | 206 | public function LibStatut($status, $mode = 0) |
| 207 | 207 | { |
| 208 | - // phpcs:enable |
|
| 208 | + // phpcs:enable |
|
| 209 | 209 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
| 210 | 210 | global $langs; |
| 211 | 211 | $langs->load("donations"); |
@@ -731,7 +731,7 @@ discard block |
||
| 731 | 731 | return $this->valid_promesse($this->id, $user->id, $notrigger); |
| 732 | 732 | } |
| 733 | 733 | |
| 734 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 734 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 735 | 735 | /** |
| 736 | 736 | * Validate a promise of donation |
| 737 | 737 | * |
@@ -742,7 +742,7 @@ discard block |
||
| 742 | 742 | */ |
| 743 | 743 | public function valid_promesse($id, $userid, $notrigger = 0) |
| 744 | 744 | { |
| 745 | - // phpcs:enable |
|
| 745 | + // phpcs:enable |
|
| 746 | 746 | global $user; |
| 747 | 747 | |
| 748 | 748 | $error = 0; |
@@ -808,7 +808,7 @@ discard block |
||
| 808 | 808 | } |
| 809 | 809 | } |
| 810 | 810 | |
| 811 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 811 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 812 | 812 | /** |
| 813 | 813 | * Set donation to status cancelled |
| 814 | 814 | * |
@@ -817,7 +817,7 @@ discard block |
||
| 817 | 817 | */ |
| 818 | 818 | public function set_cancel($id) |
| 819 | 819 | { |
| 820 | - // phpcs:enable |
|
| 820 | + // phpcs:enable |
|
| 821 | 821 | $sql = "UPDATE " . MAIN_DB_PREFIX . "don SET fk_statut = -1 WHERE rowid = " . ((int) $id); |
| 822 | 822 | |
| 823 | 823 | $resql = $this->db->query($sql); |
@@ -851,7 +851,7 @@ discard block |
||
| 851 | 851 | return $this->setStatusCommon($user, self::STATUS_VALIDATED, $notrigger, 'DON_REOPEN'); |
| 852 | 852 | } |
| 853 | 853 | |
| 854 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 854 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 855 | 855 | /** |
| 856 | 856 | * Sum of donations |
| 857 | 857 | * |
@@ -860,7 +860,7 @@ discard block |
||
| 860 | 860 | */ |
| 861 | 861 | public function sum_donations($param) |
| 862 | 862 | { |
| 863 | - // phpcs:enable |
|
| 863 | + // phpcs:enable |
|
| 864 | 864 | global $conf; |
| 865 | 865 | |
| 866 | 866 | $result = 0; |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | return $this->_cleanObjectDatas($this->don); |
| 341 | 341 | } |
| 342 | 342 | |
| 343 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 343 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 344 | 344 | /** |
| 345 | 345 | * Clean sensible object datas |
| 346 | 346 | * |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | */ |
| 350 | 350 | protected function _cleanObjectDatas($object) |
| 351 | 351 | { |
| 352 | - // phpcs:enable |
|
| 352 | + // phpcs:enable |
|
| 353 | 353 | $object = parent::_cleanObjectDatas($object); |
| 354 | 354 | |
| 355 | 355 | unset($object->note); |
@@ -643,15 +643,15 @@ discard block |
||
| 643 | 643 | */ |
| 644 | 644 | |
| 645 | 645 | /** |
| 646 | - * Close a shipment (Classify it as "Delivered") |
|
| 647 | - * |
|
| 648 | - * @param int $id Expedition ID |
|
| 649 | - * @param int $notrigger Disabled triggers |
|
| 650 | - * |
|
| 651 | - * @url POST {id}/close |
|
| 652 | - * |
|
| 653 | - * @return object |
|
| 654 | - */ |
|
| 646 | + * Close a shipment (Classify it as "Delivered") |
|
| 647 | + * |
|
| 648 | + * @param int $id Expedition ID |
|
| 649 | + * @param int $notrigger Disabled triggers |
|
| 650 | + * |
|
| 651 | + * @url POST {id}/close |
|
| 652 | + * |
|
| 653 | + * @return object |
|
| 654 | + */ |
|
| 655 | 655 | public function close($id, $notrigger = 0) |
| 656 | 656 | { |
| 657 | 657 | if (!DolibarrApiAccess::$user->hasRight('expedition', 'creer')) { |
@@ -683,7 +683,7 @@ discard block |
||
| 683 | 683 | return $this->_cleanObjectDatas($this->shipment); |
| 684 | 684 | } |
| 685 | 685 | |
| 686 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 686 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 687 | 687 | /** |
| 688 | 688 | * Clean sensible object datas |
| 689 | 689 | * |
@@ -692,7 +692,7 @@ discard block |
||
| 692 | 692 | */ |
| 693 | 693 | protected function _cleanObjectDatas($object) |
| 694 | 694 | { |
| 695 | - // phpcs:enable |
|
| 695 | + // phpcs:enable |
|
| 696 | 696 | $object = parent::_cleanObjectDatas($object); |
| 697 | 697 | |
| 698 | 698 | unset($object->canvas); |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | } |
| 272 | 272 | } |
| 273 | 273 | |
| 274 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 274 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 275 | 275 | /** |
| 276 | 276 | * Create a line |
| 277 | 277 | * |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | */ |
| 285 | 285 | public function create_line($origin_id, $qty, $fk_product, $description, $array_options = []) |
| 286 | 286 | { |
| 287 | - // phpcs:enable |
|
| 287 | + // phpcs:enable |
|
| 288 | 288 | $error = 0; |
| 289 | 289 | $idprod = $fk_product; |
| 290 | 290 | |
@@ -546,7 +546,7 @@ discard block |
||
| 546 | 546 | } |
| 547 | 547 | } |
| 548 | 548 | |
| 549 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 549 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 550 | 550 | /** |
| 551 | 551 | * Creating the delivery slip from an existing shipment |
| 552 | 552 | * |
@@ -556,7 +556,7 @@ discard block |
||
| 556 | 556 | */ |
| 557 | 557 | public function create_from_sending($user, $sending_id) |
| 558 | 558 | { |
| 559 | - // phpcs:enable |
|
| 559 | + // phpcs:enable |
|
| 560 | 560 | global $conf; |
| 561 | 561 | |
| 562 | 562 | $expedition = new Expedition($this->db); |
@@ -598,7 +598,7 @@ discard block |
||
| 598 | 598 | return $this->create($user); |
| 599 | 599 | } |
| 600 | 600 | |
| 601 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 601 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 602 | 602 | /** |
| 603 | 603 | * Update a livraison line (only extrafields) |
| 604 | 604 | * |
@@ -608,7 +608,7 @@ discard block |
||
| 608 | 608 | */ |
| 609 | 609 | public function update_line($id, $array_options = []) |
| 610 | 610 | { |
| 611 | - // phpcs:enable |
|
| 611 | + // phpcs:enable |
|
| 612 | 612 | global $conf; |
| 613 | 613 | $error = 0; |
| 614 | 614 | |
@@ -840,7 +840,7 @@ discard block |
||
| 840 | 840 | return $result; |
| 841 | 841 | } |
| 842 | 842 | |
| 843 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 843 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 844 | 844 | /** |
| 845 | 845 | * Load lines insto $this->lines. |
| 846 | 846 | * |
@@ -848,7 +848,7 @@ discard block |
||
| 848 | 848 | */ |
| 849 | 849 | public function fetch_lines() |
| 850 | 850 | { |
| 851 | - // phpcs:enable |
|
| 851 | + // phpcs:enable |
|
| 852 | 852 | $this->lines = array(); |
| 853 | 853 | |
| 854 | 854 | $sql = "SELECT ld.rowid, ld.fk_product, ld.description, ld.subprice, ld.total_ht, ld.qty as qty_shipped, ld.fk_origin_line, "; |
@@ -928,7 +928,7 @@ discard block |
||
| 928 | 928 | return $this->LibStatut($this->statut, $mode); |
| 929 | 929 | } |
| 930 | 930 | |
| 931 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 931 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 932 | 932 | /** |
| 933 | 933 | * Return the label of a given status |
| 934 | 934 | * |
@@ -938,7 +938,7 @@ discard block |
||
| 938 | 938 | */ |
| 939 | 939 | public function LibStatut($status, $mode) |
| 940 | 940 | { |
| 941 | - // phpcs:enable |
|
| 941 | + // phpcs:enable |
|
| 942 | 942 | global $langs; |
| 943 | 943 | |
| 944 | 944 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | return $this->LibStatut($this->status, $mode); |
| 362 | 362 | } |
| 363 | 363 | |
| 364 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 364 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 365 | 365 | /** |
| 366 | 366 | * Return the status |
| 367 | 367 | * |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | */ |
| 372 | 372 | public function LibStatut($status, $mode = 0) |
| 373 | 373 | { |
| 374 | - // phpcs:enable |
|
| 374 | + // phpcs:enable |
|
| 375 | 375 | if (empty($this->labelStatus)) { |
| 376 | 376 | global $langs; |
| 377 | 377 | //$langs->load("emailcollector"); |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | return $this->LibStatut($this->status, $mode); |
| 362 | 362 | } |
| 363 | 363 | |
| 364 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 364 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 365 | 365 | /** |
| 366 | 366 | * Return the status |
| 367 | 367 | * |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | */ |
| 372 | 372 | public function LibStatut($status, $mode = 0) |
| 373 | 373 | { |
| 374 | - // phpcs:enable |
|
| 374 | + // phpcs:enable |
|
| 375 | 375 | if (empty($this->labelStatus)) { |
| 376 | 376 | global $langs; |
| 377 | 377 | //$langs->load("emailcollector"); |