Changeset 715


Ignore:
Timestamp:
Nov 23, 2010, 8:18:01 AM (9 years ago)
Author:
gav
Message:

Domain change, implemented ticket #90 - InventoryItem?.recommendedReorderPoint renamed to reorderQuantity.

Location:
trunk/grails-app
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/InventoryItem.groovy

    r616 r715  
    1717    Integer unitsInStock = 0
    1818    Integer reorderPoint
    19     Integer recommendedReorderPoint
     19    Integer reorderQuantity
    2020    Integer averageDeliveryTime
    2121    boolean isActive = true
     
    4646        reorderPoint()
    4747        enableReorderListing()
    48         recommendedReorderPoint(nullable:true)
     48        reorderQuantity(nullable:true)
    4949        isActive()
    5050        isObsolete()
  • trunk/grails-app/services/InventoryCsvService.groovy

    r616 r715  
    5454            def maxNumberOfColumns = 25
    5555            def inventoryParams = [:]
    56             def inventoryProperties = ["name", "description", "comment", "unitsInStock", "reorderPoint", "recommendedReorderPoint",
     56            def inventoryProperties = ["name", "description", "comment", "unitsInStock", "reorderPoint", "reorderQuantity",
    5757                                                        "unitOfMeasure", "estimatedUnitPriceAmount", "estimatedUnitPriceCurrency",
    5858                                                        "enableReorderListing", "inventoryLocation", "inventoryStore", "site",
     
    574574            row.add(inventoryItem.unitsInStock)
    575575            row.add(inventoryItem.reorderPoint)
    576             row.add(inventoryItem.recommendedReorderPoint)
     576            row.add(inventoryItem.reorderQuantity)
    577577            row.add(inventoryItem.unitOfMeasure)
    578578            row.add(inventoryItem.estimatedUnitPriceAmount)
     
    825825
    826826    private getTemplateHeaderLine1() {
    827             ["Name*", "Description", "Comment", "Units In Stock", "Reorder Point*", "Recommended Reorder Point", "Unit Of Measure*",
     827            ["Name*", "Description", "Comment", "Units In Stock", "Reorder Point*", "Reorder Quantity", "Unit Of Measure*",
    828828            "Estimated Unit Price", "Currency", "Enable Reorder", "Location*", "Store*", "Site*", "Group*", "Type*",
    829829            "Average Delivery Time", "Average Delivery Period", "Supplier's Part Number", "Preferred Supplier", "Alternate Suppliers",
  • trunk/grails-app/views/inventoryItemDetailed/edit.gsp

    r616 r715  
    117117                            <tr class="prop">
    118118                                <td valign="top" class="name">
    119                                     <label for="recommendedReorderPoint">Recommended Reorder Point:</label>
    120                                 </td>
    121                                 <td valign="top">
    122                                     <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"
    123                                                 type="text" id="recommendedReorderPoint" name="recommendedReorderPoint"
    124                                                 value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" />
     119                                    <label for="reorderQuantity">Reorder Quantity:</label>
     120                                </td>
     121                                <td valign="top">
     122                                    <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'reorderQuantity','errors')}"
     123                                                type="text" id="reorderQuantity" name="reorderQuantity"
     124                                                value="${fieldValue(bean:inventoryItemInstance,field:'reorderQuantity')}" />
    125125                                     ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()}
    126126                                </td>
  • trunk/grails-app/views/inventoryItemDetailed/show.gsp

    r619 r715  
    257257
    258258                                    <tr class="prop">
    259                                         <td valign="top" class="name">Recommended Reorder Point:</td>
    260                                         <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'recommendedReorderPoint')}</td>
     259                                        <td valign="top" class="name">Reorder Quantity:</td>
     260                                        <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'reorderQuantity')}</td>
    261261                                    </tr>
    262262
Note: See TracChangeset for help on using the changeset viewer.