[441] | 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 InventoryItemPurchase</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <h1>Edit InventoryItemPurchase</h1> |
---|
| 12 | </div> |
---|
| 13 | <div class="body"> |
---|
| 14 | <g:render template="/shared/messages" /> |
---|
| 15 | <g:hasErrors bean="${inventoryItemPurchaseInstance}"> |
---|
| 16 | <div class="errors"> |
---|
| 17 | <g:renderErrors bean="${inventoryItemPurchaseInstance}" as="list" /> |
---|
| 18 | </div> |
---|
| 19 | </g:hasErrors> |
---|
| 20 | <g:form method="post" > |
---|
| 21 | <input type="hidden" name="id" value="${inventoryItemPurchaseInstance?.id}" /> |
---|
| 22 | <input type="hidden" name="version" value="${inventoryItemPurchaseInstance?.version}" /> |
---|
| 23 | <div class="dialog"> |
---|
| 24 | <table> |
---|
| 25 | <tbody> |
---|
| 26 | |
---|
| 27 | <tr class="prop"> |
---|
| 28 | <td valign="top" class="name">Inventory Item:</td> |
---|
| 29 | |
---|
| 30 | <td valign="top" class="value"><g:link controller="inventoryItemDetailed" action="show" id="${inventoryItemPurchaseInstance?.inventoryItem?.id}">${inventoryItemPurchaseInstance?.inventoryItem?.encodeAsHTML()}</g:link></td> |
---|
| 31 | |
---|
| 32 | </tr> |
---|
| 33 | |
---|
| 34 | <tr class="prop"> |
---|
[605] | 35 | <td valign="top" class="name">Purchase Type:</td> |
---|
[441] | 36 | |
---|
| 37 | <td valign="top" class="value">${inventoryItemPurchaseInstance?.inventoryItemPurchaseType?.encodeAsHTML()}</td> |
---|
| 38 | |
---|
| 39 | </tr> |
---|
| 40 | |
---|
| 41 | <tr class="prop"> |
---|
[547] | 42 | <td valign="top" class="name"> |
---|
[605] | 43 | <label for="invoiceNumber">Purchase Order #:</label> |
---|
[547] | 44 | </td> |
---|
| 45 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'purchaseOrderNumber','errors')}"> |
---|
| 46 | <input type="text" maxlength="50" id="purchaseOrderNumber" name="purchaseOrderNumber" value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'purchaseOrderNumber')}"/> |
---|
| 47 | </td> |
---|
[441] | 48 | </tr> |
---|
| 49 | |
---|
| 50 | <tr class="prop"> |
---|
| 51 | <td valign="top" class="name"> |
---|
[605] | 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> |
---|
| 58 | |
---|
| 59 | <tr class="prop"> |
---|
| 60 | <td valign="top" class="name"> |
---|
[441] | 61 | <label for="costCode">Cost Code:</label> |
---|
| 62 | </td> |
---|
| 63 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'costCode','errors')}"> |
---|
| 64 | <g:select optionKey="id" |
---|
| 65 | from="${ CostCode.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }" |
---|
| 66 | name="costCode.id" |
---|
| 67 | value="${inventoryItemPurchaseInstance?.costCode?.id}" ></g:select> |
---|
| 68 | </td> |
---|
| 69 | </tr> |
---|
[605] | 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> |
---|
| 83 | </td> |
---|
| 84 | </tr> |
---|
[441] | 85 | |
---|
| 86 | <tr class="prop"> |
---|
| 87 | <td valign="top" class="name">Quantity:</td> |
---|
| 88 | |
---|
| 89 | <td valign="top" class="value">${fieldValue(bean:inventoryItemPurchaseInstance, field:'quantity')}</td> |
---|
| 90 | |
---|
| 91 | </tr> |
---|
| 92 | |
---|
| 93 | <tr class="prop"> |
---|
| 94 | <td valign="top" class="name"> |
---|
| 95 | <label for="orderValueAmount">Order Value:</label> |
---|
| 96 | </td> |
---|
| 97 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'orderValueAmount','errors')}"> |
---|
| 98 | <input type="text" id="orderValueAmount" name="orderValueAmount" value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'orderValueAmount')}" /> |
---|
[605] | 99 | <g:currencySelect name="orderValueCurrency" |
---|
| 100 | value="${inventoryItemPurchaseInstance?.orderValueCurrency}" |
---|
| 101 | from="${grailsApplication.config.currencyList}"> |
---|
| 102 | </g:currencySelect> |
---|
[441] | 103 | </td> |
---|
| 104 | </tr> |
---|
[518] | 105 | |
---|
[605] | 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> |
---|
| 116 | |
---|
[600] | 117 | <g:if test="${inventoryItemPurchaseInstance?.inventoryItemPurchaseType?.id > 0}"> |
---|
[518] | 118 | <tr class="prop"> |
---|
| 119 | <td valign="top" class="name"> |
---|
| 120 | <label for="receivedComplete">Received Complete:</label> |
---|
| 121 | </td> |
---|
| 122 | <td valign="top" class="value"> |
---|
| 123 | <g:checkBox name="receivedComplete" value="${inventoryItemPurchaseInstance?.receivedComplete}" ></g:checkBox> |
---|
| 124 | </td> |
---|
| 125 | </tr> |
---|
| 126 | |
---|
| 127 | <tr class="prop"> |
---|
| 128 | <td valign="top" class="name"> |
---|
| 129 | <label for="invoicePaymentApproved">Invoice Payment Approved:</label> |
---|
| 130 | </td> |
---|
| 131 | <td valign="top" class="value"> |
---|
| 132 | <g:checkBox name="invoicePaymentApproved" value="${inventoryItemPurchaseInstance?.invoicePaymentApproved}" ></g:checkBox> |
---|
| 133 | </td> |
---|
| 134 | </tr> |
---|
| 135 | </g:if> |
---|
| 136 | <g:else> |
---|
| 137 | <tr class="prop"> |
---|
| 138 | <td valign="top" class="name"> |
---|
| 139 | <label for="receivedComplete">Received Complete:</label> |
---|
| 140 | </td> |
---|
| 141 | <td valign="top" class="value"> |
---|
| 142 | ${fieldValue(bean:inventoryItemPurchaseInstance, field:'receivedComplete')} |
---|
| 143 | </td> |
---|
| 144 | </tr> |
---|
| 145 | |
---|
| 146 | <tr class="prop"> |
---|
| 147 | <td valign="top" class="name"> |
---|
| 148 | <label for="invoicePaymentApproved">Invoice Payment Approved:</label> |
---|
| 149 | </td> |
---|
| 150 | <td valign="top" class="value"> |
---|
| 151 | ${fieldValue(bean:inventoryItemPurchaseInstance, field:'invoicePaymentApproved')} |
---|
| 152 | </td> |
---|
| 153 | </tr> |
---|
| 154 | </g:else> |
---|
[441] | 155 | |
---|
| 156 | <tr class="prop"> |
---|
[605] | 157 | <td valign="top" class="name"> |
---|
| 158 | <label for="comment">Comment:</label> |
---|
[441] | 159 | </td> |
---|
[605] | 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> |
---|
[441] | 163 | </tr> |
---|
| 164 | |
---|
[605] | 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}"> |
---|
[441] | 176 | <tr class="prop"> |
---|
[605] | 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> |
---|
[441] | 184 | </tr> |
---|
[605] | 185 | </g:if > |
---|
[441] | 186 | |
---|
| 187 | </tbody> |
---|
| 188 | </table> |
---|
| 189 | </div> |
---|
| 190 | <div class="buttons"> |
---|
| 191 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 192 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
| 193 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 194 | </div> |
---|
| 195 | </g:form> |
---|
| 196 | </div> |
---|
| 197 | </body> |
---|
| 198 | </html> |
---|