phpBMS

Show
Ignore:
Timestamp:
01/01/10 14:34:39 (2 years ago)
Author:
nate
Message:
  • Removed references to 'deposits' and replaced them with references to 'credits' (in relation to ar items and receipts).
  • Made sure that the type field for aritems should be able to take 'credit' but not 'deposit', and the update will change the references from deposit to credit (this time on the database side).
  • Fixed bugs with generateuuids.php and with the load open items button on the receipts add-edit.
Files:
1 modified

Legend:

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

    r636 r701  
    2121                                        `aritems`.`relatedid`, 
    2222                                        `aritems`.`itemdate`, 
    23                                         IF(`aritems`.`type` = 'credit', 'deposit', `aritems`.`type`) AS `type`, 
     23                                        `aritems`.`type`, 
    2424                                        `aritems`.`amount`, 
    2525                                        `aritems`.`paid` 
     
    4848                                        `aritems`.`relatedid`, 
    4949                                        `aritems`.`itemdate`, 
    50                                         IF(`aritems`.`type` = 'credit', 'deposit', `aritems`.`type`) AS `type`, 
     50                                        `aritems`.`type`, 
    5151                                        `aritems`.`amount`, 
    5252                                        `aritems`.`paid` 
     
    114114 
    115115                        $queryType = $type; 
    116                         if($type == "deposit") 
     116                        if($type == "credit") 
    117117                                $queryType = "credit"; 
    118118 
     
    139139                        "; 
    140140 
    141                                 if($type == "deposit") 
     141                                if($type == "credit") 
    142142                                        $querystatement .= "itemdate"; 
    143143                                else 
     
    189189                                <p> 
    190190                                        <select id="newItemType"> 
    191                                                 <option value="deposit">deposit</option> 
     191                                                <option value="credit">credit</option> 
    192192                                                <option value="invoice">invoice</option> 
    193193                                                <option value="service charge">service charge</option> 
     
    197197                        </fieldset> 
    198198 
    199                         <fieldset id="newItemDepositFieldset"> 
    200                                 <legend>Deposits</legend> 
    201  
    202                                 <p id="newItemDepositNewP"> 
    203                                         <input type="radio" class="radiochecks" name="newItemDepositType" id="newItemDepositNew" checked="checked"/> 
    204                                         <label for="newItemDepositNew">new</label> 
    205                                 </p> 
    206  
    207                                 <p id="newItemDepositExistingP"> 
    208                                         <input type="radio" class="radiochecks" name="newItemDepositType" id="newItemDepositExisting"/> 
    209                                         <label for="newItemDepositExisting">existing deposit</label> 
     199                        <fieldset id="newItemCreditFieldset"> 
     200                                <legend>Credits</legend> 
     201 
     202                                <p id="newItemCreditNewP"> 
     203                                        <input type="radio" class="radiochecks" name="newItemCreditType" id="newItemCreditNew" checked="checked"/> 
     204                                        <label for="newItemCreditNew">new</label> 
     205                                </p> 
     206 
     207                                <p id="newItemCreditExistingP"> 
     208                                        <input type="radio" class="radiochecks" name="newItemCreditType" id="newItemCreditExisting"/> 
     209                                        <label for="newItemCreditExisting">existing credit</label> 
    210210                                </p> 
    211211 
    212212                                <p id="newItemExisingListP"> 
    213                                         <?php $this->_showOpenARSelect($clientid, "deposit"); ?> 
     213                                        <?php $this->_showOpenARSelect($clientid, "credit"); ?> 
    214214                                </p> 
    215215                        </fieldset> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.