Changeset 693 for trunk/phpbms/modules/bms/report/receipts_pttotals.php
- Timestamp:
- 12/31/09 13:36:45 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/bms/report/receipts_pttotals.php
r611 r693 39 39 40 40 if(!class_exists("phpbmsReport")) 41 include("../../../report/report_class.php");41 include("../../../report/report_class.php"); 42 42 43 43 class receiptsPTTotals extends phpbmsReport{ 44 44 45 function receiptsPTTotals($db ){46 47 parent::phpbmsReport($db);45 function receiptsPTTotals($db, $reportUUID, $tabledefUUID){ 46 47 parent::phpbmsReport($db, $reportUUID, $tabledefUUID); 48 48 49 49 }//end method … … 67 67 LEFT JOIN paymentmethods ON receipts.paymentmethodid = paymentmethods.uuid)"; 68 68 69 if($this->sort order)70 $this->sort order= "paymentmethods.id DESC, ".$this->sortorder;69 if($this->sortOrder) 70 $this->sortOrder= "paymentmethods.id DESC, ".$this->sortorder; 71 71 else 72 $this->sort order= "paymentmethods.id DESC, receipts.receiptdate";72 $this->sortOrder= "paymentmethods.id DESC, receipts.receiptdate"; 73 73 74 74 $querystatement = $this->assembleSQL($querystatement); … … 216 216 }//end method 217 217 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 */ 225 if(!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 */ 244 if(isset($addingReportRecord)) 245 $reportClass ="generalExport"; 237 246 ?>