@@ -318,11 +318,15 @@ |
||
318 | 318 | $resql = $this->db->query($sql); |
319 | 319 | if ($resql) { |
320 | 320 | while ($obj = $this->db->fetch_object($resql)) { |
321 | - if (empty($obj->lettering_code)) continue; |
|
321 | + if (empty($obj->lettering_code)) { |
|
322 | + continue; |
|
323 | + } |
|
322 | 324 | |
323 | 325 | // Remove normal lettering code if set partial lettering |
324 | 326 | if ($partial && preg_match('/^[A-Z]+$/', $obj->lettering_code)) { |
325 | - if (!empty($obj->bookkeeping_ids)) $ids = array_diff($ids, explode(',', $obj->bookkeeping_ids)); |
|
327 | + if (!empty($obj->bookkeeping_ids)) { |
|
328 | + $ids = array_diff($ids, explode(',', $obj->bookkeeping_ids)); |
|
329 | + } |
|
326 | 330 | } elseif (!$partial && preg_match('/^[a-z]+$/', $obj->lettering_code)) { |
327 | 331 | // Delete partial lettering code if set normal lettering |
328 | 332 | $sql2 = "UPDATE " . MAIN_DB_PREFIX . "accounting_bookkeeping SET"; |
@@ -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++; |