[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"> |
---|
| 35 | <td valign="top" class="name">Inventory Item Purchase Type:</td> |
---|
| 36 | |
---|
| 37 | <td valign="top" class="value">${inventoryItemPurchaseInstance?.inventoryItemPurchaseType?.encodeAsHTML()}</td> |
---|
| 38 | |
---|
| 39 | </tr> |
---|
| 40 | |
---|
| 41 | <tr class="prop"> |
---|
| 42 | <td valign="top" class="name">Purchase Order Number:</td> |
---|
| 43 | |
---|
| 44 | <td valign="top" class="value">${fieldValue(bean:inventoryItemPurchaseInstance, field:'purchaseOrderNumber')}</td> |
---|
| 45 | |
---|
| 46 | </tr> |
---|
| 47 | |
---|
| 48 | <tr class="prop"> |
---|
| 49 | <td valign="top" class="name"> |
---|
| 50 | <label for="costCode">Cost Code:</label> |
---|
| 51 | </td> |
---|
| 52 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'costCode','errors')}"> |
---|
| 53 | <g:select optionKey="id" |
---|
| 54 | from="${ CostCode.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }" |
---|
| 55 | name="costCode.id" |
---|
| 56 | value="${inventoryItemPurchaseInstance?.costCode?.id}" ></g:select> |
---|
| 57 | </td> |
---|
| 58 | </tr> |
---|
| 59 | |
---|
| 60 | <tr class="prop"> |
---|
| 61 | <td valign="top" class="name">Quantity:</td> |
---|
| 62 | |
---|
| 63 | <td valign="top" class="value">${fieldValue(bean:inventoryItemPurchaseInstance, field:'quantity')}</td> |
---|
| 64 | |
---|
| 65 | </tr> |
---|
| 66 | |
---|
| 67 | <tr class="prop"> |
---|
| 68 | <td valign="top" class="name"> |
---|
| 69 | <label for="orderValueAmount">Order Value:</label> |
---|
| 70 | </td> |
---|
| 71 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'orderValueAmount','errors')}"> |
---|
| 72 | <input type="text" id="orderValueAmount" name="orderValueAmount" value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'orderValueAmount')}" /> |
---|
| 73 | <g:currencySelect name="orderValueCurrency" value="${inventoryItemPurchaseInstance?.orderValueCurrency}" ></g:currencySelect> |
---|
| 74 | </td> |
---|
| 75 | </tr> |
---|
| 76 | |
---|
| 77 | <tr class="prop"> |
---|
| 78 | <td valign="top" class="name"> |
---|
| 79 | <label for="invoiceNumber">Invoice Number:</label> |
---|
| 80 | </td> |
---|
| 81 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'invoiceNumber','errors')}"> |
---|
| 82 | <input type="text" maxlength="50" id="invoiceNumber" name="invoiceNumber" value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'invoiceNumber')}"/> |
---|
| 83 | </td> |
---|
| 84 | </tr> |
---|
| 85 | |
---|
| 86 | <tr class="prop"> |
---|
| 87 | <td valign="top" class="name"> |
---|
| 88 | <label for="receivedComplete">Received Complete:</label> |
---|
| 89 | </td> |
---|
| 90 | <td valign="top" class="value"> |
---|
| 91 | ${inventoryItemPurchaseInstance?.receivedComplete} |
---|
| 92 | </td> |
---|
| 93 | </tr> |
---|
| 94 | |
---|
| 95 | <tr class="prop"> |
---|
| 96 | <td valign="top" class="name"> |
---|
| 97 | <label for="invoicePaymentApproved">Invoice Payment Approved:</label> |
---|
| 98 | </td> |
---|
| 99 | <td valign="top" class="value"> |
---|
| 100 | ${inventoryItemPurchaseInstance?.invoicePaymentApproved} |
---|
| 101 | </td> |
---|
| 102 | </tr> |
---|
| 103 | |
---|
| 104 | <tr class="prop"> |
---|
| 105 | <td valign="top" class="name">Date Entered:</td> |
---|
| 106 | |
---|
| 107 | <td valign="top" class="value"> |
---|
| 108 | <g:formatDate date="${inventoryItemPurchaseInstance?.dateEntered}" format="EEE, dd-MMM-yyyy @ HH:mm"/> |
---|
| 109 | </td> |
---|
| 110 | |
---|
| 111 | </tr> |
---|
| 112 | |
---|
| 113 | <tr class="prop"> |
---|
| 114 | <td valign="top" class="name">Entered By:</td> |
---|
| 115 | |
---|
| 116 | <td valign="top" class="value"><g:link controller="person" action="show" id="${inventoryItemPurchaseInstance?.enteredBy?.id}">${inventoryItemPurchaseInstance?.enteredBy?.encodeAsHTML()}</g:link></td> |
---|
| 117 | |
---|
| 118 | </tr> |
---|
| 119 | |
---|
| 120 | </tbody> |
---|
| 121 | </table> |
---|
| 122 | </div> |
---|
| 123 | <div class="buttons"> |
---|
| 124 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 125 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
| 126 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 127 | </div> |
---|
| 128 | </g:form> |
---|
| 129 | </div> |
---|
| 130 | </body> |
---|
| 131 | </html> |
---|