@@ -229,7 +229,7 @@ |
||
229 | 229 | print '<td class="left">' . $langs->trans('ProducedBy') . '</td>'; |
230 | 230 | } |
231 | 231 | print '<td class="linecolqty right">' . $langs->trans('Quantity') . '</td>'; |
232 | - print '<td></td>'; // For unit |
|
232 | + print '<td></td>'; // For unit |
|
233 | 233 | print '<td class="linecolstock right">' . $form->textwithpicto($langs->trans("PhysicalStock"), $text_stock_options, 1) . '</td>'; |
234 | 234 | print '<td class="linecoltheoricalstock right">' . $form->textwithpicto($langs->trans("VirtualStock"), $langs->trans("VirtualStockDesc")) . '</td>'; |
235 | 235 | print '</tr>'; |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | $fk_default_workstation = GETPOSTINT('idworkstations'); |
289 | 289 | } |
290 | 290 | |
291 | - $result = $object->updateLine($lineid, $qty, (int)$qty_frozen, (int)$disable_stock_change, $efficiency, $bomline->position, $bomline->import_key, $fk_unit, $array_options, $fk_default_workstation); |
|
291 | + $result = $object->updateLine($lineid, $qty, (int) $qty_frozen, (int) $disable_stock_change, $efficiency, $bomline->position, $bomline->import_key, $fk_unit, $array_options, $fk_default_workstation); |
|
292 | 292 | |
293 | 293 | if ($result <= 0) { |
294 | 294 | setEventMessages($object->error, $object->errors, 'errors'); |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | if (!empty($object->table_element_line)) { |
593 | 593 | // Products |
594 | 594 | |
595 | - $res = $object->fetchLinesbytypeproduct(0); // Load all lines products into ->lines |
|
595 | + $res = $object->fetchLinesbytypeproduct(0); // Load all lines products into ->lines |
|
596 | 596 | $object->calculateCosts(); |
597 | 597 | |
598 | 598 | print ($res == 0 && $object->status >= $object::STATUS_VALIDATED) ? '' : load_fiche_titre($langs->trans('BOMProductsList'), '', 'product'); |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | // Services |
647 | 647 | |
648 | 648 | $filtertype = 1; |
649 | - $res = $object->fetchLinesbytypeproduct(1); // Load all lines services into ->lines |
|
649 | + $res = $object->fetchLinesbytypeproduct(1); // Load all lines services into ->lines |
|
650 | 650 | $object->calculateCosts(); |
651 | 651 | |
652 | 652 | print ($res == 0 && $object->status >= $object::STATUS_VALIDATED) ? '' : load_fiche_titre($langs->trans('BOMServicesList'), '', 'service'); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | // Load Dolibarr environment |
40 | 40 | require constant('DOL_DOCUMENT_ROOT') . '/main.inc.php'; |
41 | -require_once constant('DOL_DOCUMENT_ROOT') . '/core/class/fileupload.class.php'; // Class to upload common files |
|
41 | +require_once constant('DOL_DOCUMENT_ROOT') . '/core/class/fileupload.class.php'; // Class to upload common files |
|
42 | 42 | require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/geturl.lib.php'; |
43 | 43 | |
44 | 44 | $id = GETPOSTINT('fk_element'); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | if (!empty($user->socid)) { |
63 | 63 | $socid = $user->socid; |
64 | 64 | if (!empty($object->socid) && $socid != $object->socid) { |
65 | - httponly_accessforbidden("Access on object not allowed for this external user."); // This includes the exit. |
|
65 | + httponly_accessforbidden("Access on object not allowed for this external user."); // This includes the exit. |
|
66 | 66 | } |
67 | 67 | } |
68 | 68 |