Fixed PayPal link url on sales invoice.
[fa-stable.git] / reporting / includes / pdf_report.inc
index caf01d966c4dc4a7d13277a013a44485fa520161..c02c0207efde3e210678e3110c834a464d5edda4 100644 (file)
@@ -528,7 +528,7 @@ class FrontReport extends Cpdf
                        // Width being zero means that the image will be scaled to the specified height
                        // keeping its aspect ratio intact.
                        if ($this->scaleLogoWidth)
-                               $this->AddImage($logo, $companyCol, $this->row, COMPANY_WIDTH, 0);
+                               $this->AddImage($logo, $companyCol, $this->row + 15, COMPANY_WIDTH, 0);
                        else    
                                $this->AddImage($logo, $companyCol, $this->row - (LOGO_HEIGHT * LOGO_Y_POS_ADJ_FACTOR), 0, LOGO_HEIGHT);
                }
@@ -980,7 +980,7 @@ class FrontReport extends Cpdf
                                if ($this->contactData)
                                        foreach($this->contactData as $contact)
                                                if (!empty($contact['email']))
-                                                       $contactData[] = $contact['email'];
+                                                       $contactData[] = $contact;
 
                                if(!count($contactData)) {
                                        $this->SetLang(user_language());