Changeset 693 for trunk/phpbms/modules/bms/report/aritems_summary.php
- Timestamp:
- 12/31/09 13:36:45 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/bms/report/aritems_summary.php
r633 r693 59 59 60 60 61 function aritemsSummary($db, $ statementDate = NULL, $showPayments = "new", $showClosed = false){62 63 parent::phpbmsReport($db);61 function aritemsSummary($db, $reportUUID, $tabledefUUID, $statementDate = NULL, $showPayments = "new", $showClosed = false){ 62 63 parent::phpbmsReport($db, $reportUUID, $tabledefUUID); 64 64 65 65 if($statementDate) … … 78 78 79 79 if($whereclause) 80 $this->where clause = $whereclause;81 82 if(!$this->where clause)83 $this->where clause = "80 $this->whereClause = $whereclause; 81 82 if(!$this->whereClause) 83 $this->whereClause = " 84 84 aritems.status = 'open' 85 85 AND aritems.posted = 1"; … … 116 116 ON clients.salesmanagerid = users.uuid"; 117 117 118 $this->sort order = 'if(clients.lastname!="",concat(clients.lastname,", ",clients.firstname,if(clients.company!="",concat(" (",clients.company,")"),"")),clients.company)';118 $this->sortOrder = 'if(clients.lastname!="",concat(clients.lastname,", ",clients.firstname,if(clients.company!="",concat(" (",clients.company,")"),"")),clients.company)'; 119 119 120 120 $querystatement = $this->assembleSQL($querystatement); … … 573 573 }//endif 574 574 575 session_cache_limiter('private'); 576 //set encoding to latin1 (fpdf doesnt like utf8) 577 $sqlEncoding = "latin1"; 578 require_once("../../../include/session.php"); 579 580 checkForReportArguments(); 581 582 $report = new aritemsSummary($db, $_GET["rid"], $_GET["tid"]); 583 575 584 if(isset($_POST["command"])) { 576 577 session_cache_limiter('private');578 579 //set encoding to latin1 (fpdf doesnt like utf8)580 $sqlEncoding = "latin1";581 require_once("../../../include/session.php");582 583 $report = new aritemsSummary($db);584 585 585 586 switch($_POST["command"]){ … … 593 594 } else { 594 595 595 require_once("../../../include/session.php");596 597 $report = new aritemsSummary($db);598 599 596 $report->showOptions(); 600 597