navigation  interaction  search

 other resources

Changeset 419

Show
Ignore:
Timestamp:
07/11/08 11:49:24
Author:
nate
Message:
  • Added php support for a tax id in clients (clients_addedit.php) and in the phpBMS configuration settings.
  • Added database support for said tax id.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/phpbms/modules/base/adminsettings.php

    r403 r419  
    147147                        <span class="notes"> 
    148148                                <strong>Example:</strong> Replace this with your comapny name + BMS (e.g. "Kreotek BMS").  Replacing 
    149                                 the aplication name will reset the session cookie, and require you to log in again. 
     149                                the application name will reset the session cookie, and require you to log in again. 
    150150                        </span> 
    151151                </p> 
     
    188188                        <label for="company_phone">phone number</label><br /> 
    189189                        <input id="company_phone" name="company_phone" type="text" value="<?php echo htmlQuotes($therecord["company_phone"]) ?>" size="40" maxlength="128" /> 
     190                </p> 
     191         
     192                <p> 
     193                        <label for="company_taxid">company tax id</label><br /> 
     194                        <input id="company_taxid" name="company_taxid" type="text" value="<?php echo htmlQuotes($therecord["company_taxid"]) ?>" size="40" maxlength="128" /> 
    190195                </p> 
    191196 
  • trunk/phpbms/modules/bms/clients_addedit.php

    r384 r419  
    133133                $theinput = new inputField("webaddress",$therecord["webaddress"],"web address",false,"www",68,128); 
    134134                $theform->addField($theinput); 
     135                 
     136                $theinput = new inputField("taxid", $therecord["taxid"], "tax id", false, "", 25, 32); 
     137                $theform->addField($theinput); 
    135138 
    136139                $theform->jsMerge(); 
     
    251254                         
    252255                        <p><?php $theform->showField("webaddress")?></p> 
     256                         
     257                        <p><?php $theform->showField("taxid")?></p> 
    253258                </fieldset> 
    254259                 
  • trunk/phpbms/modules/bms/install/createtables.sql

    r386 r419  
    2727  `email` varchar(128) default NULL, 
    2828  `webaddress` varchar(128) default NULL, 
     29  `taxid` VARCHAR(64) default NULL, 
    2930  `salesmanagerid` int(11) default NULL, 
    3031  `leadsource` varchar(64) default NULL, 
  • trunk/phpbms/modules/bms/install/modules.sql

    r397 r419  
    1 INSERT INTO modules VALUES (2,'BMS Module','bms','The Business Magagement functionality of phpBMS.  This module includes clients/propsetcs, quote/order/invoice, and products sections.','0.96'); 
     1INSERT INTO modules VALUES (2,'BMS Module','bms','The Business Magagement functionality of phpBMS.  This module includes clients/propsetcs, quote/order/invoice, and products sections.','0.98'); 
  • trunk/phpbms/modules/bms/install/settings.sql

    r384 r419  
    1717INSERT INTO `settings` (`name`, `value`) VALUES ('prospects_on_orders','1'); 
    1818INSERT INTO `settings` (`name`, `value`) VALUES ('clear_payment_on_invoice','1'); 
     19INSERT INTO `settings` (`name`, `value`) VALUES ('company_taxid', ''); 
  • trunk/phpbms/modules/bms/install/update.php

    r386 r419  
    327327 
    328328                                        break; 
     329                                 
     330                                // ================================================================================================ 
     331                                case "0.96"; 
     332 
     333                                        $thereturn.= processSQLfile($db,"updatev0.98.sql"); 
     334                                         
     335                                        //Updating Module Table 
     336                                        $updatestatement = " 
     337                                                UPDATE  
     338                                                        modules  
     339                                                SET  
     340                                                        version='0.98'  
     341                                                WHERE  
     342                                                        name='bms';"; 
     343 
     344                                        $db->query($updatestatement); 
     345 
     346                                        $thereturn .= "Update of Business Management System Module to 0.98 Finished\n\n"; 
     347 
     348                                        $ver["version"] = "0.98"; 
     349 
     350                                        break; 
    329351 
    330352                        }//end switch 
  • trunk/phpbms/modules/bms/install/version.php

    r384 r419  
    33        $modules["bms"]["name"] = "Buisness Management System (BMS)"; 
    44         
    5         $modules["bms"]["version"] = 0.96
     5        $modules["bms"]["version"] = 0.98
    66         
    77        $modules["bms"]["description"] =  
    88        "The Business Magagement functionality of phpBMS.  This module includes clients/propsetcs, quote/order/invoice, and products sections."; 
    99         
    10         $modules["bms"]["requirements"] = "phpBMS Core v0.96"; 
     10        $modules["bms"]["requirements"] = "phpBMS Core v0.98"; 
    1111 
    1212?> 
Copyright © 2006-2007 Kreotek, LLC. All Rights reserved.