From 858926d95eee4cd5bcc5c327ca70f3d07987854d Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Thu, 2 Jun 2022 08:15:04 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/expedition/class/expedition.class.php | 36 ++++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index 781e0b8cbf2..5b033fc11f7 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -1247,8 +1247,8 @@ class Expedition extends CommonObject if ($conf->productbatch->enabled) { $lotArray = $shipmentlinebatch->fetchAll($obj->expeditiondet_id); if (!is_array($lotArray)) { - $error++; - $this->errors[] = "Error ".$this->db->lasterror(); + $error++; + $this->errors[] = "Error ".$this->db->lasterror(); } } @@ -1258,8 +1258,8 @@ class Expedition extends CommonObject // We use warehouse selected for each line $result = $mouvS->reception($user, $obj->fk_product, $obj->fk_entrepot, $obj->qty, 0, $langs->trans("ShipmentCanceledInDolibarr", $this->ref)); // Price is set to 0, because we don't want to see WAP changed if ($result < 0) { - $error++; - $this->errors = array_merge($this->errors, $mouvS->errors); + $error++; + $this->errors = array_merge($this->errors, $mouvS->errors); break; } } else { @@ -1268,8 +1268,8 @@ class Expedition extends CommonObject foreach ($lotArray as $lot) { $result = $mouvS->reception($user, $obj->fk_product, $obj->fk_entrepot, $lot->qty, 0, $langs->trans("ShipmentCanceledInDolibarr", $this->ref), $lot->eatby, $lot->sellby, $lot->batch); // Price is set to 0, because we don't want to see WAP changed if ($result < 0) { - $error++; - $this->errors = array_merge($this->errors, $mouvS->errors); + $error++; + $this->errors = array_merge($this->errors, $mouvS->errors); break; } } @@ -1444,8 +1444,8 @@ class Expedition extends CommonObject // We use warehouse selected for each line $result = $mouvS->reception($user, $obj->fk_product, $obj->fk_entrepot, $obj->qty, 0, $langs->trans("ShipmentDeletedInDolibarr", $this->ref)); // Price is set to 0, because we don't want to see WAP changed if ($result < 0) { - $error++; - $this->errors = array_merge($this->errors, $mouvS->errors); + $error++; + $this->errors = array_merge($this->errors, $mouvS->errors); break; } } else { @@ -1454,8 +1454,8 @@ class Expedition extends CommonObject foreach ($lotArray as $lot) { $result = $mouvS->reception($user, $obj->fk_product, $obj->fk_entrepot, $lot->qty, 0, $langs->trans("ShipmentDeletedInDolibarr", $this->ref), $lot->eatby, $lot->sellby, $lot->batch); // Price is set to 0, because we don't want to see WAP changed if ($result < 0) { - $error++; - $this->errors = array_merge($this->errors, $mouvS->errors); + $error++; + $this->errors = array_merge($this->errors, $mouvS->errors); break; } } @@ -2200,8 +2200,8 @@ class Expedition extends CommonObject if ($result < 0) { $this->error = $mouvS->error; $this->errors = $mouvS->errors; - $error++; - break; + $error++; + break; } } else { // line with batch detail @@ -2211,8 +2211,8 @@ class Expedition extends CommonObject if ($result < 0) { $this->error = $mouvS->error; $this->errors = $mouvS->errors; - $error++; - break; + $error++; + break; } } } @@ -2376,8 +2376,8 @@ class Expedition extends CommonObject if ($result < 0) { $this->error = $mouvS->error; $this->errors = $mouvS->errors; - $error++; - break; + $error++; + break; } } else { // line with batch detail @@ -2387,8 +2387,8 @@ class Expedition extends CommonObject if ($result < 0) { $this->error = $mouvS->error; $this->errors = $mouvS->errors; - $error++; - break; + $error++; + break; } } }