@@ -36,7 +36,7 @@ |
||
| 36 | 36 | // Parameters |
| 37 | 37 | $action = GETPOST('action', 'aZ09'); |
| 38 | 38 | $backtopage = GETPOST('backtopage', '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 | $value = GETPOST('value', 'alpha'); |
| 42 | 42 | |
@@ -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'); |
@@ -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'); |
@@ -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'); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | $action = GETPOST('action', 'aZ09'); |
| 44 | 44 | $value = GETPOST('value', 'alpha'); |
| 45 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 45 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
| 46 | 46 | |
| 47 | 47 | $type = 'group'; |
| 48 | 48 | |
@@ -66,13 +66,13 @@ |
||
| 66 | 66 | |
| 67 | 67 | print "*** TEST READ OF /tmp/test.txt FILE<br>\n"; |
| 68 | 68 | |
| 69 | -$out=''; |
|
| 70 | -$ret=0; |
|
| 69 | +$out = ''; |
|
| 70 | +$ret = 0; |
|
| 71 | 71 | |
| 72 | 72 | $file = '/tmp/test.txt'; |
| 73 | -$f=fopen($file, 'r'); |
|
| 73 | +$f = fopen($file, 'r'); |
|
| 74 | 74 | if ($f) { |
| 75 | - $s=fread($f, 4096); |
|
| 75 | + $s = fread($f, 4096); |
|
| 76 | 76 | print $s; |
| 77 | 77 | fclose($f); |
| 78 | 78 | } else { |
@@ -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} |