Forráskód Böngészése

FIX : better correction

Gauthier PC portable 024 4 éve
szülő
commit
50bc832532

+ 1 - 4
htdocs/core/modules/expedition/doc/pdf_espadon.modules.php

@@ -362,15 +362,12 @@ class pdf_espadon extends ModelePdfExpedition
 				{
 					$tab_top = 88 + $height_incoterms;
 					$tab_top_alt = $tab_top;
-
 					$pdf->SetFont('', 'B', $default_font_size - 2);
 					if(!empty($object->tracking_number)) {
 						$pdf->writeHTMLCell(60, 4, $this->posxdesc - 1, $tab_top - 1, $outputlangs->transnoentities("TrackingNumber")." : ".$object->tracking_number, 0, 1, false, true, 'L');
-					} else {
-						$pdf->writeHTMLCell(60, 4, $this->posxdesc - 1, $tab_top - 5, '', 0, 1, false, true, 'L');
 					}
 
-					$tab_top_alt = $pdf->GetY();
+					if(!empty($object->tracking_number)) $tab_top_alt = $pdf->GetY();
 					//$tab_top_alt += 1;
 
 					// Tracking number