+ $this->SetTextColor(190, 190, 190);
+ $this->fontSize += 10;
+ $this->Font('bold');
+ $this->TextWrap($mcol, $this->row, $this->pageWidth - $this->rightMargin - $mcol - 20, $this->title, 'right');
+ $this->Font();
+ $this->fontSize -= 10;
+ $this->NewLine();
+ $this->SetTextColor(0, 0, 0);
+ $adrline = $this->row;
+ $this->TextWrapLines($ccol, $icol, $this->company['postal_address']);
+ $this->Font('italic');
+ if ($this->company['phone'] != "")
+ {
+ $this->Text($ccol, _("Phone"), $c2col);
+ $this->Text($c2col, $this->company['phone'], $mcol);
+ $this->NewLine();
+ }
+ if ($this->company['fax'] != "")
+ {
+ $this->Text($ccol, _("Fax"), $c2col);
+ $this->Text($c2col, $this->company['fax'], $mcol);
+ $this->NewLine();
+ }
+ if ($this->company['email'] != "")
+ {
+ $this->Text($ccol, _("Email"), $c2col);
+
+ $url = "mailto:" . $this->company['email'];
+ $this->SetTextColor(0, 0, 255);
+ $this->Text($c2col, $this->company['email'], $mcol);
+ $this->SetTextColor(0, 0, 0);
+ $this->addLink($url, $c2col, $this->row, $mcol, $this->row + $this->lineHeight);
+
+ $this->NewLine();
+ }
+ if ($this->company['gst_no'] != "")
+ {
+ $this->Text($ccol, $doc_Our_VAT_no, $c2col);
+ $this->Text($c2col, $this->company['gst_no'], $mcol);
+ $this->NewLine();
+ }
+ $this->Font();
+ $this->row = $adrline;
+ $this->NewLine(3);
+ $this->Text($mcol + 100, $doc_Date.":");
+ if ($doctype == 8 || $doctype == 9)
+ $this->Text($mcol + 180, sql2date($myrow['ord_date']));
+ else
+ $this->Text($mcol + 180, sql2date($myrow['tran_date']));
+ $this->NewLine();
+ $this->Text($mcol + 100, $doc_Invoice_no);