X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Fpdf_report.inc;h=a0a78be95b0784c49531c477a4603374c4164fb9;hb=89d9b659abe59b9ee1357b3f08857f8f0e43e425;hp=5b468764fd2ed194af318adf0836b85840307230;hpb=561e44e6af27c09236aa0ae3aa83cb7097b534c8;p=fa-stable.git diff --git a/reporting/includes/pdf_report.inc b/reporting/includes/pdf_report.inc index 5b468764..a0a78be9 100644 --- a/reporting/includes/pdf_report.inc +++ b/reporting/includes/pdf_report.inc @@ -341,7 +341,7 @@ class FrontReport extends Cpdf $str = $this->fiscal_year; $this->Text($titleCol, $str, $companyCol); $this->Text($companyCol, $this->user); - for ($i = 1; $i < count($this->params); $i++) + for ($i = 1; $i < count_array($this->params); $i++) { if ($this->params[$i]['from'] != '') { @@ -371,12 +371,12 @@ class FrontReport extends Cpdf $this->Font('italic'); if ($this->headers2 != null) { - $count = count($this->headers2); + $count = count_array($this->headers2); for ($i = 0; $i < $count; $i++) $this->TextCol2($i, $i + 1, $this->headers2[$i]); $this->NewLine(); } - $count = count($this->headers); + $count = count_array($this->headers); for ($i = 0; $i < $count; $i++) $this->TextCol($i, $i + 1, $this->headers[$i]); $this->Font(); @@ -389,7 +389,7 @@ class FrontReport extends Cpdf */ function SetCommonData($myrow, $branch, $sales_order, $bankaccount, $doctype, $contacts) { - + $this->pageNumber = 0; $this->formData = array(); $datnames = array( 'myrow' => array('ord_date', 'date_', 'tran_date',