@@ -778,7 +778,7 @@ |
||
| 778 | 778 | <div style="text-align: center"> |
| 779 | 779 | <input type="submit" name="create" <?php if (!is_array($productCombination2ValuePairs1)) { |
| 780 | 780 | print ' disabled="disabled"'; |
| 781 | - } ?> value="<?php echo $action == 'add' ? $langs->trans('Create') : $langs->trans("Save") ?>" class="button button-save"> |
|
| 781 | + } ?> value="<?php echo $action == 'add' ? $langs->trans('Create') : $langs->trans("Save") ?>" class="button button-save"> |
|
| 782 | 782 | |
| 783 | 783 | <input type="submit" name="cancel" value="<?php echo $langs->trans("Cancel"); ?>" class="button button-cancel"> |
| 784 | 784 | </div> |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | |
| 160 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 160 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 161 | 161 | /** |
| 162 | 162 | * Load description int this->array_import_module, this->array_import_fields, ... of an importable dataset |
| 163 | 163 | * |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | */ |
| 168 | 168 | public function load_arrays($user, $filter = '') |
| 169 | 169 | { |
| 170 | - // phpcs:enable |
|
| 170 | + // phpcs:enable |
|
| 171 | 171 | global $langs, $conf; |
| 172 | 172 | |
| 173 | 173 | dol_syslog(get_class($this) . "::load_arrays user=" . $user->id . " filter=" . $filter); |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | |
| 288 | 288 | |
| 289 | 289 | |
| 290 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 290 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 291 | 291 | /** |
| 292 | 292 | * Build an import example file. |
| 293 | 293 | * Arrays this->array_export_xxx are already loaded for required datatoexport |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | */ |
| 301 | 301 | public function build_example_file($model, $headerlinefields, $contentlinevalues, $datatoimport) |
| 302 | 302 | { |
| 303 | - // phpcs:enable |
|
| 303 | + // phpcs:enable |
|
| 304 | 304 | global $conf, $langs; |
| 305 | 305 | |
| 306 | 306 | $indice = 0; |
@@ -783,7 +783,7 @@ discard block |
||
| 783 | 783 | return $this->LibStatut($this->status, $mode); |
| 784 | 784 | } |
| 785 | 785 | |
| 786 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 786 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 787 | 787 | /** |
| 788 | 788 | * Return the status |
| 789 | 789 | * |
@@ -793,7 +793,7 @@ discard block |
||
| 793 | 793 | */ |
| 794 | 794 | public function LibStatut($status, $mode = 0) |
| 795 | 795 | { |
| 796 | - // phpcs:enable |
|
| 796 | + // phpcs:enable |
|
| 797 | 797 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
| 798 | 798 | global $langs; |
| 799 | 799 | |
@@ -966,7 +966,7 @@ |
||
| 966 | 966 | /** |
| 967 | 967 | * @var array $suffix2numAsked map HTTP query parameter suffixes (like '1_0') to line indices so that |
| 968 | 968 | * extrafields from HTTP query can be assigned to the correct dispatch line |
| 969 | - */ |
|
| 969 | + */ |
|
| 970 | 970 | $suffix2numAsked = array(); |
| 971 | 971 | $dispatchLines = array(); |
| 972 | 972 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public $reception; |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * Constructor |
|
| 48 | + * Constructor |
|
| 49 | 49 | */ |
| 50 | 50 | public function __construct() |
| 51 | 51 | { |
@@ -623,15 +623,15 @@ discard block |
||
| 623 | 623 | */ |
| 624 | 624 | |
| 625 | 625 | /** |
| 626 | - * Close a reception (Classify it as "Delivered") |
|
| 627 | - * |
|
| 628 | - * @param int $id Reception ID |
|
| 629 | - * @param int $notrigger Disabled triggers |
|
| 630 | - * |
|
| 631 | - * @url POST {id}/close |
|
| 632 | - * |
|
| 633 | - * @return Object |
|
| 634 | - */ |
|
| 626 | + * Close a reception (Classify it as "Delivered") |
|
| 627 | + * |
|
| 628 | + * @param int $id Reception ID |
|
| 629 | + * @param int $notrigger Disabled triggers |
|
| 630 | + * |
|
| 631 | + * @url POST {id}/close |
|
| 632 | + * |
|
| 633 | + * @return Object |
|
| 634 | + */ |
|
| 635 | 635 | public function close($id, $notrigger = 0) |
| 636 | 636 | { |
| 637 | 637 | if (!DolibarrApiAccess::$user->hasRight('reception', 'creer')) { |
@@ -663,7 +663,7 @@ discard block |
||
| 663 | 663 | return $this->_cleanObjectDatas($this->reception); |
| 664 | 664 | } |
| 665 | 665 | |
| 666 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 666 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 667 | 667 | /** |
| 668 | 668 | * Clean sensible object datas |
| 669 | 669 | * |
@@ -672,7 +672,7 @@ discard block |
||
| 672 | 672 | */ |
| 673 | 673 | protected function _cleanObjectDatas($object) |
| 674 | 674 | { |
| 675 | - // phpcs:enable |
|
| 675 | + // phpcs:enable |
|
| 676 | 676 | $object = parent::_cleanObjectDatas($object); |
| 677 | 677 | |
| 678 | 678 | unset($object->thirdparty); // id already returned |
@@ -1181,7 +1181,7 @@ discard block |
||
| 1181 | 1181 | } |
| 1182 | 1182 | } |
| 1183 | 1183 | |
| 1184 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1184 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1185 | 1185 | /** |
| 1186 | 1186 | * Load lines |
| 1187 | 1187 | * |
@@ -1189,7 +1189,7 @@ discard block |
||
| 1189 | 1189 | */ |
| 1190 | 1190 | public function fetch_lines() |
| 1191 | 1191 | { |
| 1192 | - // phpcs:enable |
|
| 1192 | + // phpcs:enable |
|
| 1193 | 1193 | $this->lines = array(); |
| 1194 | 1194 | |
| 1195 | 1195 | require_once constant('DOL_DOCUMENT_ROOT') . '/fourn/class/fournisseur.commande.dispatch.class.php'; |
@@ -1334,7 +1334,7 @@ discard block |
||
| 1334 | 1334 | return $this->LibStatut($this->statut, $mode); |
| 1335 | 1335 | } |
| 1336 | 1336 | |
| 1337 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1337 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1338 | 1338 | /** |
| 1339 | 1339 | * Return label of a status |
| 1340 | 1340 | * |
@@ -1344,7 +1344,7 @@ discard block |
||
| 1344 | 1344 | */ |
| 1345 | 1345 | public function LibStatut($status, $mode) |
| 1346 | 1346 | { |
| 1347 | - // phpcs:enable |
|
| 1347 | + // phpcs:enable |
|
| 1348 | 1348 | global $langs; |
| 1349 | 1349 | |
| 1350 | 1350 | // List of long language codes for status |
@@ -1510,7 +1510,7 @@ discard block |
||
| 1510 | 1510 | } |
| 1511 | 1511 | } |
| 1512 | 1512 | |
| 1513 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1513 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1514 | 1514 | /** |
| 1515 | 1515 | * Fetch deliveries method and return an array. Load array this->meths(rowid=>label). |
| 1516 | 1516 | * |
@@ -1518,7 +1518,7 @@ discard block |
||
| 1518 | 1518 | */ |
| 1519 | 1519 | public function fetch_delivery_methods() |
| 1520 | 1520 | { |
| 1521 | - // phpcs:enable |
|
| 1521 | + // phpcs:enable |
|
| 1522 | 1522 | global $langs; |
| 1523 | 1523 | $this->meths = array(); |
| 1524 | 1524 | |
@@ -1536,7 +1536,7 @@ discard block |
||
| 1536 | 1536 | } |
| 1537 | 1537 | } |
| 1538 | 1538 | |
| 1539 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1539 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1540 | 1540 | /** |
| 1541 | 1541 | * Fetch all deliveries method and return an array. Load array this->listmeths. |
| 1542 | 1542 | * |
@@ -1545,7 +1545,7 @@ discard block |
||
| 1545 | 1545 | */ |
| 1546 | 1546 | public function list_delivery_methods($id = 0) |
| 1547 | 1547 | { |
| 1548 | - // phpcs:enable |
|
| 1548 | + // phpcs:enable |
|
| 1549 | 1549 | global $langs; |
| 1550 | 1550 | |
| 1551 | 1551 | $this->listmeths = array(); |
@@ -568,7 +568,7 @@ discard block |
||
| 568 | 568 | return $this->LibStatut($this->status, $mode); |
| 569 | 569 | } |
| 570 | 570 | |
| 571 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 571 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 572 | 572 | /** |
| 573 | 573 | * Return label of a status |
| 574 | 574 | * |
@@ -578,7 +578,7 @@ discard block |
||
| 578 | 578 | */ |
| 579 | 579 | public function LibStatut($status, $mode = 0) |
| 580 | 580 | { |
| 581 | - // phpcs:enable |
|
| 581 | + // phpcs:enable |
|
| 582 | 582 | global $langs; |
| 583 | 583 | $langs->load('orders'); |
| 584 | 584 | |
@@ -826,7 +826,7 @@ discard block |
||
| 826 | 826 | return $this->LibStatut($this->status, $mode); |
| 827 | 827 | } |
| 828 | 828 | |
| 829 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 829 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 830 | 830 | /** |
| 831 | 831 | * Return the label of a given status |
| 832 | 832 | * |
@@ -836,7 +836,7 @@ discard block |
||
| 836 | 836 | */ |
| 837 | 837 | public function LibStatut($status, $mode = 0) |
| 838 | 838 | { |
| 839 | - // phpcs:enable |
|
| 839 | + // phpcs:enable |
|
| 840 | 840 | global $langs; |
| 841 | 841 | |
| 842 | 842 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
@@ -826,7 +826,7 @@ discard block |
||
| 826 | 826 | return $this->LibStatut($this->status, $mode); |
| 827 | 827 | } |
| 828 | 828 | |
| 829 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 829 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 830 | 830 | /** |
| 831 | 831 | * Return the label of a given status |
| 832 | 832 | * |
@@ -836,7 +836,7 @@ discard block |
||
| 836 | 836 | */ |
| 837 | 837 | public function LibStatut($status, $mode = 0) |
| 838 | 838 | { |
| 839 | - // phpcs:enable |
|
| 839 | + // phpcs:enable |
|
| 840 | 840 | global $langs; |
| 841 | 841 | |
| 842 | 842 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |