- Timestamp:
- Jun 21, 2010, 12:23:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryItemPurchaseDetailed/edit.gsp
r600 r605 33 33 34 34 <tr class="prop"> 35 <td valign="top" class="name"> Inventory ItemPurchase Type:</td>35 <td valign="top" class="name">Purchase Type:</td> 36 36 37 37 <td valign="top" class="value">${inventoryItemPurchaseInstance?.inventoryItemPurchaseType?.encodeAsHTML()}</td> … … 41 41 <tr class="prop"> 42 42 <td valign="top" class="name"> 43 <label for="invoiceNumber">Purchase Order Number:</label>43 <label for="invoiceNumber">Purchase Order #:</label> 44 44 </td> 45 45 <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'purchaseOrderNumber','errors')}"> … … 47 47 </td> 48 48 </tr> 49 50 <tr class="prop"> 51 <td valign="top" class="name"> 52 <label for="date">Date:</label> 53 </td> 54 <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'date','errors')}"> 55 <richui:dateChooser name="date" format="dd-MM-yyyy" value="${inventoryItemPurchaseInstance.date}" /> 56 </td> 57 </tr> 49 58 50 59 <tr class="prop"> … … 57 66 name="costCode.id" 58 67 value="${inventoryItemPurchaseInstance?.costCode?.id}" ></g:select> 68 </td> 69 </tr> 70 71 <tr class="prop"> 72 <td valign="top" class="name"> 73 <label for="supplier">Supplier:</label> 74 </td> 75 <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'supplier','errors')}"> 76 <g:select optionKey="id" 77 from="${ Supplier.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }" 78 name="supplier.id" 79 value="${inventoryItemPurchaseInstance?.supplier?.id}" 80 noSelection="['null':/${g.message(code:'default.please.select.text')}/]"> 81 </g:select> 82 <p><g:link controller="supplierDetailed" action="create">+Add Supplier</g:link></p> 59 83 </td> 60 84 </tr> … … 73 97 <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'orderValueAmount','errors')}"> 74 98 <input type="text" id="orderValueAmount" name="orderValueAmount" value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'orderValueAmount')}" /> 75 <g:currencySelect name="orderValueCurrency" value="${inventoryItemPurchaseInstance?.orderValueCurrency}" ></g:currencySelect> 99 <g:currencySelect name="orderValueCurrency" 100 value="${inventoryItemPurchaseInstance?.orderValueCurrency}" 101 from="${grailsApplication.config.currencyList}"> 102 </g:currencySelect> 76 103 </td> 77 104 </tr> 78 79 <tr class="prop"> 80 <td valign="top" class="name"> 81 <label for="invoiceNumber">Invoice Number:</label> 82 </td> 83 <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'invoiceNumber','errors')}"> 84 <input type="text" maxlength="50" id="invoiceNumber" name="invoiceNumber" value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'invoiceNumber')}"/> 85 </td> 86 </tr> 105 106 <g:if test="${inventoryItemPurchaseInstance.inventoryItemPurchaseType?.id == 4}"> 107 <tr class="prop"> 108 <td valign="top" class="name"> 109 <label for="invoiceNumber">Invoice Number:</label> 110 </td> 111 <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'invoiceNumber','errors')}"> 112 <input type="text" maxlength="50" id="invoiceNumber" name="invoiceNumber" value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'invoiceNumber')}"/> 113 </td> 114 </tr> 115 </g:if> 87 116 88 117 <g:if test="${inventoryItemPurchaseInstance?.inventoryItemPurchaseType?.id > 0}"> … … 126 155 127 156 <tr class="prop"> 128 <td valign="top" class="name">Date Entered:</td> 129 130 <td valign="top" class="value"> 131 <g:formatDate date="${inventoryItemPurchaseInstance?.dateEntered}" format="EEE, dd-MMM-yyyy @ HH:mm"/> 157 <td valign="top" class="name"> 158 <label for="comment">Comment:</label> 132 159 </td> 133 160 <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'comment','errors')}"> 161 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:inventoryItemPurchaseInstance, field:'comment')}</textarea> 162 </td> 134 163 </tr> 135 164 165 <tr class="prop"> 166 <td valign="top" class="name">Entered By:</td> 167 <td valign="top" class="value"> 168 <g:link controller="person" action="show" id="${inventoryItemPurchaseInstance?.enteredBy?.id}"> 169 ${inventoryItemPurchaseInstance?.enteredBy?.encodeAsHTML()} 170 </g:link> 171 on <g:formatDate date="${inventoryItemPurchaseInstance?.dateCreated}" format="EEE, dd-MMM-yyyy @ HH:mm"/> 172 </td> 173 </tr> 174 175 <g:if test="${inventoryItemPurchaseInstance.lastUpdatedBy}"> 136 176 <tr class="prop"> 137 <td valign="top" class="name">Entered By:</td> 138 139 <td valign="top" class="value"><g:link controller="person" action="show" id="${inventoryItemPurchaseInstance?.enteredBy?.id}">${inventoryItemPurchaseInstance?.enteredBy?.encodeAsHTML()}</g:link></td> 140 177 <td valign="top" class="name">Last Updated By:</td> 178 <td valign="top" class="value"> 179 <g:link controller="person" action="show" id="${inventoryItemPurchaseInstance?.lastUpdatedBy?.id}"> 180 ${inventoryItemPurchaseInstance?.lastUpdatedBy.encodeAsHTML()} 181 </g:link> 182 on <g:formatDate date="${inventoryItemPurchaseInstance?.lastUpdated}" format="EEE, dd-MMM-yyyy @ HH:mm"/> 183 </td> 141 184 </tr> 185 </g:if > 142 186 143 187 </tbody>
Note: See TracChangeset
for help on using the changeset viewer.