function Header2($myrow, $branch, $sales_order, $bankaccount, $doctype)
{
- global $comp_path, $path_to_root, $print_as_quote, $print_invoice_no;
+ global $comp_path, $path_to_root, $print_as_quote, $print_invoice_no, $packing_slip;
$this->pageNumber++;
if ($this->pageNumber > 1)
require_once($path_to_root . "/reporting/includes/class.mail.inc");
$mail = new email($this->company['coy_name'], $this->company['email']);
if (!isset($myrow['email']) || $myrow['email'] == '')
- $myrow['email'] = $myrow['contact_email'];
+ $myrow['email'] = isset($myrow['contact_email']) ? $myrow['contact_email'] : '';
$to = $myrow['DebtorName'] . " <" . $myrow['email'] . ">";
$msg = $doc_Dear_Sirs . " " . $myrow['DebtorName'] . ",\n\n" . $doc_AttachedFile . " " . $subject .
"\n\n";