{
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");
$this->{$this->headerTmpl}();
}
- function End($email=0)
+ function End($email=0, $subject='')
{
global $pdf_debug, $path_to_root;
display_error(_("You have no email contact defined for this type of document"));
} else {
$sent = $try = 0;
- $subject = $this->formData['document_name'] . ' '. $this->formData['document_number'];
+ if(!$subject)
+ $subject = $this->formData['document_name'] . ' '. $this->formData['document_number'];
foreach($this->contactData as $contact) {
if (!isset($contact['email']))
continue;