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

    r606 r693  
    5252        if(!isset($_POST["fromdate"])) $_POST["fromdate"]=dateToString(strtotime("-1 year")); 
    5353        if(!isset($_POST["todate"])) $_POST["todate"]=dateToString(mktime()); 
    54         if(!isset($_POST["status"])) $_POST["status"]="Orders/Invoices"; 
     54        if(!isset($_POST["status"])) $_POST["status"]="Orders and Invoices"; 
    5555        if(!isset($_POST["command"])) $_POST["command"]="show"; 
    5656 
    5757        if($_POST["command"]=="print")  { 
    5858 
    59                 $_SESSION["printing"]["whereclause"]="WHERE clients.id=".$_GET["id"]; 
    60                 $_SESSION["printing"]["dataprint"]="Single Record"; 
    61                 $fromClient=true; 
    62                 require("report/clients_purchasehistory.php"); 
     59            $_SESSION["printing"]["whereclause"] = "clients.id=".$_GET["id"]; 
     60            $_SESSION["printing"]["dataprint"] = "Single Record"; 
     61 
     62            goURL("report/clients_purchasehistory.php?rid=".urlencode("rpt:1908b03c-cacc-f03a-6d22-21fdef123f65")."&tid=".urlencode("tbld:6d290174-8b73-e199-fe6c-bcf3d4b61083")."&status=".urlencode($_POST["status"])."&fromdate=".urlencode($_POST["fromdate"])."&todate=".urlencode($_POST["todate"])); 
    6363 
    6464        } else { 
     
    7272        $thestatus="(invoices.type =\""; 
    7373        switch($_POST["status"]){ 
    74                 case "Orders/Invoices": 
     74                case "Orders and Invoices": 
    7575                        $thestatus.="Order\" or invoices.type=\"Invoice\")"; 
    7676                break; 
     
    110110                thedate, 
    111111                invoices.id"; 
    112                  
     112 
    113113        $queryresult=$db->query($querystatement); 
    114114 
     
    142142                           <label for="status">type</label><br /> 
    143143                           <select name="status" id="status"> 
    144                                         <option value="Orders/Invoices" <?php if($_POST["status"]=="Orders/Invoices") echo "selected=\"selected\""?>>Orders/Invoices</option> 
     144                                        <option value="Orders abd Invoices" <?php if($_POST["status"]=="Orders and Invoices") echo "selected=\"selected\""?>>Orders and Invoices</option> 
    145145                                        <option value="Invoices" <?php if($_POST["status"]=="Invoices") echo "selected=\"selected\""?>>Invoices</option> 
    146146                                        <option value="Orders" <?php if($_POST["status"]=="Orders") echo "selected=\"selected\""?>>Orders</option> 
     
    153153 
    154154                        <p id="printP"><br /><input id="print" name="command" type="submit" value="print" class="Buttons" /></p> 
    155                         <p id="changeTimelineP"><br /><input name="command" type="submit" value="change timeframe/view" class="smallButtons" /></p> 
     155                        <p id="changeTimelineP"><br /><input name="command" type="submit" value="update" class="smallButtons" /></p> 
    156156                </div> 
    157157        </form> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.