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_summary.php

    r633 r693  
    5959 
    6060 
    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); 
    6464 
    6565                if($statementDate) 
     
    7878 
    7979                if($whereclause) 
    80                         $this->whereclause = $whereclause; 
    81  
    82                 if(!$this->whereclause) 
    83                         $this->whereclause = " 
     80                        $this->whereClause = $whereclause; 
     81 
     82                if(!$this->whereClause) 
     83                        $this->whereClause = " 
    8484                                aritems.status = 'open' 
    8585                                AND aritems.posted = 1"; 
     
    116116                                        ON clients.salesmanagerid = users.uuid"; 
    117117 
    118                 $this->sortorder = '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)'; 
    119119 
    120120                $querystatement = $this->assembleSQL($querystatement); 
     
    573573        }//endif 
    574574 
     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 
    575584        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); 
    584585 
    585586                switch($_POST["command"]){ 
     
    593594        } else { 
    594595 
    595                 require_once("../../../include/session.php"); 
    596  
    597                 $report = new aritemsSummary($db); 
    598  
    599596                $report->showOptions(); 
    600597 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.