phpBMS

Show
Ignore:
Timestamp:
12/31/09 13:36:45 (2 years ago)
Author:
brieb
Message:
  • Introduced administratively changeable settings to indvidual reports
  • Modified all reports to work with new settings system
  • Altered invoice and line item total reports to accept parameters from reportsettings: You can now bypass the grouping/column dialog by providing the infrmation administratively
  • Altered all sales order PDF reports to accept parameters from reportsettings: You can now administratively change certain aspects of the print outs, including what parts of the top of the report to show, and what to title the report
  • Altered label reports to accept parameters from reportsettings: printed data as well

as label measurements and layout are now defined by administratively

  • Altered export and tableprint reports to accept parameters from reportsettings: You can specify individual columns and from table instead of just the defaults (all fields, main table only)
  • Added var_dump-esque 'debug' function for development purposes to common functions
  • Integrated FPDI functionality with sales order PDF reports: It is now possible to use a PDF saved in the files table as a background template for your invoices (e.g. watermarks)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/bms/report/aritems_clientstatement.php

    r673 r693  
    5050        var $showClosed = false; 
    5151 
    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); 
    5555 
    5656                if($statementDate) 
     
    6969 
    7070                if($whereclause) 
    71                         $this->whereclause = $whereclause; 
    72  
    73                 if(!$this->whereclause) 
    74                         $this->whereclause = " 
     71                        $this->whereClause = $whereclause; 
     72 
     73                if(!$this->whereClause) 
     74                        $this->whereClause = " 
    7575                                aritems.status = 'open' 
    7676                                AND aritems.posted = 1"; 
     
    108108                                        ON clients.salesmanagerid = users.uuid"; 
    109109 
    110                 $this->sortorder = '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)'; 
    111111 
    112112                $querystatement = $this->assembleSQL($querystatement); 
     
    134134                //uncomment the following line to help troubleshoot formatting 
    135135                //$pdf->borderDebug = 1; 
    136                 $pdf->hasComapnyHeader = true; 
     136                $pdf->logoInHeader = true; 
     137                $pdf->companyInfoInHeader = true; 
    137138                $pdf->SetMargins(); 
    138139 
     
    608609if(!isset($noOutput)){ 
    609610 
     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 
    610622        if(isset($_GET["cmd"])){ 
    611623 
     
    616628 
    617629        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); 
    626630 
    627631                switch($_POST["command"]){ 
     
    635639        } else { 
    636640 
    637                 require_once("../../../include/session.php"); 
    638  
    639                 $report = new aritemsClientStatements($db); 
    640  
    641641                $report->showOptions(); 
    642642 
     
    644644 
    645645}//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 */ 
     651if(isset($addingReportRecord)) 
     652    $reportClass ="aritemsClientStatements"; 
     653 
    646654?> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.