- Timestamp:
- Jun 28, 2010, 1:01:30 AM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/InventoryItem.groovy
r610 r616 21 21 boolean isActive = true 22 22 boolean isObsolete = false 23 boolean enableReorder = true /// @todo: rename to enableReorderListing.23 boolean enableReorderListing = true 24 24 25 25 static mapping = { … … 45 45 estimatedUnitPriceCurrency(nullable:true) 46 46 reorderPoint() 47 enableReorder ()47 enableReorderListing() 48 48 recommendedReorderPoint(nullable:true) 49 49 isActive() -
trunk/grails-app/i18n/messages.properties
r610 r616 370 370 inventoryItem.search.text.none.found=No results for: {0} 371 371 inventoryItem.search.text.below.reorder=Below Reorder 372 inventoryItem.search.text.below.reorder.description=Inventory items at or below reorder point , with reorder enabled.372 inventoryItem.search.text.below.reorder.description=Inventory items at or below reorder point. 373 373 inventoryItem.search.text.below.reorder.all=Below Reorder (all) 374 inventoryItem.search.text.below.reorder.all.description=Inventory items at or below reorder point, including reorder disabled.374 inventoryItem.search.text.below.reorder.all.description=Inventory items at or below reorder point, including reorder listing disabled. 375 375 inventoryItem.search.text.below.reorder.none.found=No inventory items found at or below reorder point. 376 376 inventoryItem.search.text.all.description=All inventory items. -
trunk/grails-app/services/InventoryCsvService.groovy
r462 r616 56 56 def inventoryProperties = ["name", "description", "comment", "unitsInStock", "reorderPoint", "recommendedReorderPoint", 57 57 "unitOfMeasure", "estimatedUnitPriceAmount", "estimatedUnitPriceCurrency", 58 "enableReorder ", "inventoryLocation", "inventoryStore", "site",58 "enableReorderListing", "inventoryLocation", "inventoryStore", "site", 59 59 "inventoryGroup", "inventoryType", "averageDeliveryTime", "averageDeliveryPeriod", 60 60 "suppliersPartNumber", "preferredSupplier", "alternateSuppliers", … … 578 578 row.add(inventoryItem.estimatedUnitPriceAmount) 579 579 row.add(inventoryItem.estimatedUnitPriceCurrency) 580 row.add(inventoryItem.enableReorder )580 row.add(inventoryItem.enableReorderListing) 581 581 row.add(inventoryItem.inventoryLocation) 582 582 row.add(inventoryItem.inventoryLocation.inventoryStore) -
trunk/grails-app/services/InventoryItemSearchService.groovy
r566 r616 100 100 eq("isActive", true) 101 101 if(onlyReorderEnabled) 102 eq("enableReorder ", true)102 eq("enableReorderListing", true) 103 103 leProperty("unitsInStock", "reorderPoint") 104 104 } // createCriteria -
trunk/grails-app/views/inventoryItemDetailed/create.gsp
r610 r616 84 84 <tr class="prop"> 85 85 <td valign="top" class="name"> 86 <label for="enableReorder ">Enable Reorder Listing:</label>87 </td> 88 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorder ','errors')}">89 <g:checkBox name="enableReorder " value="${inventoryItemInstance?.enableReorder}" ></g:checkBox>86 <label for="enableReorderListing">Enable Reorder Listing:</label> 87 </td> 88 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorderListing','errors')}"> 89 <g:checkBox name="enableReorderListing" value="${inventoryItemInstance?.enableReorderListing}" ></g:checkBox> 90 90 </td> 91 91 </tr> -
trunk/grails-app/views/inventoryItemDetailed/edit.gsp
r610 r616 129 129 <tr class="prop"> 130 130 <td valign="top" class="name"> 131 <label for="enableReorder ">Enable Reorder Listing:</label>132 </td> 133 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorder ','errors')}">134 <g:checkBox name="enableReorder " value="${inventoryItemInstance?.enableReorder}" ></g:checkBox>131 <label for="enableReorderListing">Enable Reorder Listing:</label> 132 </td> 133 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorderListing','errors')}"> 134 <g:checkBox name="enableReorderListing" value="${inventoryItemInstance?.enableReorderListing}" ></g:checkBox> 135 135 </td> 136 136 </tr> -
trunk/grails-app/views/inventoryItemDetailed/show.gsp
r610 r616 28 28 </div> 29 29 </g:if> 30 <g:if test="${!inventoryItemInstance.enableReorder }" >30 <g:if test="${!inventoryItemInstance.enableReorderListing}" > 31 31 <div class="message"> 32 32 <g:message code="inventory.item.reorder.listing.disabled" /> … … 253 253 <tr class="prop"> 254 254 <td valign="top" class="name">Enable Reorder Listing:</td> 255 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'enableReorder ')}</td>255 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'enableReorderListing')}</td> 256 256 </tr> 257 257
Note: See TracChangeset
for help on using the changeset viewer.