Bug 5194: The company name is not displayed on invoices if the logo is set. Fixed.
[fa-stable.git] / reporting / includes / header2.inc
index 979d09d6b91f20b758244c5ad11fe9d8834abfbd..d97f50e65d0d2775e6c639ae4ad4da06e140a75c 100644 (file)
@@ -59,7 +59,6 @@
                {
                        $this->LineTo($col += $width, $iline2,$col, $iline4);
                }
-               $this->LineTo($right, $iline2 ,$right, $iline4);
                $this->LineTo($this->leftMargin, $iline5 ,$this->leftMargin, $iline7);
                if ($this->l['a_meta_dir'] == 'rtl') // avoid line overwrite in rtl language
                        $this->LineTo($this->cols[$cols - 2], $iline5 ,$this->cols[$cols - 2], $iline7);
                $this->LineTo($right, $iline5 ,$right, $iline7);
 
                // Company Logo
-               $this->NewLine();
                $logo = company_path() . "/images/" . $this->company['coy_logo'];
                if ($this->company['coy_logo'] != '' && file_exists($logo))
                {
+                       $this->NewLine();
                        $this->AddImage($logo, $ccol, $this->row, 0, 40);
                }
-               else
-               {
-                       $this->fontSize += 4;
-                       $this->Font('bold');
-                       $this->Text($ccol, $this->company['coy_name'], $icol);
-                       $this->Font();
-                       $this->fontSize -= 4;
-               }
+               $this->NewLine();
+               $this->fontSize += 4;
+               $this->Font('bold');
+               $this->Text($ccol, $this->company['coy_name'], $icol);
+               $this->Font();
+               $this->fontSize -= 4;
                // Document title
                $this->SetTextColor(190, 190, 190);
                $this->fontSize += 10;