X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Fheader2.inc;h=6298149b2317940814228707438a2ffe1228440b;hb=5db6030e4d0126be8883347574111be381478256;hp=2f23a36ac719b2a5d0ccb1a06dfc3b7315269334;hpb=ff0d5ae999496cdcd1f7eb1d47425340e61b44cf;p=fa-stable.git diff --git a/reporting/includes/header2.inc b/reporting/includes/header2.inc index 2f23a36a..6298149b 100644 --- a/reporting/includes/header2.inc +++ b/reporting/includes/header2.inc @@ -14,7 +14,7 @@ $upper = $this->row - 2 * $this->lineHeight; $lower = $this->bottomMargin + 6 * $this->lineHeight; - $iline1 = $upper - 7 * $this->lineHeight; + $iline1 = $upper - 7.5 * $this->lineHeight; $iline2 = $iline1 - 8 * $this->lineHeight; $iline3 = $iline2 - 1.5 * $this->lineHeight; $iline4 = $iline3 - 1.5 * $this->lineHeight; @@ -107,7 +107,13 @@ $this->Text($ccol, $doc_Our_VAT_no, $c2col); $this->Text($c2col, $this->company['gst_no'], $mcol); $this->NewLine(); - } + } + if (($doctype == 10 || $doctype == 12) && $this->company['domicile'] != "") + { + $this->Text($ccol, $doc_Domicile, $c2col); + $this->Text($c2col, $this->company['domicile'], $mcol); + $this->NewLine(); + } $this->Font(); $this->row = $adrline; $this->NewLine(3); @@ -276,10 +282,9 @@ $this->TextWrap($ccol, $this->row, $right - $ccol, $this->params['comments'], 'C'); $this->NewLine(); } - $legal = get_company_pref('legal_text'); - if (($doctype == 10 || $doctype == 12) && $legal != "") + if (($doctype == 10 || $doctype == 12) && $this->company['legal_text'] != "") { - $this->TextWrap($ccol, $this->row, $right - $ccol, $legal, 'C'); + $this->TextWrap($ccol, $this->row, $right - $ccol, $this->company['legal_text'], 'C'); $this->NewLine(); } $this->Font();