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/receipts_pttotals.php

    r611 r693  
    3939 
    4040if(!class_exists("phpbmsReport")) 
    41         include("../../../report/report_class.php"); 
     41    include("../../../report/report_class.php"); 
    4242 
    4343class receiptsPTTotals extends phpbmsReport{ 
    4444 
    45         function receiptsPTTotals($db){ 
    46  
    47                 parent::phpbmsReport($db); 
     45        function receiptsPTTotals($db, $reportUUID, $tabledefUUID){ 
     46 
     47            parent::phpbmsReport($db, $reportUUID, $tabledefUUID); 
    4848 
    4949        }//end method 
     
    6767                                LEFT JOIN paymentmethods ON receipts.paymentmethodid = paymentmethods.uuid)"; 
    6868 
    69                 if($this->sortorder) 
    70                         $this->sortorder = "paymentmethods.id DESC, ".$this->sortorder; 
     69                if($this->sortOrder) 
     70                        $this->sortOrder= "paymentmethods.id DESC, ".$this->sortorder; 
    7171                else 
    72                         $this->sortorder = "paymentmethods.id DESC, receipts.receiptdate"; 
     72                        $this->sortOrder= "paymentmethods.id DESC, receipts.receiptdate"; 
    7373 
    7474                $querystatement = $this->assembleSQL($querystatement); 
     
    216216        }//end method 
    217217 
    218 }//end method 
    219  
    220  
    221         //PROCESSING 
    222         //======================================================================== 
    223  
    224         if(!isset($noOutput)){ 
    225  
    226                 session_cache_limiter('private'); 
    227  
    228                 require("../../../include/session.php"); 
    229  
    230                 $report = new receiptsPTTotals($db); 
    231                 $report->setupFromPrintScreen(); 
    232                 $report->generate(); 
    233                 $report->show(); 
    234  
    235         }//end if 
    236  
     218}//end class 
     219 
     220 
     221/** 
     222 * PROCESSING 
     223 * ============================================================================= 
     224 */ 
     225if(!isset($noOutput)){ 
     226 
     227    session_cache_limiter('private'); 
     228 
     229    require("../../../include/session.php"); 
     230 
     231    checkForReportArguments(); 
     232 
     233    $report = new receiptsPTTotals($db, $_GET["rid"], $_GET["tid"]); 
     234    $report->setupFromPrintScreen(); 
     235    $report->generate(); 
     236    $report->show(); 
     237 
     238}//end if 
     239 
     240/** 
     241 * When adding a new report record, the add/edit needs to know what the class 
     242 * name is so that it can instantiate it, and grab it's default settings. 
     243 */ 
     244if(isset($addingReportRecord)) 
     245    $reportClass ="generalExport"; 
    237246?> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.