@@ -1437,7 +1437,9 @@ |
||
| 1437 | 1437 | $deliverableQty = min($quantityToBeDelivered, $batchStock); |
| 1438 | 1438 | } |
| 1439 | 1439 | |
| 1440 | - if ($deliverableQty < 0) $deliverableQty = 0; |
|
| 1440 | + if ($deliverableQty < 0) { |
|
| 1441 | + $deliverableQty = 0; |
|
| 1442 | + } |
|
| 1441 | 1443 | |
| 1442 | 1444 | $inputName = 'qtyl' . $indiceAsked . '_' . $subj; |
| 1443 | 1445 | if (GETPOSTISSET($inputName)) { |
@@ -444,8 +444,10 @@ |
||
| 444 | 444 | ); |
| 445 | 445 | if ($result > 0) { |
| 446 | 446 | $lineid = $result; |
| 447 | - if (!empty($createbills_onebythird)) //increment rang to keep sending |
|
| 447 | + if (!empty($createbills_onebythird)) { |
|
| 448 | + //increment rang to keep sending |
|
| 448 | 449 | $TFactThirdNbLines[$expd->socid]++; |
| 450 | + } |
|
| 449 | 451 | } else { |
| 450 | 452 | $lineid = 0; |
| 451 | 453 | $error++; |
@@ -2663,6 +2663,8 @@ |
||
| 2663 | 2663 | $this->dictionaries['tab' . $field][] = $dictionaryArray[$field]; |
| 2664 | 2664 | } |
| 2665 | 2665 | } |
| 2666 | - if ($langs && !in_array($langs, $this->dictionaries[$langs])) $this->dictionaries['langs'][] = $langs; |
|
| 2666 | + if ($langs && !in_array($langs, $this->dictionaries[$langs])) { |
|
| 2667 | + $this->dictionaries['langs'][] = $langs; |
|
| 2668 | + } |
|
| 2667 | 2669 | } |
| 2668 | 2670 | } |