diff --git a/htdocs/core/modules/reception/doc/pdf_squille.modules.php b/htdocs/core/modules/reception/doc/pdf_squille.modules.php index d7374fe4239..85724a8b42a 100644 --- a/htdocs/core/modules/reception/doc/pdf_squille.modules.php +++ b/htdocs/core/modules/reception/doc/pdf_squille.modules.php @@ -98,6 +98,7 @@ class pdf_squille extends ModelePdfReception } } + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps /** * Function to build pdf onto disk * @@ -111,6 +112,7 @@ class pdf_squille extends ModelePdfReception */ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hidedesc=0,$hideref=0) { + // phpcs:enable global $user,$conf,$langs,$hookmanager; $object->fetch_thirdparty(); @@ -637,7 +639,6 @@ class pdf_squille extends ModelePdfReception { $object->trueVolume= ($object->trueWidth * $object->trueHeight * $object->trueDepth); $object->volume_units=$object->size_units * 3; - } if ($totalWeight!='') $totalWeighttoshow=showDimensionInBestUnit($totalWeight, 0, "weight", $outputlangs); @@ -665,7 +666,6 @@ class pdf_squille extends ModelePdfReception $pdf->SetXY($this->posxtotalht, $tab2_top + $tab2_hl * $index); $pdf->MultiCell($this->page_largeur - $this->marge_droite - $this->posxtotalht, $tab2_hl, price($object->total_ht, 0, $outputlangs), 0, 'C', 1); - } // Total Weight @@ -769,7 +769,6 @@ class pdf_squille extends ModelePdfReception $pdf->SetXY($this->posxtotalht-1, $tab_top+1); $pdf->MultiCell(($this->page_largeur - $this->marge_droite - $this->posxtotalht), 2, $outputlangs->transnoentities("TotalHT"),'','C'); } - } } diff --git a/htdocs/core/modules/reception/mod_reception_beryl.php b/htdocs/core/modules/reception/mod_reception_beryl.php index 4471637b41f..ee45d245cd2 100644 --- a/htdocs/core/modules/reception/mod_reception_beryl.php +++ b/htdocs/core/modules/reception/mod_reception_beryl.php @@ -130,6 +130,7 @@ class mod_reception_beryl extends ModelNumRefReception return $this->prefix.$yymm."-".$num; } + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps /** * Return next free value * @@ -139,6 +140,7 @@ class mod_reception_beryl extends ModelNumRefReception */ function reception_get_num($objsoc,$objforref) { + // phpcs:enable return $this->getNextValue($objsoc,$objforref); } } \ No newline at end of file diff --git a/htdocs/reception/card.php b/htdocs/reception/card.php index 511394d58bf..884f4609eca 100644 --- a/htdocs/reception/card.php +++ b/htdocs/reception/card.php @@ -574,7 +574,6 @@ if (empty($reshook)) { $error++; } - } unset($_POST["lineid"]); } @@ -616,11 +615,8 @@ if (empty($reshook)) $line->fk_product = $lines[$i]->fk_product; - - if ($lines[$i]->fk_product > 0) { - // single warehouse reception line $stockLocation = "entl".$line_id; $qty = "qtyl".$line_id; @@ -645,16 +641,11 @@ if (empty($reshook)) $line->sellby = strtotime($sellbydate); } - - if ($line->update($user) < 0) { setEventMessages($line->error, $line->errors, 'errors'); $error++; } - - - } else // Product no predefined { @@ -713,7 +704,6 @@ if (empty($reshook)) $mode='emailfromreception'; $trackid='shi'.$object->id; include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php'; - } @@ -1191,15 +1181,8 @@ if ($action == 'create') } print "\n"; - - - - } - - - //Display lines extrafields if (is_array($extralabelslines) && count($extralabelslines)>0) { @@ -1308,7 +1291,6 @@ else if ($id || $ref) if ($action == 'annuler') { $formconfirm=$form->formconfirm($_SERVER['PHP_SELF'].'?id='.$object->id,$langs->trans('CancelReception'),$langs->trans("ConfirmCancelReception",$object->ref),'confirm_cancel','',0,1); - } if (! $formconfirm) { @@ -1475,7 +1457,6 @@ else if ($id || $ref) print ' '; print ' '; print ''; - } else { @@ -1904,23 +1885,22 @@ else if ($id || $ref) { if ($lines[$i]->fk_product > 0) { - print ''; - print '