phpBMS

Show
Ignore:
Timestamp:
01/18/10 13:08:08 (2 years ago)
Author:
brieb
Message:
  • Turned off all warnings and errors when not in debug mode. This is for security purposes so that the absolute path is not exposed.
  • fixed AR run aging to properly print checked print outs
  • Added code to grab the deafult time zone and set it. This will help stem problems from E_STRICT reporting and also should speed up some date/time functions.
  • Fixed line item to sales order relationships for new installs
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/bms/aritems_aging.php

    r704 r767  
    332332//Processor 
    333333//=========================================================================== 
    334 if(!isset($bypass)){ 
    335  
    336         include_once("../../include/session.php"); 
    337  
    338         $aging = new arAging($db); 
    339  
    340         if(isset($_POST["command"])){ 
    341  
    342                 switch($_POST["command"]){ 
    343  
    344                         case "run": 
    345                                 $aging->run($_POST["agingdate"]); 
    346  
    347                                 if(isset($_POST["printStatements"])) 
    348                                         $aging->printClientStatements = true; 
    349  
    350                                 if(isset($_POST["printSummary"])) 
    351                                         $aging->printSummary = true; 
    352  
    353                                 $aging->showResults(); 
    354  
    355                                 break; 
    356  
    357                         case "cancel": 
    358                                 goURL(APP_PATH."search.php?id=tbld%3Ac595dbe7-6c77-1e02-5e81-c2e215736e9c"); 
    359  
    360                 }//endswitch 
    361  
    362         } else 
    363                 $aging->showDialog(); 
     334if(!isset($noOutput)){ 
     335 
     336    include_once("../../include/session.php"); 
     337 
     338    $aging = new arAging($db); 
     339 
     340    if(isset($_POST["command"])){ 
     341 
     342            switch($_POST["command"]){ 
     343 
     344                case "run": 
     345 
     346                    if(!isset($_POST["agingdate"])) 
     347                        $error = new appError(200, "passed parameters not set"); 
     348 
     349                    $aging->run($_POST["agingdate"]); 
     350 
     351                    if(isset($_POST["printStatements"])) 
     352                        $aging->printClientStatements = true; 
     353 
     354                    if(isset($_POST["printSummary"])) 
     355                        $aging->printSummary = true; 
     356 
     357                    $aging->showResults(); 
     358                    break; 
     359 
     360                case "cancel": 
     361 
     362                    goURL(APP_PATH."search.php?id=tbld%3Ac595dbe7-6c77-1e02-5e81-c2e215736e9c"); 
     363 
     364            }//endswitch 
     365    } else 
     366        $aging->showDialog(); 
    364367 
    365368}//end if 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.