X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Fpdf_report.inc;h=ee79d43e2e4173304deb5f008c6e0774dbef46ec;hb=05d1e1fc65fe68645b540e06884db0e9f24b1a21;hp=0648ad7d6015cfdd31d542ec586d5d552e02490e;hpb=91a637fe74ce0d78b9b4ce099b42449da87c6e71;p=fa-stable.git diff --git a/reporting/includes/pdf_report.inc b/reporting/includes/pdf_report.inc index 0648ad7d..ee79d43e 100644 --- a/reporting/includes/pdf_report.inc +++ b/reporting/includes/pdf_report.inc @@ -255,10 +255,10 @@ class FrontReport extends Cpdf { global $app_title, $version, $power_by, $power_url; - $this->addinfo('Title', $this->title); - $this->addinfo('Subject', $this->title); - $this->addinfo('Author', $app_title . ' ' . $version); - $this->addinfo('Creator',$power_by . ' - ' . $power_url); + $this->addInfo('Title', $this->title); + $this->addInfo('Subject', $this->title); + $this->addInfo('Author', $app_title . ' ' . $version); + $this->addInfo('Creator',$power_by . ' - ' . $power_url); $year = get_current_fiscalyear(); if ($year['closed'] == 0) $how = _("Active"); @@ -980,6 +980,7 @@ class FrontReport extends Cpdf display_error(_("You have no email contact defined for this type of document")); } else { $sent = $try = 0; + $emails = ""; if(!$subject) $subject = $this->formData['document_name'] . ' '. $this->formData['document_number']; foreach($this->contactData as $contact) { @@ -1018,6 +1019,7 @@ class FrontReport extends Cpdf $mail->subject($subject); $mail->text($msg . $sender); $mail->attachment($fname); + $emails .= " " . $contact['email']; if ($mail->send()) $sent++; } // foreach contact unlink($fname); @@ -1025,10 +1027,11 @@ class FrontReport extends Cpdf if (!$try) { display_error(_("There is no contact email set for this document type.")); } elseif (!$sent) - display_error(_("Sending document by email failed")); + display_error($this->title . " " . $this->formData['document_number'] . ". " + . _("Sending document by email failed") . ". " . _("Email:") . $emails); else display_notification($this->title . " " . $this->formData['document_number'] . " " - . _("has been sent by email to destination.")); + . _("has been sent by email to destination.") . " " . _("Email:") . $emails); } } else