- Timestamp:
- 12/31/09 13:36:45 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/bms/report/aritems_clientstatement.php
r673 r693 50 50 var $showClosed = false; 51 51 52 function aritemsClientStatements($db, $ statementDate = NULL, $showPayments = true, $showClosed = false){53 54 parent::phpbmsReport($db);52 function aritemsClientStatements($db, $reportUUID, $tabledefUUID, $statementDate = NULL, $showPayments = true, $showClosed = false){ 53 54 parent::phpbmsReport($db, $reportUUID, $tabledefUUID); 55 55 56 56 if($statementDate) … … 69 69 70 70 if($whereclause) 71 $this->where clause = $whereclause;72 73 if(!$this->where clause)74 $this->where clause = "71 $this->whereClause = $whereclause; 72 73 if(!$this->whereClause) 74 $this->whereClause = " 75 75 aritems.status = 'open' 76 76 AND aritems.posted = 1"; … … 108 108 ON clients.salesmanagerid = users.uuid"; 109 109 110 $this->sort order = 'if(clients.lastname!="",concat(clients.lastname,", ",clients.firstname,if(clients.company!="",concat(" (",clients.company,")"),"")),clients.company)';110 $this->sortOrder = 'if(clients.lastname!="",concat(clients.lastname,", ",clients.firstname,if(clients.company!="",concat(" (",clients.company,")"),"")),clients.company)'; 111 111 112 112 $querystatement = $this->assembleSQL($querystatement); … … 134 134 //uncomment the following line to help troubleshoot formatting 135 135 //$pdf->borderDebug = 1; 136 $pdf->hasComapnyHeader = true; 136 $pdf->logoInHeader = true; 137 $pdf->companyInfoInHeader = true; 137 138 $pdf->SetMargins(); 138 139 … … 608 609 if(!isset($noOutput)){ 609 610 611 //IE needs caching to be set to private in order to display PDFS 612 session_cache_limiter('private'); 613 614 //set encoding to latin1 (fpdf doesnt like utf8) 615 $sqlEncoding = "latin1"; 616 require_once("../../../include/session.php"); 617 618 checkForReportArguments(); 619 620 $report = new aritemsClientStatements($db, $_GET["rid"], $_GET["tid"]); 621 610 622 if(isset($_GET["cmd"])){ 611 623 … … 616 628 617 629 if(isset($_POST["command"])) { 618 619 session_cache_limiter('private');620 621 //set encoding to latin1 (fpdf doesnt like utf8)622 $sqlEncoding = "latin1";623 require_once("../../../include/session.php");624 625 $report = new aritemsClientStatements($db);626 630 627 631 switch($_POST["command"]){ … … 635 639 } else { 636 640 637 require_once("../../../include/session.php");638 639 $report = new aritemsClientStatements($db);640 641 641 $report->showOptions(); 642 642 … … 644 644 645 645 }//end if 646 647 /** 648 * When adding a new report record, the add/edit needs to know what the class 649 * name is so that it can instantiate it, and grab it's default settings. 650 */ 651 if(isset($addingReportRecord)) 652 $reportClass ="aritemsClientStatements"; 653 646 654 ?>