X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Fpdf_report.inc;h=6b9b45c9f637c53b089a3a016eeefae8d93c9984;hb=a9d55e1c13cbd6a6305b9322ec8621a06516f9f3;hp=9e96bf2ca826169e461f1a3b8914d6650d83f913;hpb=104460ae3eca1e1d53ad5e4541d076c967421c1c;p=fa-stable.git diff --git a/reporting/includes/pdf_report.inc b/reporting/includes/pdf_report.inc index 9e96bf2c..6b9b45c9 100644 --- a/reporting/includes/pdf_report.inc +++ b/reporting/includes/pdf_report.inc @@ -376,8 +376,6 @@ class FrontReport extends Cpdf */ function SetCommonData($myrow, $branch, $sales_order, $bankaccount, $doctype, $contacts) { -// $this->formData = array_merge($myrow, $branch, $sales_order, -// $bank_account, array('doctype' => $doctype)); $this->formData = array(); $datnames = array( @@ -471,16 +469,6 @@ class FrontReport extends Cpdf $footerCol = $this->leftMargin + PAGE_NUM_WIDTH; $footerRow = $this->bottomMargin - FOOTER_MARGIN; - // Calling this function generates a new PDF page after the first instance -// { -// // TODO: experimenting with line drawing to highlight current period -// $this->SetLineWidth(1); -// $this->LineTo($this->cols[3], 33, $this->cols[3], 534); -// $this->LineTo($this->cols[4], 33, $this->cols[4], 534); -// $this->SetLineWidth(0.1); - -// $this->newPage(); -// } $this->row = $this->pageHeight - $this->topMargin; // Set the color of dividing lines we'll draw @@ -969,9 +957,6 @@ class FrontReport extends Cpdf } // do not use standard filenames or your sensitive company data // are world readable -// if ($email == 1) -// $fname = $dir.'/'.$this->filename; -// else $fname = $dir.'/'.uniqid('').'.pdf'; $this->Output($fname, 'F'); @@ -1059,7 +1044,6 @@ class FrontReport extends Cpdf header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); -// $this->Stream(basename($fname)); $this->Stream($this->filename); } } else { // send report to network printer