[116] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
| 7 | <title>Edit InventoryItem</title> |
---|
[139] | 8 | <nav:resources override="true"/> |
---|
[182] | 9 | <g:render template="/shared/pictureHead" /> |
---|
[116] | 10 | </head> |
---|
| 11 | <body> |
---|
| 12 | <div class="nav"> |
---|
[139] | 13 | <nav:renderSubItems group="nav"/> |
---|
[116] | 14 | </div> |
---|
| 15 | <div class="body"> |
---|
[405] | 16 | <g:render template="/shared/messages" /> |
---|
[116] | 17 | <g:hasErrors bean="${inventoryItemInstance}"> |
---|
| 18 | <div class="errors"> |
---|
| 19 | <g:renderErrors bean="${inventoryItemInstance}" as="list" /> |
---|
| 20 | </div> |
---|
| 21 | </g:hasErrors> |
---|
| 22 | <g:form method="post" > |
---|
| 23 | <input type="hidden" name="id" value="${inventoryItemInstance?.id}" /> |
---|
| 24 | <input type="hidden" name="version" value="${inventoryItemInstance?.version}" /> |
---|
| 25 | <div class="dialog"> |
---|
| 26 | <table> |
---|
| 27 | <tbody> |
---|
[223] | 28 | |
---|
[182] | 29 | <tr class="prop"> |
---|
| 30 | <td valign="top" class="name">Picture:</td> |
---|
| 31 | <td valign="top" class="value"> |
---|
| 32 | <g:if test="${inventoryItemInstance.picture}" > |
---|
| 33 | <span class='gallery'> |
---|
| 34 | <wa:pictureLightboxAnchor picture="${inventoryItemInstance.picture}" size="${Image.Medium}" lightboxSize="${Image.Large}" target="_blank" title="Show Original" /> |
---|
| 35 | </span> |
---|
| 36 | <br /> |
---|
| 37 | <g:link controller="pictureDetailed" action="edit" id="${inventoryItemInstance.picture.id}" > |
---|
| 38 | Edit Picture |
---|
| 39 | </g:link> |
---|
| 40 | </g:if> |
---|
| 41 | </td> |
---|
| 42 | </tr> |
---|
[223] | 43 | |
---|
[116] | 44 | <tr class="prop"> |
---|
| 45 | <td valign="top" class="name"> |
---|
| 46 | <label for="name">Name:</label> |
---|
| 47 | </td> |
---|
[223] | 48 | <td valign="top"> |
---|
| 49 | <input class="description ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}" |
---|
| 50 | type="text" maxlength="50" id="name" name="name" |
---|
| 51 | value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> |
---|
[716] | 52 | <g:helpBalloon class="helpballoon" code="inventory.item.name" /> |
---|
[116] | 53 | </td> |
---|
[223] | 54 | </tr> |
---|
| 55 | |
---|
[116] | 56 | <tr class="prop"> |
---|
| 57 | <td valign="top" class="name"> |
---|
| 58 | <label for="description">Description:</label> |
---|
| 59 | </td> |
---|
[422] | 60 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> |
---|
| 61 | <textarea rows="5" cols="40" name="description">${fieldValue(bean:inventoryItemInstance, field:'description')}</textarea> |
---|
[716] | 62 | <g:helpBalloon class="helpballoon" code="inventory.item.description" /> |
---|
[116] | 63 | </td> |
---|
[223] | 64 | </tr> |
---|
| 65 | |
---|
[116] | 66 | <tr class="prop"> |
---|
| 67 | <td valign="top" class="name"> |
---|
[422] | 68 | <label for="comment">Comment:</label> |
---|
| 69 | </td> |
---|
| 70 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'comment','errors')}"> |
---|
| 71 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:inventoryItemInstance, field:'comment')}</textarea> |
---|
[716] | 72 | <g:helpBalloon class="helpballoon" code="inventory.item.comment" /> |
---|
[422] | 73 | </td> |
---|
| 74 | </tr> |
---|
| 75 | |
---|
| 76 | <tr class="prop"> |
---|
| 77 | <td valign="top" class="name"> |
---|
[223] | 78 | <label for="unitsInStock">In Stock:</label> |
---|
[175] | 79 | </td> |
---|
[182] | 80 | <td valign="top" class="value"> |
---|
[223] | 81 | ${inventoryItemInstance.unitsInStock} ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()} |
---|
[716] | 82 | <g:helpBalloon class="helpballoon" code="inventory.item.units.in.stock" /> |
---|
[175] | 83 | </td> |
---|
| 84 | </tr> |
---|
[223] | 85 | |
---|
[175] | 86 | <tr class="prop"> |
---|
| 87 | <td valign="top" class="name"> |
---|
[223] | 88 | <label for="inventoryLocation">Location:</label> |
---|
[116] | 89 | </td> |
---|
[223] | 90 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> |
---|
[382] | 91 | <g:select optionKey="id" |
---|
| 92 | from="${ InventoryLocation.list().sort { p1, p2 -> p1.toString().compareToIgnoreCase(p2.toString()) } }" |
---|
| 93 | name="inventoryLocation.id" |
---|
[392] | 94 | value="${inventoryItemInstance?.inventoryLocation?.id}" |
---|
| 95 | optionValue="${{it.name+ ' in ' + it.inventoryStore}}"> |
---|
[382] | 96 | </g:select> |
---|
[716] | 97 | <g:helpBalloon class="helpballoon" code="inventory.item.inventory.location" /> |
---|
[116] | 98 | </td> |
---|
[175] | 99 | </tr> |
---|
[223] | 100 | |
---|
[175] | 101 | <tr class="prop"> |
---|
| 102 | <td valign="top" class="name"> |
---|
| 103 | <label for="isActive">Active:</label> |
---|
[116] | 104 | </td> |
---|
| 105 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}"> |
---|
| 106 | <g:checkBox name="isActive" value="${inventoryItemInstance?.isActive}" ></g:checkBox> |
---|
[716] | 107 | <g:helpBalloon class="helpballoon" code="inventory.item.is.active" /> |
---|
[116] | 108 | </td> |
---|
[223] | 109 | </tr> |
---|
| 110 | |
---|
[116] | 111 | <tr class="prop"> |
---|
| 112 | <td valign="top" class="name"> |
---|
[223] | 113 | <label for="reorderPoint">Reorder Point:</label> |
---|
[116] | 114 | </td> |
---|
[223] | 115 | <td valign="top"> |
---|
| 116 | <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'reorderPoint','errors')}" |
---|
| 117 | type="text" id="reorderPoint" name="reorderPoint" |
---|
| 118 | value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" /> |
---|
[716] | 119 | ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()} |
---|
| 120 | <g:helpBalloon class="helpballoon" code="inventory.item.reorder.point" /> |
---|
[116] | 121 | </td> |
---|
[223] | 122 | </tr> |
---|
| 123 | |
---|
[116] | 124 | <tr class="prop"> |
---|
| 125 | <td valign="top" class="name"> |
---|
[715] | 126 | <label for="reorderQuantity">Reorder Quantity:</label> |
---|
[116] | 127 | </td> |
---|
[223] | 128 | <td valign="top"> |
---|
[715] | 129 | <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'reorderQuantity','errors')}" |
---|
| 130 | type="text" id="reorderQuantity" name="reorderQuantity" |
---|
| 131 | value="${fieldValue(bean:inventoryItemInstance,field:'reorderQuantity')}" /> |
---|
[223] | 132 | ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()} |
---|
[716] | 133 | <g:helpBalloon class="helpballoon" code="inventory.item.reorder.quantity" /> |
---|
[116] | 134 | </td> |
---|
[223] | 135 | </tr> |
---|
| 136 | |
---|
[116] | 137 | <tr class="prop"> |
---|
| 138 | <td valign="top" class="name"> |
---|
[616] | 139 | <label for="enableReorderListing">Enable Reorder Listing:</label> |
---|
[116] | 140 | </td> |
---|
[616] | 141 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorderListing','errors')}"> |
---|
| 142 | <g:checkBox name="enableReorderListing" value="${inventoryItemInstance?.enableReorderListing}" ></g:checkBox> |
---|
[716] | 143 | <g:helpBalloon class="helpballoon" code="inventory.item.enable.reorder.listing" /> |
---|
[116] | 144 | </td> |
---|
[175] | 145 | </tr> |
---|
[223] | 146 | |
---|
[116] | 147 | <tr class="prop"> |
---|
| 148 | <td valign="top" class="name"> |
---|
[223] | 149 | <label for="isObsolete">Obsolete:</label> |
---|
[116] | 150 | </td> |
---|
[223] | 151 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isObsolete','errors')}"> |
---|
| 152 | <g:checkBox name="isObsolete" value="${inventoryItemInstance?.isObsolete}" ></g:checkBox> |
---|
[716] | 153 | <g:helpBalloon class="helpballoon" code="inventory.item.is.obsolete" /> |
---|
[116] | 154 | </td> |
---|
[175] | 155 | </tr> |
---|
[223] | 156 | |
---|
[116] | 157 | <tr class="prop"> |
---|
| 158 | <td valign="top" class="name"> |
---|
[175] | 159 | <label for="averageDeliveryTime">Average Delivery Time:</label> |
---|
[116] | 160 | </td> |
---|
[175] | 161 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> |
---|
| 162 | <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> |
---|
[382] | 163 | <g:select optionKey="id" |
---|
| 164 | from="${Period.list()}" |
---|
| 165 | name="averageDeliveryPeriod.id" |
---|
| 166 | value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" |
---|
| 167 | noSelection="['null':'--None--']"> |
---|
| 168 | </g:select> |
---|
[716] | 169 | <g:helpBalloon class="helpballoon" code="inventory.item.average.delivery.time" /> |
---|
[116] | 170 | </td> |
---|
[175] | 171 | </tr> |
---|
[405] | 172 | |
---|
| 173 | <tr class="prop"> |
---|
| 174 | <td valign="top" class="name"> |
---|
| 175 | <label for="averageDeliveryTime">Estimated Unit Price:</label> |
---|
| 176 | </td> |
---|
[441] | 177 | <td valign="top" class="value"> |
---|
[405] | 178 | <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'estimatedUnitPriceAmount','errors')}" |
---|
| 179 | type="text" id="estimatedUnitPriceAmount" name="estimatedUnitPriceAmount" |
---|
| 180 | value="${inventoryItemInstance.estimatedUnitPriceAmount}" /> |
---|
| 181 | <g:currencySelect name="estimatedUnitPriceCurrency" |
---|
[604] | 182 | value="${inventoryItemInstance?.estimatedUnitPriceCurrency}" |
---|
| 183 | from="${grailsApplication.config.currencyList}"> |
---|
| 184 | </g:currencySelect> |
---|
[716] | 185 | <g:helpBalloon class="helpballoon" code="inventory.item.estimated.unit.price.amount" /> |
---|
[405] | 186 | </td> |
---|
| 187 | </tr> |
---|
[223] | 188 | |
---|
[116] | 189 | <tr class="prop"> |
---|
| 190 | <td valign="top" class="name"> |
---|
[223] | 191 | <label for="suppliersPartNumber">Suppliers Part Number:</label> |
---|
[116] | 192 | </td> |
---|
[223] | 193 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliersPartNumber','errors')}"> |
---|
| 194 | <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> |
---|
[716] | 195 | <g:helpBalloon class="helpballoon" code="inventory.item.suppliers.part.number" /> |
---|
[116] | 196 | </td> |
---|
[175] | 197 | </tr> |
---|
[223] | 198 | |
---|
[116] | 199 | <tr class="prop"> |
---|
| 200 | <td valign="top" class="name"> |
---|
[435] | 201 | <label for="preferredSupplier">Preferred Supplier:</label> |
---|
[116] | 202 | </td> |
---|
[435] | 203 | <td valign="top"> |
---|
| 204 | <g:select optionKey="id" from="${suppliers}" name="preferredSupplier.id" value="${inventoryItemInstance.preferredSupplier?.id}" noSelection="['null':'--None--']"></g:select> |
---|
[716] | 205 | <g:helpBalloon class="helpballoon" code="inventory.item.preferred.supplier" /> |
---|
[435] | 206 | <p><g:link controller="supplierDetailed" action="create">+Add Supplier</g:link></p> |
---|
[116] | 207 | </td> |
---|
[223] | 208 | </tr> |
---|
| 209 | |
---|
[116] | 210 | <tr class="prop"> |
---|
| 211 | <td valign="top" class="name"> |
---|
[435] | 212 | <label for="alternateSuppliers">Alternate Suppliers:</label> |
---|
| 213 | </td> |
---|
| 214 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'alternateSuppliers','errors')}"> |
---|
| 215 | <g:select id="alternateSuppliers" name="alternateSuppliers" |
---|
| 216 | from="${suppliers}" |
---|
| 217 | size="5" multiple="yes" optionKey="id" |
---|
| 218 | value="${inventoryItemInstance.alternateSuppliers?.id}" noSelection="['':'--None--']"/> |
---|
[716] | 219 | <g:helpBalloon class="helpballoon" code="inventory.item.alternate.suppliers" /> |
---|
[435] | 220 | </td> |
---|
| 221 | </tr> |
---|
| 222 | |
---|
| 223 | <tr class="prop"> |
---|
| 224 | <td valign="top" class="name"> |
---|
[223] | 225 | <label for="manufacturersPartNumber">Manufacturers Part Number:</label> |
---|
[116] | 226 | </td> |
---|
[223] | 227 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturersPartNumber','errors')}"> |
---|
| 228 | <input type="text" id="manufacturersPartNumber" name="manufacturersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'manufacturersPartNumber')}"/> |
---|
| 229 | </td> |
---|
| 230 | </tr> |
---|
[116] | 231 | |
---|
| 232 | <tr class="prop"> |
---|
| 233 | <td valign="top" class="name"> |
---|
[435] | 234 | <label for="preferredManufacturer">Preferred Manufacturer:</label> |
---|
[116] | 235 | </td> |
---|
[435] | 236 | <td valign="top"> |
---|
| 237 | <g:select optionKey="id" from="${manufacturers}" name="preferredManufacturer.id" value="${inventoryItemInstance.preferredManufacturer?.id}" noSelection="['null':'--None--']"></g:select> |
---|
[382] | 238 | |
---|
[410] | 239 | <p><g:link controller="manufacturerDetailed" action="create">+Add Manufacturer</g:link></p> |
---|
[223] | 240 | </td> |
---|
| 241 | </tr> |
---|
[116] | 242 | |
---|
| 243 | <tr class="prop"> |
---|
| 244 | <td valign="top" class="name"> |
---|
[435] | 245 | <label for="manufacturers">Alternate Manufacturers:</label> |
---|
| 246 | </td> |
---|
| 247 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'alternateManufacturers','errors')}"> |
---|
| 248 | <g:select id="alternateManufacturers" name="alternateManufacturers" |
---|
| 249 | from="${manufacturers}" |
---|
| 250 | size="5" multiple="yes" optionKey="id" |
---|
| 251 | value="${inventoryItemInstance.alternateManufacturers?.id}" noSelection="['':'--None--']" /> |
---|
| 252 | </td> |
---|
| 253 | </tr> |
---|
| 254 | |
---|
| 255 | <tr class="prop"> |
---|
| 256 | <td valign="top" class="name"> |
---|
[116] | 257 | <label for="spareFor">Spare For:</label> |
---|
| 258 | </td> |
---|
| 259 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'spareFor','errors')}"> |
---|
| 260 | <g:select name="spareFor" |
---|
[382] | 261 | from="${ Asset.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }" |
---|
[223] | 262 | size="5" multiple="yes" optionKey="id" |
---|
[382] | 263 | value="${inventoryItemInstance?.spareFor.id}" noSelection="['':'--None--']"/> |
---|
[116] | 264 | |
---|
| 265 | </td> |
---|
[175] | 266 | </tr> |
---|
[223] | 267 | |
---|
[116] | 268 | <tr class="prop"> |
---|
| 269 | <td valign="top" class="name"> |
---|
[223] | 270 | <label for="alternateItems">Alternate Items:</label> |
---|
[116] | 271 | </td> |
---|
[223] | 272 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'alternateItems','errors')}"> |
---|
| 273 | <g:select name="alternateItems" |
---|
[425] | 274 | from="${possibleAlternateItems}" |
---|
[223] | 275 | size="5" multiple="yes" optionKey="id" |
---|
[382] | 276 | value="${inventoryItemInstance?.alternateItems.id}" noSelection="['':'--None--']"/> |
---|
[223] | 277 | |
---|
[116] | 278 | </td> |
---|
[175] | 279 | </tr> |
---|
[223] | 280 | |
---|
[116] | 281 | <tr class="prop"> |
---|
| 282 | <td valign="top" class="name"> |
---|
[223] | 283 | <label for="inventoryGroup">Inventory Group:</label> |
---|
[116] | 284 | </td> |
---|
[223] | 285 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryGroup','errors')}"> |
---|
| 286 | <g:select optionKey="id" from="${InventoryGroup.list()}" name="inventoryGroup.id" value="${inventoryItemInstance?.inventoryGroup?.id}" ></g:select> |
---|
[716] | 287 | <g:helpBalloon class="helpballoon" code="inventory.item.inventory.group" /> |
---|
[223] | 288 | </td> |
---|
| 289 | </tr> |
---|
[116] | 290 | |
---|
[223] | 291 | <tr class="prop"> |
---|
| 292 | <td valign="top" class="name"> |
---|
| 293 | <label for="inventoryType">Inventory Type:</label> |
---|
[116] | 294 | </td> |
---|
[223] | 295 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryType','errors')}"> |
---|
| 296 | <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> |
---|
[716] | 297 | <g:helpBalloon class="helpballoon" code="inventory.item.inventory.type" /> |
---|
[223] | 298 | </td> |
---|
[175] | 299 | </tr> |
---|
[223] | 300 | |
---|
[116] | 301 | </tbody> |
---|
| 302 | </table> |
---|
| 303 | </div> |
---|
| 304 | <div class="buttons"> |
---|
| 305 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
[223] | 306 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
[116] | 307 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 308 | </div> |
---|
| 309 | </g:form> |
---|
| 310 | </div> |
---|
| 311 | </body> |
---|
| 312 | </html> |
---|