@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * $price Can be set to update AWP (Average Weighted Price) when you make a stock increase |
| 157 | 157 | * $dlc Eat-by date. Will be used if lot does not exists yet and will be created. |
| 158 | 158 | * $dluo Sell-by date. Will be used if lot does not exists yet and will be created. |
| 159 | - * |
|
| 159 | + * |
|
| 160 | 160 | * @param int $product_id Id product id {@min 1} {@from body} {@required true} |
| 161 | 161 | * @param int $warehouse_id Id warehouse {@min 1} {@from body} {@required true} |
| 162 | 162 | * @param float $qty Qty to add (Use negative value for a stock decrease) {@from body} {@required true} |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | |
| 279 | 279 | |
| 280 | 280 | |
| 281 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 281 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 282 | 282 | /** |
| 283 | 283 | * Clean sensible object datas |
| 284 | 284 | * |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | */ |
| 288 | 288 | protected function _cleanObjectDatas($object) |
| 289 | 289 | { |
| 290 | - // phpcs:enable |
|
| 290 | + // phpcs:enable |
|
| 291 | 291 | $object = parent::_cleanObjectDatas($object); |
| 292 | 292 | |
| 293 | 293 | // Remove useless data |
@@ -598,7 +598,7 @@ discard block |
||
| 598 | 598 | } |
| 599 | 599 | |
| 600 | 600 | |
| 601 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 601 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 602 | 602 | /** |
| 603 | 603 | * Return list of all warehouses |
| 604 | 604 | * |
@@ -607,7 +607,7 @@ discard block |
||
| 607 | 607 | */ |
| 608 | 608 | public function list_array($status = 1) |
| 609 | 609 | { |
| 610 | - // phpcs:enable |
|
| 610 | + // phpcs:enable |
|
| 611 | 611 | $liste = array(); |
| 612 | 612 | |
| 613 | 613 | $sql = "SELECT rowid, ref as label"; |
@@ -629,7 +629,7 @@ discard block |
||
| 629 | 629 | return $liste; |
| 630 | 630 | } |
| 631 | 631 | |
| 632 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 632 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 633 | 633 | /** |
| 634 | 634 | * Return number of unique different product into a warehouse |
| 635 | 635 | * |
@@ -637,7 +637,7 @@ discard block |
||
| 637 | 637 | */ |
| 638 | 638 | public function nb_different_products() |
| 639 | 639 | { |
| 640 | - // phpcs:enable |
|
| 640 | + // phpcs:enable |
|
| 641 | 641 | $ret = array(); |
| 642 | 642 | |
| 643 | 643 | $sql = "SELECT count(distinct p.rowid) as nb"; |
@@ -660,7 +660,7 @@ discard block |
||
| 660 | 660 | return $ret; |
| 661 | 661 | } |
| 662 | 662 | |
| 663 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 663 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 664 | 664 | /** |
| 665 | 665 | * Return stock and value of warehosue |
| 666 | 666 | * |
@@ -669,7 +669,7 @@ discard block |
||
| 669 | 669 | public function nb_products() |
| 670 | 670 | { |
| 671 | 671 | global $conf; |
| 672 | - // phpcs:enable |
|
| 672 | + // phpcs:enable |
|
| 673 | 673 | $ret = array(); |
| 674 | 674 | |
| 675 | 675 | //For MultiCompany PMP per entity |
@@ -719,7 +719,7 @@ discard block |
||
| 719 | 719 | return $this->LibStatut($this->statut, $mode); |
| 720 | 720 | } |
| 721 | 721 | |
| 722 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 722 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 723 | 723 | /** |
| 724 | 724 | * Return label of a given status |
| 725 | 725 | * |
@@ -729,7 +729,7 @@ discard block |
||
| 729 | 729 | */ |
| 730 | 730 | public function LibStatut($status, $mode = 0) |
| 731 | 731 | { |
| 732 | - // phpcs:enable |
|
| 732 | + // phpcs:enable |
|
| 733 | 733 | global $langs; |
| 734 | 734 | |
| 735 | 735 | $statusType = 'status5'; |
@@ -903,7 +903,7 @@ discard block |
||
| 903 | 903 | return 1; |
| 904 | 904 | } |
| 905 | 905 | |
| 906 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 906 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 907 | 907 | /** |
| 908 | 908 | * Return full path to current warehouse |
| 909 | 909 | * |
@@ -911,7 +911,7 @@ discard block |
||
| 911 | 911 | */ |
| 912 | 912 | public function get_full_arbo() |
| 913 | 913 | { |
| 914 | - // phpcs:enable |
|
| 914 | + // phpcs:enable |
|
| 915 | 915 | $TArbo = array($this->label); |
| 916 | 916 | |
| 917 | 917 | $protection = 100; // We limit depth of warehouses to 100 |
@@ -944,7 +944,7 @@ discard block |
||
| 944 | 944 | return implode(' >> ', array_reverse($TArbo)); |
| 945 | 945 | } |
| 946 | 946 | |
| 947 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 947 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 948 | 948 | /** |
| 949 | 949 | * Return array of children warehouses ids from $id warehouse (recursive function) |
| 950 | 950 | * |
@@ -954,7 +954,7 @@ discard block |
||
| 954 | 954 | */ |
| 955 | 955 | public function get_children_warehouses($id, &$TChildWarehouses) |
| 956 | 956 | { |
| 957 | - // phpcs:enable |
|
| 957 | + // phpcs:enable |
|
| 958 | 958 | |
| 959 | 959 | $sql = "SELECT rowid |
| 960 | 960 | FROM " . $this->db->prefix() . "entrepot |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | /** |
| 167 | 167 | * Warehouse open and any operations are allowed, but warehouse is not included into calculation of stock. |
| 168 | 168 | */ |
| 169 | - const STATUS_OPENEXT_ALL = 3; // TODO Implement this |
|
| 169 | + const STATUS_OPENEXT_ALL = 3; // TODO Implement this |
|
| 170 | 170 | |
| 171 | 171 | |
| 172 | 172 | |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | $this->db = $db; |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 165 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 166 | 166 | /** |
| 167 | 167 | * Add a movement of stock (in one direction only). |
| 168 | 168 | * This is the lowest level method to record a stock change. There is no control if warehouse is open or not. |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | */ |
| 193 | 193 | public function _create($user, $fk_product, $entrepot_id, $qty, $type, $price = 0, $label = '', $inventorycode = '', $datem = '', $eatby = '', $sellby = '', $batch = '', $skip_batch = false, $id_product_batch = 0, $disablestockchangeforsubproduct = 0, $donotcleanemptylines = 0, $force_update_batch = false) |
| 194 | 194 | { |
| 195 | - // phpcs:enable |
|
| 195 | + // phpcs:enable |
|
| 196 | 196 | global $conf, $langs; |
| 197 | 197 | |
| 198 | 198 | require_once constant('DOL_DOCUMENT_ROOT') . '/product/class/product.class.php'; |
@@ -963,7 +963,7 @@ discard block |
||
| 963 | 963 | return $result; |
| 964 | 964 | } |
| 965 | 965 | |
| 966 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 966 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 967 | 967 | /** |
| 968 | 968 | * Return Url link of origin object |
| 969 | 969 | * |
@@ -973,7 +973,7 @@ discard block |
||
| 973 | 973 | */ |
| 974 | 974 | public function get_origin($origin_id, $origin_type) |
| 975 | 975 | { |
| 976 | - // phpcs:enable |
|
| 976 | + // phpcs:enable |
|
| 977 | 977 | $origin = ''; |
| 978 | 978 | |
| 979 | 979 | switch ($origin_type) { |
@@ -1189,7 +1189,7 @@ discard block |
||
| 1189 | 1189 | return $this->LibStatut($mode); |
| 1190 | 1190 | } |
| 1191 | 1191 | |
| 1192 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1192 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1193 | 1193 | /** |
| 1194 | 1194 | * Return the label of the status |
| 1195 | 1195 | * |
@@ -1198,7 +1198,7 @@ discard block |
||
| 1198 | 1198 | */ |
| 1199 | 1199 | public function LibStatut($mode = 0) |
| 1200 | 1200 | { |
| 1201 | - // phpcs:enable |
|
| 1201 | + // phpcs:enable |
|
| 1202 | 1202 | global $langs; |
| 1203 | 1203 | |
| 1204 | 1204 | if ($mode == 0 || $mode == 1) { |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | 'skip_batch' => &$skip_batch, |
| 220 | 220 | 'id_product_batch' => &$id_product_batch |
| 221 | 221 | ); |
| 222 | - $reshook = $hookmanager->executeHooks('stockMovementCreate', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks |
|
| 222 | + $reshook = $hookmanager->executeHooks('stockMovementCreate', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks |
|
| 223 | 223 | |
| 224 | 224 | if ($reshook < 0) { |
| 225 | 225 | if (!empty($hookmanager->resPrint)) { |
@@ -708,8 +708,8 @@ discard block |
||
| 708 | 708 | $this->price = $obj->price; |
| 709 | 709 | $this->fk_user_author = $obj->fk_user_author; |
| 710 | 710 | $this->label = $obj->label; |
| 711 | - $this->fk_origin = $obj->origin_id; // For backward compatibility |
|
| 712 | - $this->origintype = $obj->origin_type; // For backward compatibility |
|
| 711 | + $this->fk_origin = $obj->origin_id; // For backward compatibility |
|
| 712 | + $this->origintype = $obj->origin_type; // For backward compatibility |
|
| 713 | 713 | $this->origin_id = $obj->origin_id; |
| 714 | 714 | $this->origin_type = $obj->origin_type; |
| 715 | 715 | $this->inventorycode = $obj->inventorycode; |
@@ -944,8 +944,8 @@ discard block |
||
| 944 | 944 | } else { // product_batch record not found |
| 945 | 945 | $pdluo->fk_product_stock = $vfk_product_stock; |
| 946 | 946 | $pdluo->qty = $qty; |
| 947 | - $pdluo->eatby = empty($dluo['eatby']) ? '' : $dluo['eatby']; // No more used. Now eatby date is store in table of lot, no more into prouct_batch table. |
|
| 948 | - $pdluo->sellby = empty($dluo['sellby']) ? '' : $dluo['sellby']; // No more used. Now sellby date is store in table of lot, no more into prouct_batch table. |
|
| 947 | + $pdluo->eatby = empty($dluo['eatby']) ? '' : $dluo['eatby']; // No more used. Now eatby date is store in table of lot, no more into prouct_batch table. |
|
| 948 | + $pdluo->sellby = empty($dluo['sellby']) ? '' : $dluo['sellby']; // No more used. Now sellby date is store in table of lot, no more into prouct_batch table. |
|
| 949 | 949 | $pdluo->batch = $vbatchnumber; |
| 950 | 950 | |
| 951 | 951 | $result = $pdluo->create($user, 1); |
@@ -547,7 +547,7 @@ discard block |
||
| 547 | 547 | return $this->LibStatut($this->status, $mode); |
| 548 | 548 | } |
| 549 | 549 | |
| 550 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 550 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 551 | 551 | /** |
| 552 | 552 | * Renvoi le libelle d'un status donne |
| 553 | 553 | * |
@@ -557,7 +557,7 @@ discard block |
||
| 557 | 557 | */ |
| 558 | 558 | public function LibStatut($status, $mode = 0) |
| 559 | 559 | { |
| 560 | - // phpcs:enable |
|
| 560 | + // phpcs:enable |
|
| 561 | 561 | global $langs; |
| 562 | 562 | |
| 563 | 563 | if ($mode == 0) { |
@@ -1062,7 +1062,7 @@ discard block |
||
| 1062 | 1062 | return $this->LibStatut(0, $mode); |
| 1063 | 1063 | } |
| 1064 | 1064 | |
| 1065 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1065 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1066 | 1066 | /** |
| 1067 | 1067 | * Return label of a given status |
| 1068 | 1068 | * |
@@ -1072,7 +1072,7 @@ discard block |
||
| 1072 | 1072 | */ |
| 1073 | 1073 | public function LibStatut($status, $mode = 0) |
| 1074 | 1074 | { |
| 1075 | - // phpcs:enable |
|
| 1075 | + // phpcs:enable |
|
| 1076 | 1076 | //global $langs; |
| 1077 | 1077 | |
| 1078 | 1078 | //$langs->load('stocks'); |
@@ -1030,7 +1030,7 @@ |
||
| 1030 | 1030 | $obj = $this->db->fetch_object($result); |
| 1031 | 1031 | $this->stats_mo['customers_' . $role] = $obj->nb_customers ? $obj->nb_customers : 0; |
| 1032 | 1032 | $this->stats_mo['nb_' . $role] = $obj->nb ? $obj->nb : 0; |
| 1033 | - $this->stats_mo['qty_' . $role] = $obj->qty ? price2num($obj->qty, 'MS') : 0; // qty may be a float due to the SUM() |
|
| 1033 | + $this->stats_mo['qty_' . $role] = $obj->qty ? price2num($obj->qty, 'MS') : 0; // qty may be a float due to the SUM() |
|
| 1034 | 1034 | } else { |
| 1035 | 1035 | $this->error = $this->db->error(); |
| 1036 | 1036 | $error++; |
@@ -17,10 +17,10 @@ discard block |
||
| 17 | 17 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | - use Luracast\Restler\RestException; |
|
| 20 | + use Luracast\Restler\RestException; |
|
| 21 | 21 | |
| 22 | - require_once constant('DOL_DOCUMENT_ROOT') . '/product/stock/class/entrepot.class.php'; |
|
| 23 | - require_once constant('DOL_DOCUMENT_ROOT') . '/product/class/product.class.php'; |
|
| 22 | + require_once constant('DOL_DOCUMENT_ROOT') . '/product/stock/class/entrepot.class.php'; |
|
| 23 | + require_once constant('DOL_DOCUMENT_ROOT') . '/product/class/product.class.php'; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * API class for warehouses |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | |
| 265 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 265 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 266 | 266 | /** |
| 267 | 267 | * Clean sensible object datas |
| 268 | 268 | * |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | */ |
| 272 | 272 | protected function _cleanObjectDatas($object) |
| 273 | 273 | { |
| 274 | - // phpcs:enable |
|
| 274 | + // phpcs:enable |
|
| 275 | 275 | $object = parent::_cleanObjectDatas($object); |
| 276 | 276 | |
| 277 | 277 | // Remove the subscriptions because they are handled as a subresource. |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $confirm = GETPOST('confirm', 'alpha'); |
| 53 | 53 | $cancel = GETPOST('cancel', 'aZ09'); |
| 54 | 54 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : str_replace('_', '', basename(dirname(__FILE__)) . basename(__FILE__, '.php')); // To manage different context of search |
| 55 | -$backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used |
|
| 55 | +$backtopage = GETPOST('backtopage', 'alpha'); // if not set, a default page will be used |
|
| 56 | 56 | $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used |
| 57 | 57 | $qty = GETPOSTINT('qty'); |
| 58 | 58 | $fk_product = GETPOSTINT('fk_product'); |
@@ -556,28 +556,28 @@ discard block |
||
| 556 | 556 | $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('ToClone'), $langs->trans('ConfirmCloneAsk', $object->ref), 'confirm_clone', $formquestion, 'yes', 1); |
| 557 | 557 | } elseif ($action == 'destock') { // Destock confirmation |
| 558 | 558 | // Create an array for form |
| 559 | - $formquestion = array( 'text' => '', |
|
| 559 | + $formquestion = array('text' => '', |
|
| 560 | 560 | 0 => array('type' => 'text', 'name' => 'label', 'label' => $langs->trans("Label"), 'value' => $langs->trans('ConfirmDestock', $object->ref), 'size' => 40), |
| 561 | 561 | 1 => array('type' => 'text', 'name' => 'inventorycode', 'label' => $langs->trans("InventoryCode"), 'value' => dol_print_date(dol_now(), '%y%m%d%H%M%S'), 'size' => 25) |
| 562 | 562 | ); |
| 563 | 563 | $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('DestockAllProduct'), '', 'confirm_destock', $formquestion, 'yes', 1); |
| 564 | 564 | } elseif ($action == 'destockcancel') { // Destock confirmation cancel |
| 565 | 565 | // Create an array for form |
| 566 | - $formquestion = array( 'text' => '', |
|
| 566 | + $formquestion = array('text' => '', |
|
| 567 | 567 | 0 => array('type' => 'text', 'name' => 'label', 'label' => $langs->trans("Label"), 'value' => $langs->trans('ConfirmDestockCancel', $object->ref), 'size' => 40), |
| 568 | 568 | 1 => array('type' => 'text', 'name' => 'inventorycode', 'label' => $langs->trans("InventoryCode"), 'value' => dol_print_date(dol_now(), '%y%m%d%H%M%S'), 'size' => 25) |
| 569 | 569 | ); |
| 570 | 570 | $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('DestockAllProductCancel'), '', 'confirm_destockcancel', $formquestion, 'yes', 1); |
| 571 | 571 | } elseif ($action == 'addstock') { // Addstock confirmation |
| 572 | 572 | // Create an array for form |
| 573 | - $formquestion = array( 'text' => '', |
|
| 573 | + $formquestion = array('text' => '', |
|
| 574 | 574 | 0 => array('type' => 'text', 'name' => 'label', 'label' => $langs->trans("Label") . ' :', 'value' => $langs->trans('ConfirmAddStock', $object->ref), 'size' => 40), |
| 575 | 575 | 1 => array('type' => 'text', 'name' => 'inventorycode', 'label' => $langs->trans("InventoryCode"), 'value' => dol_print_date(dol_now(), '%y%m%d%H%M%S'), 'size' => 25) |
| 576 | 576 | ); |
| 577 | 577 | $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('AddStockAllProduct'), '', 'confirm_addstock', $formquestion, 'yes', 1); |
| 578 | 578 | } elseif ($action == 'addstockcancel') { // Addstock confirmation cancel |
| 579 | 579 | // Create an array for form |
| 580 | - $formquestion = array( 'text' => '', |
|
| 580 | + $formquestion = array('text' => '', |
|
| 581 | 581 | 0 => array('type' => 'text', 'name' => 'label', 'label' => $langs->trans("Label") . ' :', 'value' => $langs->trans('ConfirmAddStockCancel', $object->ref), 'size' => 40), |
| 582 | 582 | 1 => array('type' => 'text', 'name' => 'inventorycode', 'label' => $langs->trans("InventoryCode"), 'value' => dol_print_date(dol_now(), '%y%m%d%H%M%S'), 'size' => 25) |
| 583 | 583 | ); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | // Default sort order (if not yet defined by previous GETPOST) |
| 79 | 79 | if (!$sortfield) { |
| 80 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
| 80 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
| 81 | 81 | $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition. |
| 82 | 82 | } |
| 83 | 83 | if (!$sortorder) { |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | // Output page |
| 348 | 348 | // -------------------------------------------------------------------- |
| 349 | 349 | |
| 350 | -llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist mod-product page-stock-stocktransfer_stocktransfer_list'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll |
|
| 350 | +llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist mod-product page-stock-stocktransfer_stocktransfer_list'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll |
|
| 351 | 351 | |
| 352 | 352 | // Example : Adding jquery code |
| 353 | 353 | // print '<script type="text/javascript"> |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | } |
| 476 | 476 | |
| 477 | 477 | $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; |
| 478 | -$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
| 478 | +$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
| 479 | 479 | $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : ''); |
| 480 | 480 | $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); |
| 481 | 481 | |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && !in_array($key, array('id', 'rowid', 'ref', 'status')) && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) { |
| 567 | 567 | $cssforfield .= ($cssforfield ? ' ' : '') . 'right'; |
| 568 | 568 | } |
| 569 | - $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
| 569 | + $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
| 570 | 570 | if (!empty($arrayfields['t.' . $key]['checked'])) { |
| 571 | 571 | print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n"; |
| 572 | 572 | $totalarray['nbfield']++; |
@@ -855,7 +855,7 @@ discard block |
||
| 855 | 855 | return $this->LibStatut($this->status, $mode); |
| 856 | 856 | } |
| 857 | 857 | |
| 858 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 858 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 859 | 859 | /** |
| 860 | 860 | * Return the status |
| 861 | 861 | * |
@@ -865,7 +865,7 @@ discard block |
||
| 865 | 865 | */ |
| 866 | 866 | public function LibStatut($status, $mode = 0) |
| 867 | 867 | { |
| 868 | - // phpcs:enable |
|
| 868 | + // phpcs:enable |
|
| 869 | 869 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
| 870 | 870 | global $langs; |
| 871 | 871 | //$langs->load("stocktransfer@stocktransfer"); |