! -> Note
$ -> Affected files
+17-Mar-2009 Joe Hunt
+! Changed so company domicile is printed on invoices and statements if filled out.
+$ /reporting/includes/header2.inc
+
17-Mar-2009 Janusz Dobrowolski
+ Added default delivery required by parameter, removed custom company fileds/names.
$ /admin/company_preferences.php
$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;
$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);
$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();