[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"> |
---|
[547] | 42 | <td valign="top" class="name"> |
---|
| 43 | <label for="invoiceNumber">Purchase Order Number:</label> |
---|
| 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"> |
---|
| 52 | <label for="costCode">Cost Code:</label> |
---|
| 53 | </td> |
---|
| 54 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'costCode','errors')}"> |
---|
| 55 | <g:select optionKey="id" |
---|
| 56 | from="${ CostCode.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }" |
---|
| 57 | name="costCode.id" |
---|
| 58 | value="${inventoryItemPurchaseInstance?.costCode?.id}" ></g:select> |
---|
| 59 | </td> |
---|
| 60 | </tr> |
---|
| 61 | |
---|
| 62 | <tr class="prop"> |
---|
| 63 | <td valign="top" class="name">Quantity:</td> |
---|
| 64 | |
---|
| 65 | <td valign="top" class="value">${fieldValue(bean:inventoryItemPurchaseInstance, field:'quantity')}</td> |
---|
| 66 | |
---|
| 67 | </tr> |
---|
| 68 | |
---|
| 69 | <tr class="prop"> |
---|
| 70 | <td valign="top" class="name"> |
---|
| 71 | <label for="orderValueAmount">Order Value:</label> |
---|
| 72 | </td> |
---|
| 73 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'orderValueAmount','errors')}"> |
---|
| 74 | <input type="text" id="orderValueAmount" name="orderValueAmount" value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'orderValueAmount')}" /> |
---|
| 75 | <g:currencySelect name="orderValueCurrency" value="${inventoryItemPurchaseInstance?.orderValueCurrency}" ></g:currencySelect> |
---|
| 76 | </td> |
---|
| 77 | </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> |
---|
[518] | 87 | |
---|
| 88 | <g:if test="${inventoryItemPurchaseInstance?.inventoryItemPurchaseType?.id == 1}"> |
---|
| 89 | <tr class="prop"> |
---|
| 90 | <td valign="top" class="name"> |
---|
| 91 | <label for="receivedComplete">Received Complete:</label> |
---|
| 92 | </td> |
---|
| 93 | <td valign="top" class="value"> |
---|
| 94 | <g:checkBox name="receivedComplete" value="${inventoryItemPurchaseInstance?.receivedComplete}" ></g:checkBox> |
---|
| 95 | </td> |
---|
| 96 | </tr> |
---|
| 97 | |
---|
| 98 | <tr class="prop"> |
---|
| 99 | <td valign="top" class="name"> |
---|
| 100 | <label for="invoicePaymentApproved">Invoice Payment Approved:</label> |
---|
| 101 | </td> |
---|
| 102 | <td valign="top" class="value"> |
---|
| 103 | <g:checkBox name="invoicePaymentApproved" value="${inventoryItemPurchaseInstance?.invoicePaymentApproved}" ></g:checkBox> |
---|
| 104 | </td> |
---|
| 105 | </tr> |
---|
| 106 | </g:if> |
---|
| 107 | <g:else> |
---|
| 108 | <tr class="prop"> |
---|
| 109 | <td valign="top" class="name"> |
---|
| 110 | <label for="receivedComplete">Received Complete:</label> |
---|
| 111 | </td> |
---|
| 112 | <td valign="top" class="value"> |
---|
| 113 | ${fieldValue(bean:inventoryItemPurchaseInstance, field:'receivedComplete')} |
---|
| 114 | </td> |
---|
| 115 | </tr> |
---|
| 116 | |
---|
| 117 | <tr class="prop"> |
---|
| 118 | <td valign="top" class="name"> |
---|
| 119 | <label for="invoicePaymentApproved">Invoice Payment Approved:</label> |
---|
| 120 | </td> |
---|
| 121 | <td valign="top" class="value"> |
---|
| 122 | ${fieldValue(bean:inventoryItemPurchaseInstance, field:'invoicePaymentApproved')} |
---|
| 123 | </td> |
---|
| 124 | </tr> |
---|
| 125 | </g:else> |
---|
[441] | 126 | |
---|
| 127 | <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"/> |
---|
| 132 | </td> |
---|
| 133 | |
---|
| 134 | </tr> |
---|
| 135 | |
---|
| 136 | <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 | |
---|
| 141 | </tr> |
---|
| 142 | |
---|
| 143 | </tbody> |
---|
| 144 | </table> |
---|
| 145 | </div> |
---|
| 146 | <div class="buttons"> |
---|
| 147 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 148 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
| 149 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 150 | </div> |
---|
| 151 | </g:form> |
---|
| 152 | </div> |
---|
| 153 | </body> |
---|
| 154 | </html> |
---|