@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | $action = GETPOST('action', 'aZ09'); |
| 38 | 38 | $value = GETPOST('value', 'alpha'); |
| 39 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 39 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 40 | 40 | |
| 41 | 41 | $param = GETPOST('param', 'alpha'); |
| 42 | 42 | $cancel = GETPOST('cancel', 'alpha'); |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | $action = GETPOST('action', 'aZ09'); |
| 48 | 48 | $value = GETPOST('value', 'alpha'); |
| 49 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 49 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 50 | 50 | |
| 51 | 51 | $label = GETPOST('label', 'alpha'); |
| 52 | 52 | $scandir = GETPOST('scan_dir', 'alpha'); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | $action = GETPOST('action', 'aZ09'); |
| 43 | 43 | $value = GETPOST('value', 'alpha'); |
| 44 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 44 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | /* |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | $action = GETPOST('action', 'aZ09'); |
| 38 | 38 | $value = GETPOST('value', 'alpha'); |
| 39 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 39 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 40 | 40 | |
| 41 | 41 | $param = GETPOST('param', 'alpha'); |
| 42 | 42 | $cancel = GETPOST('cancel', 'alpha'); |
@@ -801,7 +801,7 @@ discard block |
||
| 801 | 801 | while ($assoc = $db->fetch_array($resql)) { |
| 802 | 802 | $rate_key = $assoc['rate']; |
| 803 | 803 | if ($f_rate == 'tva_tx' && !empty($assoc['vat_src_code']) && !preg_match('/\(/', $rate_key)) { |
| 804 | - $rate_key .= ' (' . $assoc['vat_src_code'] . ')'; |
|
| 804 | + $rate_key .= ' ('.$assoc['vat_src_code'].')'; |
|
| 805 | 805 | } |
| 806 | 806 | |
| 807 | 807 | // Code to avoid warnings when array entry not defined |
@@ -986,7 +986,7 @@ discard block |
||
| 986 | 986 | while ($assoc = $db->fetch_array($resql)) { |
| 987 | 987 | $rate_key = $assoc['rate']; |
| 988 | 988 | if ($f_rate == 'tva_tx' && !empty($assoc['vat_src_code']) && !preg_match('/\(/', $rate_key)) { |
| 989 | - $rate_key .= ' (' . $assoc['vat_src_code'] . ')'; |
|
| 989 | + $rate_key .= ' ('.$assoc['vat_src_code'].')'; |
|
| 990 | 990 | } |
| 991 | 991 | |
| 992 | 992 | // Code to avoid warnings when array entry not defined |
@@ -1113,7 +1113,7 @@ discard block |
||
| 1113 | 1113 | while ($assoc = $db->fetch_array($resql)) { |
| 1114 | 1114 | $rate_key = $assoc['rate']; |
| 1115 | 1115 | if ($f_rate == 'tva_tx' && !empty($assoc['vat_src_code']) && !preg_match('/\(/', $rate_key)) { |
| 1116 | - $rate_key .= ' (' . $assoc['vat_src_code'] . ')'; |
|
| 1116 | + $rate_key .= ' ('.$assoc['vat_src_code'].')'; |
|
| 1117 | 1117 | } |
| 1118 | 1118 | |
| 1119 | 1119 | // Code to avoid warnings when array entry not defined |
@@ -156,7 +156,7 @@ |
||
| 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} |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | // Object card |
| 93 | 93 | // ------------------------------------------------------------ |
| 94 | - $linkback = '<a href="' . DOL_URL_ROOT . '/asset/list.php?restore_lastsearch_values=1' . (!empty($socid) ? '&socid=' . $socid : '') . '">' . $langs->trans("BackToList") . '</a>'; |
|
| 94 | + $linkback = '<a href="'.DOL_URL_ROOT.'/asset/list.php?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>'; |
|
| 95 | 95 | |
| 96 | 96 | $morehtmlref = '<div class="refidno">'; |
| 97 | 97 | $morehtmlref .= '</div>'; |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | |
| 107 | 107 | $cssclass = "titlefield"; |
| 108 | - include DOL_DOCUMENT_ROOT . '/core/tpl/notes.tpl.php'; |
|
| 108 | + include DOL_DOCUMENT_ROOT.'/core/tpl/notes.tpl.php'; |
|
| 109 | 109 | |
| 110 | 110 | print '</div>'; |
| 111 | 111 | |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | |
| 92 | 92 | // Object card |
| 93 | 93 | // ------------------------------------------------------------ |
| 94 | - $linkback = '<a href="' . DOL_URL_ROOT . '/asset/list.php?restore_lastsearch_values=1' . (!empty($socid) ? '&socid=' . $socid : '') . '">' . $langs->trans("BackToList") . '</a>'; |
|
| 94 | + $linkback = '<a href="'.DOL_URL_ROOT.'/asset/list.php?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>'; |
|
| 95 | 95 | |
| 96 | 96 | $morehtmlref = '<div class="refidno">'; |
| 97 | 97 | $morehtmlref .= '</div>'; |
@@ -221,7 +221,7 @@ |
||
| 221 | 221 | } |
| 222 | 222 | }); |
| 223 | 223 | </script> |
| 224 | -SCRIPT; |
|
| 224 | +script; |
|
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | ?> |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | if (!isset($formadmin) || !is_object($formadmin)) { |
| 38 | - require_once DOL_DOCUMENT_ROOT . '/core/class/html.formadmin.class.php'; |
|
| 38 | + require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php'; |
|
| 39 | 39 | $formadmin = new FormAdmin($db); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -69,14 +69,14 @@ discard block |
||
| 69 | 69 | 'mode_key' => $info[0], |
| 70 | 70 | 'field_key' => $info[1], |
| 71 | 71 | 'value' => $info[2], |
| 72 | - 'target' => 'block_' . $mode_key, |
|
| 72 | + 'target' => 'block_'.$mode_key, |
|
| 73 | 73 | ); |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | $assetdepreciationoptions->setInfosForMode($mode_key, $class_type, true); |
| 77 | - $prefix_html_name = $mode_key . '_'; |
|
| 78 | - $width = ($mode_key == "economic")? "width50p pull-left" : "width50p"; |
|
| 79 | - print '<table class="border '. $width .'" id="block_' . $mode_key . '">' . "\n"; |
|
| 77 | + $prefix_html_name = $mode_key.'_'; |
|
| 78 | + $width = ($mode_key == "economic") ? "width50p pull-left" : "width50p"; |
|
| 79 | + print '<table class="border '.$width.'" id="block_'.$mode_key.'">'."\n"; |
|
| 80 | 80 | print '<tr><td class="info-box-title">'.$langs->trans($mode_info['label']).'</td></tr>'; |
| 81 | 81 | if ($mode_key == "economic") { |
| 82 | 82 | print '<hr>'; |
@@ -92,14 +92,14 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | |
| 95 | - $html_name = $prefix_html_name . $field_key; |
|
| 95 | + $html_name = $prefix_html_name.$field_key; |
|
| 96 | 96 | if (!empty($field_info['enabled_field'])) { |
| 97 | 97 | $info = explode(':', $field_info['enabled_field']); |
| 98 | 98 | $enabled_field_info[] = array( |
| 99 | 99 | 'mode_key' => $info[0], |
| 100 | 100 | 'field_key' => $info[1], |
| 101 | 101 | 'value' => $info[2], |
| 102 | - 'target' => 'field_' . $html_name, |
|
| 102 | + 'target' => 'field_'.$html_name, |
|
| 103 | 103 | ); |
| 104 | 104 | } |
| 105 | 105 | |
@@ -111,8 +111,8 @@ discard block |
||
| 111 | 111 | $more_class .= ' tdtop'; |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | - print '<tr class="field_' . $html_name . '" id="field_' . $html_name . '"><td'; |
|
| 115 | - print ' class="' . $more_class . '">'; |
|
| 114 | + print '<tr class="field_'.$html_name.'" id="field_'.$html_name.'"><td'; |
|
| 115 | + print ' class="'.$more_class.'">'; |
|
| 116 | 116 | if (!empty($field_info['help'])) { |
| 117 | 117 | print $form->textwithpicto($langs->trans($field_info['label']), $langs->trans($field_info['help'])); |
| 118 | 118 | } else { |