@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $also_cancel_consumed_and_produced_lines = (GETPOST('alsoCancelConsumedAndProducedLines', 'alpha') ? 1 : 0); |
145 | 145 | $result = $object->cancel($user, 0, $also_cancel_consumed_and_produced_lines); |
146 | 146 | if ($result > 0) { |
147 | - header("Location: " . DOL_URL_ROOT.'/mrp/mo_card.php?id=' . $object->id); |
|
147 | + header("Location: ".DOL_URL_ROOT.'/mrp/mo_card.php?id='.$object->id); |
|
148 | 148 | exit; |
149 | 149 | } else { |
150 | 150 | $action = ''; |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $also_cancel_consumed_and_produced_lines = (GETPOST('alsoCancelConsumedAndProducedLines', 'alpha') ? 1 : 0); |
155 | 155 | $result = $object->delete($user, 0, $also_cancel_consumed_and_produced_lines); |
156 | 156 | if ($result > 0) { |
157 | - header("Location: " . $backurlforlist); |
|
157 | + header("Location: ".$backurlforlist); |
|
158 | 158 | exit; |
159 | 159 | } else { |
160 | 160 | $action = ''; |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | 'value' => !getDolGlobalString('MO_ALSO_CANCEL_CONSUMED_AND_PRODUCED_LINES_BY_DEFAULT') ? 0 : 1 |
634 | 634 | ), |
635 | 635 | ); |
636 | - $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('CancelMo'), $langs->trans('ConfirmCancelMo'), 'confirm_cancel', $formquestion, 0, 1); |
|
636 | + $formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('CancelMo'), $langs->trans('ConfirmCancelMo'), 'confirm_cancel', $formquestion, 0, 1); |
|
637 | 637 | } |
638 | 638 | |
639 | 639 | // Call Hook formConfirm |
@@ -959,9 +959,9 @@ discard block |
||
959 | 959 | print '<td></td>'; |
960 | 960 | } |
961 | 961 | |
962 | - $colspan="3"; |
|
962 | + $colspan = "3"; |
|
963 | 963 | if (isModEnabled('stock')) { |
964 | - $colspan++;; |
|
964 | + $colspan++; ; |
|
965 | 965 | } |
966 | 966 | if (isModEnabled('productbatch')) { |
967 | 967 | $colspan++; |
@@ -997,7 +997,7 @@ discard block |
||
997 | 997 | |
998 | 998 | // Lines to consume |
999 | 999 | |
1000 | - $bomcostupdated = 0; // We will recalculate the unitary cost to produce a product using the real "products to consume into MO" |
|
1000 | + $bomcostupdated = 0; // We will recalculate the unitary cost to produce a product using the real "products to consume into MO" |
|
1001 | 1001 | |
1002 | 1002 | if (!empty($object->lines)) { |
1003 | 1003 | $nblinetoconsume = 0; |
@@ -1044,15 +1044,15 @@ discard block |
||
1044 | 1044 | } |
1045 | 1045 | |
1046 | 1046 | if ($qtyhourservice && $qtyhourforline) { |
1047 | - $linecost = price2num(($qtyhourforline / $qtyhourservice * $costprice) / $object->qty, 'MT'); // price for line for all quantities |
|
1048 | - $bomcostupdated += price2num(($qtyhourforline / $qtyhourservice * $costprice) / $object->qty, 'MU'); // same but with full accuracy |
|
1047 | + $linecost = price2num(($qtyhourforline / $qtyhourservice * $costprice) / $object->qty, 'MT'); // price for line for all quantities |
|
1048 | + $bomcostupdated += price2num(($qtyhourforline / $qtyhourservice * $costprice) / $object->qty, 'MU'); // same but with full accuracy |
|
1049 | 1049 | } else { |
1050 | - $linecost = price2num(($line->qty * $costprice) / $object->qty, 'MT'); // price for line for all quantities |
|
1051 | - $bomcostupdated += price2num(($line->qty * $costprice) / $object->qty, 'MU'); // same but with full accuracy |
|
1050 | + $linecost = price2num(($line->qty * $costprice) / $object->qty, 'MT'); // price for line for all quantities |
|
1051 | + $bomcostupdated += price2num(($line->qty * $costprice) / $object->qty, 'MU'); // same but with full accuracy |
|
1052 | 1052 | } |
1053 | 1053 | } else { |
1054 | - $linecost = price2num(($line->qty * $costprice) / $object->qty, 'MT'); // price for line for all quantities |
|
1055 | - $bomcostupdated += price2num(($line->qty * $costprice) / $object->qty, 'MU'); // same but with full accuracy |
|
1054 | + $linecost = price2num(($line->qty * $costprice) / $object->qty, 'MT'); // price for line for all quantities |
|
1055 | + $bomcostupdated += price2num(($line->qty * $costprice) / $object->qty, 'MU'); // same but with full accuracy |
|
1056 | 1056 | } |
1057 | 1057 | } |
1058 | 1058 | |
@@ -1073,23 +1073,23 @@ discard block |
||
1073 | 1073 | $alreadyconsumed += $line2['qty']; |
1074 | 1074 | } |
1075 | 1075 | } |
1076 | - $suffix = '_' . $line->id; |
|
1077 | - print '<!-- Line to dispatch ' . $suffix . ' (line edited) -->' . "\n"; |
|
1076 | + $suffix = '_'.$line->id; |
|
1077 | + print '<!-- Line to dispatch '.$suffix.' (line edited) -->'."\n"; |
|
1078 | 1078 | // hidden fields for js function |
1079 | - print '<input id="qty_ordered' . $suffix . '" type="hidden" value="' . $line->qty . '">'; |
|
1079 | + print '<input id="qty_ordered'.$suffix.'" type="hidden" value="'.$line->qty.'">'; |
|
1080 | 1080 | // Duration - Time spent |
1081 | - print '<input id="qty_dispatched' . $suffix . '" type="hidden" value="' . $alreadyconsumed . '">'; |
|
1081 | + print '<input id="qty_dispatched'.$suffix.'" type="hidden" value="'.$alreadyconsumed.'">'; |
|
1082 | 1082 | print '<tr>'; |
1083 | - print '<input name="lineid" type="hidden" value="' . $line->id . '">'; |
|
1083 | + print '<input name="lineid" type="hidden" value="'.$line->id.'">'; |
|
1084 | 1084 | |
1085 | 1085 | // Product |
1086 | - print '<td>' . $tmpproduct->getNomUrl(1); |
|
1087 | - print '<br><div class="opacitymedium small tdoverflowmax150" title="' . dol_escape_htmltag($tmpproduct->label) . '">' . $tmpproduct->label . '</span>'; |
|
1086 | + print '<td>'.$tmpproduct->getNomUrl(1); |
|
1087 | + print '<br><div class="opacitymedium small tdoverflowmax150" title="'.dol_escape_htmltag($tmpproduct->label).'">'.$tmpproduct->label.'</span>'; |
|
1088 | 1088 | print '</td>'; |
1089 | 1089 | |
1090 | 1090 | // Qty |
1091 | 1091 | print '<td class="right nowraponall">'; |
1092 | - print '<input class="width40 right" name="qty_lineProduce" value="'. $line->qty.'">'; |
|
1092 | + print '<input class="width40 right" name="qty_lineProduce" value="'.$line->qty.'">'; |
|
1093 | 1093 | print '</td>'; |
1094 | 1094 | |
1095 | 1095 | // Unit |
@@ -1107,7 +1107,7 @@ discard block |
||
1107 | 1107 | |
1108 | 1108 | // Qty consumed |
1109 | 1109 | print '<td class="right">'; |
1110 | - print ' ' . price2num($alreadyconsumed, 'MS'); |
|
1110 | + print ' '.price2num($alreadyconsumed, 'MS'); |
|
1111 | 1111 | print '</td>'; |
1112 | 1112 | |
1113 | 1113 | // Warehouse / Workstation |
@@ -1126,7 +1126,7 @@ discard block |
||
1126 | 1126 | if ($tmpproduct->stock_reel < ($line->qty - $alreadyconsumed)) { |
1127 | 1127 | print img_warning($langs->trans('StockTooLow')).' '; |
1128 | 1128 | } |
1129 | - print '<span class="left">'. $tmpproduct->stock_reel .' </span>'; |
|
1129 | + print '<span class="left">'.$tmpproduct->stock_reel.' </span>'; |
|
1130 | 1130 | } |
1131 | 1131 | print '</td>'; |
1132 | 1132 | } |
@@ -1137,8 +1137,8 @@ discard block |
||
1137 | 1137 | } |
1138 | 1138 | // Split + SplitAll + Edit line + Delete |
1139 | 1139 | print '<td colspan="'.(3 + ($object->status == Mo::STATUS_DRAFT ? 1 : 0) + ($permissiontodelete ? 1 : 0)).'">'; |
1140 | - print '<input type="submit" class="button buttongen button-add small nominwidth" name="save" value="' . $langs->trans("Save") . '">'; |
|
1141 | - print '<input type="submit" class="button buttongen button-cancel small nominwidth" name="cancel" value="' . $langs->trans("Cancel") . '">'; |
|
1140 | + print '<input type="submit" class="button buttongen button-add small nominwidth" name="save" value="'.$langs->trans("Save").'">'; |
|
1141 | + print '<input type="submit" class="button buttongen button-cancel small nominwidth" name="cancel" value="'.$langs->trans("Cancel").'">'; |
|
1142 | 1142 | print '</td>'; |
1143 | 1143 | |
1144 | 1144 | print '</tr>'; |
@@ -1155,29 +1155,29 @@ discard block |
||
1155 | 1155 | } |
1156 | 1156 | } |
1157 | 1157 | } else { |
1158 | - $suffix = '_' . $line->id; |
|
1159 | - print '<!-- Line to dispatch ' . $suffix . ' -->' . "\n"; |
|
1158 | + $suffix = '_'.$line->id; |
|
1159 | + print '<!-- Line to dispatch '.$suffix.' -->'."\n"; |
|
1160 | 1160 | // hidden fields for js function |
1161 | - print '<input id="qty_ordered' . $suffix . '" type="hidden" value="' . $line->qty . '">'; |
|
1162 | - print '<input id="qty_dispatched' . $suffix . '" type="hidden" value="' . $alreadyconsumed . '">'; |
|
1161 | + print '<input id="qty_ordered'.$suffix.'" type="hidden" value="'.$line->qty.'">'; |
|
1162 | + print '<input id="qty_dispatched'.$suffix.'" type="hidden" value="'.$alreadyconsumed.'">'; |
|
1163 | 1163 | |
1164 | - print '<tr data-line-id="' . $line->id . '">'; |
|
1164 | + print '<tr data-line-id="'.$line->id.'">'; |
|
1165 | 1165 | |
1166 | 1166 | // Product |
1167 | - print '<td>' . $tmpproduct->getNomUrl(1); |
|
1168 | - print '<br><div class="opacitymedium small tdoverflowmax150" title="' . dol_escape_htmltag($tmpproduct->label) . '">' . $tmpproduct->label . '</div>'; |
|
1167 | + print '<td>'.$tmpproduct->getNomUrl(1); |
|
1168 | + print '<br><div class="opacitymedium small tdoverflowmax150" title="'.dol_escape_htmltag($tmpproduct->label).'">'.$tmpproduct->label.'</div>'; |
|
1169 | 1169 | print '</td>'; |
1170 | 1170 | |
1171 | 1171 | // Qty |
1172 | 1172 | print '<td class="right nowraponall">'; |
1173 | 1173 | $help = ''; |
1174 | 1174 | if ($line->qty_frozen) { |
1175 | - $help = ($help ? '<br>' : '') . '<strong>' . $langs->trans("QuantityFrozen") . '</strong>: ' . yn(1) . ' (' . $langs->trans("QuantityConsumedInvariable") . ')'; |
|
1176 | - print $form->textwithpicto('', $help, -1, 'lock') . ' '; |
|
1175 | + $help = ($help ? '<br>' : '').'<strong>'.$langs->trans("QuantityFrozen").'</strong>: '.yn(1).' ('.$langs->trans("QuantityConsumedInvariable").')'; |
|
1176 | + print $form->textwithpicto('', $help, -1, 'lock').' '; |
|
1177 | 1177 | } |
1178 | 1178 | if ($line->disable_stock_change) { |
1179 | - $help = ($help ? '<br>' : '') . '<strong>' . $langs->trans("DisableStockChange") . '</strong>: ' . yn(1) . ' (' . (($tmpproduct->type == Product::TYPE_SERVICE && !getDolGlobalString('STOCK_SUPPORTS_SERVICES')) ? $langs->trans("NoStockChangeOnServices") : $langs->trans("DisableStockChangeHelp")) . ')'; |
|
1180 | - print $form->textwithpicto('', $help, -1, 'help') . ' '; |
|
1179 | + $help = ($help ? '<br>' : '').'<strong>'.$langs->trans("DisableStockChange").'</strong>: '.yn(1).' ('.(($tmpproduct->type == Product::TYPE_SERVICE && !getDolGlobalString('STOCK_SUPPORTS_SERVICES')) ? $langs->trans("NoStockChangeOnServices") : $langs->trans("DisableStockChangeHelp")).')'; |
|
1180 | + print $form->textwithpicto('', $help, -1, 'help').' '; |
|
1181 | 1181 | } |
1182 | 1182 | print price2num($line->qty, 'MS'); |
1183 | 1183 | print '</td>'; |
@@ -1202,9 +1202,9 @@ discard block |
||
1202 | 1202 | if ($alreadyconsumed) { |
1203 | 1203 | print '<script>'; |
1204 | 1204 | print 'jQuery(document).ready(function() { |
1205 | - jQuery("#expandtoproduce' . $line->id . '").click(function() { |
|
1206 | - console.log("Expand mrp_production line ' . $line->id . '"); |
|
1207 | - jQuery(".expanddetail' . $line->id . '").toggle();'; |
|
1205 | + jQuery("#expandtoproduce' . $line->id.'").click(function() { |
|
1206 | + console.log("Expand mrp_production line ' . $line->id.'"); |
|
1207 | + jQuery(".expanddetail' . $line->id.'").toggle();'; |
|
1208 | 1208 | if ($nblinetoconsume == $nblinetoconsumecursor) { // If it is the last line |
1209 | 1209 | print 'if (jQuery("#tablelines").hasClass("nobottom")) { jQuery("#tablelines").removeClass("nobottom"); } else { jQuery("#tablelines").addClass("nobottom"); }'; |
1210 | 1210 | } |
@@ -1213,9 +1213,9 @@ discard block |
||
1213 | 1213 | });'; |
1214 | 1214 | print '</script>'; |
1215 | 1215 | if (empty($conf->use_javascript_ajax)) { |
1216 | - print '<a href="' . $_SERVER["PHP_SELF"] . '?collapse=' . $collapse . ',' . $line->id . '">'; |
|
1216 | + print '<a href="'.$_SERVER["PHP_SELF"].'?collapse='.$collapse.','.$line->id.'">'; |
|
1217 | 1217 | } |
1218 | - print img_picto($langs->trans("ShowDetails"), "chevron-down", 'id="expandtoproduce' . $line->id . '"'); |
|
1218 | + print img_picto($langs->trans("ShowDetails"), "chevron-down", 'id="expandtoproduce'.$line->id.'"'); |
|
1219 | 1219 | if (empty($conf->use_javascript_ajax)) { |
1220 | 1220 | print '</a>'; |
1221 | 1221 | } |
@@ -1224,7 +1224,7 @@ discard block |
||
1224 | 1224 | print '<script>jQuery("#tablelines").removeClass("nobottom");</script>'; |
1225 | 1225 | } |
1226 | 1226 | } |
1227 | - print ' ' . price2num($alreadyconsumed, 'MS'); |
|
1227 | + print ' '.price2num($alreadyconsumed, 'MS'); |
|
1228 | 1228 | print '</td>'; |
1229 | 1229 | |
1230 | 1230 | // Warehouse and/or workstation |
@@ -1232,7 +1232,7 @@ discard block |
||
1232 | 1232 | if ($tmpproduct->isStockManaged()) { |
1233 | 1233 | // When STOCK_CONSUMPTION_FROM_MANUFACTURING_WAREHOUSE is set, we always use the warehouse of the MO, the same than production. |
1234 | 1234 | if (getDolGlobalString('STOCK_CONSUMPTION_FROM_MANUFACTURING_WAREHOUSE') && $tmpwarehouse->id > 0) { |
1235 | - print img_picto('', $tmpwarehouse->picto) . " " . $tmpwarehouse->label; |
|
1235 | + print img_picto('', $tmpwarehouse->picto)." ".$tmpwarehouse->label; |
|
1236 | 1236 | } else { |
1237 | 1237 | if ($line->fk_warehouse > 0) { |
1238 | 1238 | $warehouseline = new Entrepot($db); |
@@ -1253,7 +1253,7 @@ discard block |
||
1253 | 1253 | print '<td class="nowraponall right">'; |
1254 | 1254 | if (!getDolGlobalString('STOCK_SUPPORTS_SERVICES') && $tmpproduct->type != Product::TYPE_SERVICE) { |
1255 | 1255 | if (!$line->disable_stock_change && $tmpproduct->stock_reel < ($line->qty - $alreadyconsumed)) { |
1256 | - print img_warning($langs->trans('StockTooLow')) . ' '; |
|
1256 | + print img_warning($langs->trans('StockTooLow')).' '; |
|
1257 | 1257 | } |
1258 | 1258 | if (!getDolGlobalString('STOCK_CONSUMPTION_FROM_MANUFACTURING_WAREHOUSE') || empty($tmpwarehouse->id)) { |
1259 | 1259 | print price2num($tmpproduct->stock_reel, 'MS'); // Available |
@@ -1284,9 +1284,9 @@ discard block |
||
1284 | 1284 | |
1285 | 1285 | // Action Edit line |
1286 | 1286 | if ($object->status == Mo::STATUS_DRAFT) { |
1287 | - $href = $_SERVER["PHP_SELF"] . '?id=' . ((int) $object->id) . '&action=editline&token=' . newToken() . '&lineid=' . ((int) $line->id); |
|
1287 | + $href = $_SERVER["PHP_SELF"].'?id='.((int) $object->id).'&action=editline&token='.newToken().'&lineid='.((int) $line->id); |
|
1288 | 1288 | print '<td class="center">'; |
1289 | - print '<a class="reposition editfielda" href="' . $href . '">'; |
|
1289 | + print '<a class="reposition editfielda" href="'.$href.'">'; |
|
1290 | 1290 | print img_picto($langs->trans('TooltipEditAndRevertStockMovement'), 'edit'); |
1291 | 1291 | print '</a>'; |
1292 | 1292 | print '</td>'; |
@@ -1294,9 +1294,9 @@ discard block |
||
1294 | 1294 | |
1295 | 1295 | // Action delete line |
1296 | 1296 | if ($permissiontodelete) { |
1297 | - $href = $_SERVER["PHP_SELF"] . '?id=' . ((int) $object->id) . '&action=deleteline&token=' . newToken() . '&lineid=' . ((int) $line->id); |
|
1297 | + $href = $_SERVER["PHP_SELF"].'?id='.((int) $object->id).'&action=deleteline&token='.newToken().'&lineid='.((int) $line->id); |
|
1298 | 1298 | print '<td class="center">'; |
1299 | - print '<a class="reposition" href="' . $href . '">'; |
|
1299 | + print '<a class="reposition" href="'.$href.'">'; |
|
1300 | 1300 | print img_picto($langs->trans('TooltipDeleteAndRevertStockMovement'), 'delete'); |
1301 | 1301 | print '</a>'; |
1302 | 1302 | print '</td>'; |
@@ -1375,9 +1375,9 @@ discard block |
||
1375 | 1375 | |
1376 | 1376 | // Action Edit line |
1377 | 1377 | if ($object->status == Mo::STATUS_DRAFT) { |
1378 | - $href = $_SERVER["PHP_SELF"] . '?id=' . ((int) $object->id) . '&action=editline&token=' . newToken() . '&lineid=' . ((int) $line2['rowid']); |
|
1378 | + $href = $_SERVER["PHP_SELF"].'?id='.((int) $object->id).'&action=editline&token='.newToken().'&lineid='.((int) $line2['rowid']); |
|
1379 | 1379 | print '<td class="center">'; |
1380 | - print '<a class="reposition" href="' . $href . '">'; |
|
1380 | + print '<a class="reposition" href="'.$href.'">'; |
|
1381 | 1381 | print img_picto($langs->trans('TooltipEditAndRevertStockMovement'), 'edit'); |
1382 | 1382 | print '</a>'; |
1383 | 1383 | print '</td>'; |
@@ -1417,7 +1417,7 @@ discard block |
||
1417 | 1417 | print '<input type="hidden" name="product-'.$line->id.'-'.$i.'" value="'.$line->fk_product.'">'; |
1418 | 1418 | |
1419 | 1419 | // Qty |
1420 | - print '<td class="right"><input type="text" class="width50 right" id="qtytoconsume-' . $line->id . '-' . $i . '" name="qty-' . $line->id . '-' . $i . '" value="' . $preselected . '" ' . $disable . '></td>'; |
|
1420 | + print '<td class="right"><input type="text" class="width50 right" id="qtytoconsume-'.$line->id.'-'.$i.'" name="qty-'.$line->id.'-'.$i.'" value="'.$preselected.'" '.$disable.'></td>'; |
|
1421 | 1421 | |
1422 | 1422 | // Unit |
1423 | 1423 | print '<td></td>'; |
@@ -1935,7 +1935,7 @@ discard block |
||
1935 | 1935 | |
1936 | 1936 | $.ajax({ |
1937 | 1937 | type: "POST", |
1938 | - url: "<?php echo DOL_URL_ROOT . '/mrp/ajax/interface.php'; ?>", |
|
1938 | + url: "<?php echo DOL_URL_ROOT.'/mrp/ajax/interface.php'; ?>", |
|
1939 | 1939 | data: { |
1940 | 1940 | action: "updateselectbatchbywarehouse", |
1941 | 1941 | permissiontoproduce: <?php echo $permissiontoproduce ?>, |
@@ -1996,7 +1996,7 @@ discard block |
||
1996 | 1996 | |
1997 | 1997 | $.ajax({ |
1998 | 1998 | type: "POST", |
1999 | - url: "<?php echo DOL_URL_ROOT . '/mrp/ajax/interface.php'; ?>", |
|
1999 | + url: "<?php echo DOL_URL_ROOT.'/mrp/ajax/interface.php'; ?>", |
|
2000 | 2000 | data: { |
2001 | 2001 | action: "updateselectwarehousebybatch", |
2002 | 2002 | permissiontoproduce: <?php echo $permissiontoproduce ?>, |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | 'fk_user_modif' => array('type' => 'integer:User:user/class/user.class.php', 'label' => 'UserModif', 'enabled' => 1, 'position' => 511, 'notnull' => -1, 'visible' => -2,), |
113 | 113 | 'import_key' => array('type' => 'varchar(14)', 'label' => 'ImportId', 'enabled' => 1, 'position' => 512, 'notnull' => -1, 'visible' => -2,), |
114 | 114 | 'nb_operators_required' => array('type' => 'integer', 'label' => 'NbOperatorsRequired', 'enabled' => 1, 'position' => 50, 'notnull' => 0, 'visible' => 1, 'css' => 'right maxwidth50imp', 'csslist' => 'maxwidth50imp'), |
115 | - 'thm_operator_estimated' => array('type' => 'price', 'help' => 'THMOperatorEstimatedHelp','label' => 'THMOperatorEstimated', 'enabled' => 1, 'position' => 50, 'notnull' => 0, 'visible' => 1, 'css' => 'right maxwidth75imp', 'csslist' => 'maxwidth75imp'), |
|
115 | + 'thm_operator_estimated' => array('type' => 'price', 'help' => 'THMOperatorEstimatedHelp', 'label' => 'THMOperatorEstimated', 'enabled' => 1, 'position' => 50, 'notnull' => 0, 'visible' => 1, 'css' => 'right maxwidth75imp', 'csslist' => 'maxwidth75imp'), |
|
116 | 116 | 'thm_machine_estimated' => array('type' => 'price', 'help' => 'THMMachineEstimatedHelp', 'label' => 'THMMachineEstimated', 'enabled' => 1, 'position' => 50, 'notnull' => 0, 'visible' => 1, 'css' => 'right maxwidth75imp', 'csslist' => 'maxwidth75imp'), |
117 | 117 | 'status' => array('type' => 'smallint', 'label' => 'Status', 'enabled' => 1, 'position' => 1000, 'default' => '1', 'notnull' => 1, 'visible' => 1, 'index' => 1, 'arrayofkeyval' => array(0 => 'Disabled', 1 => 'Enabled'),), |
118 | 118 | ); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | /** |
136 | 136 | * @var string type |
137 | 137 | */ |
138 | - public $type; // HUMAN, MACHINE, ... |
|
138 | + public $type; // HUMAN, MACHINE, ... |
|
139 | 139 | |
140 | 140 | /** |
141 | 141 | * @var int User ID |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | $id = $this->createCommon($user, $notrigger); |
237 | 237 | |
238 | 238 | // Usergroups |
239 | - $groups = GETPOST('groups', 'array:int'); // FIXME We should not GETPOST but receive array as parameter |
|
239 | + $groups = GETPOST('groups', 'array:int'); // FIXME We should not GETPOST but receive array as parameter |
|
240 | 240 | if (empty($groups)) { |
241 | 241 | $groups = $this->usergroups; // createFromClone |
242 | 242 | } |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | } |
252 | 252 | |
253 | 253 | // Resources |
254 | - $resources = GETPOST('resources', 'array:int'); // FIXME We should not GETPOST but receive array as parameter |
|
254 | + $resources = GETPOST('resources', 'array:int'); // FIXME We should not GETPOST but receive array as parameter |
|
255 | 255 | if (empty($resources)) { |
256 | 256 | $resources = $this->resources; // createFromClone |
257 | 257 | } |
@@ -866,7 +866,7 @@ discard block |
||
866 | 866 | if (getDolGlobalString('WORKSTATION_WORKSTATION_ADDON')) { |
867 | 867 | $mybool = false; |
868 | 868 | |
869 | - $file = getDolGlobalString('WORKSTATION_WORKSTATION_ADDON') . ".php"; |
|
869 | + $file = getDolGlobalString('WORKSTATION_WORKSTATION_ADDON').".php"; |
|
870 | 870 | $classname = getDolGlobalString('WORKSTATION_WORKSTATION_ADDON'); |
871 | 871 | |
872 | 872 | // Include file with class |