| 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>Approve Payment InventoryItemPurchase</title> |
|---|
| 8 | </head> |
|---|
| 9 | <body> |
|---|
| 10 | <div class="nav"> |
|---|
| 11 | <h1>Approve Payment</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 action="approveInvoicePaymentSave" method="post" > |
|---|
| 21 | <g:hiddenField name="inventoryItem.id" value="${inventoryItemPurchaseInstance.inventoryItem?.id}" /> |
|---|
| 22 | <g:hiddenField name="receivedId" value="${receivedId}" /> |
|---|
| 23 | <g:hiddenField name="supplier.id" value="${inventoryItemPurchaseInstance.supplier?.id}" /> |
|---|
| 24 | <g:hiddenField name="taskBudgetStatus.id" value="${inventoryItemPurchaseInstance.taskBudgetStatus?.id}" /> |
|---|
| 25 | <g:hiddenField name="returnTo" value="${params.returnTo}" /> |
|---|
| 26 | <div class="dialog"> |
|---|
| 27 | <table> |
|---|
| 28 | <tbody> |
|---|
| 29 | |
|---|
| 30 | <tr class="prop"> |
|---|
| 31 | <td valign="top" class="name"> |
|---|
| 32 | <label for="inventoryItem">Inventory Item:</label> |
|---|
| 33 | </td> |
|---|
| 34 | <td valign="top" class="value"> |
|---|
| 35 | <g:link controller="inventoryItemDetailed" |
|---|
| 36 | action="show" |
|---|
| 37 | id="${inventoryItemPurchaseInstance.inventoryItem.id}"> |
|---|
| 38 | ${inventoryItemPurchaseInstance.inventoryItem.encodeAsHTML()} |
|---|
| 39 | </g:link> |
|---|
| 40 | </td> |
|---|
| 41 | </tr> |
|---|
| 42 | |
|---|
| 43 | <tr class="prop"> |
|---|
| 44 | <td valign="top" class="name"> |
|---|
| 45 | <label for="purchaseOrderNumber">Purchase Order #:</label> |
|---|
| 46 | </td> |
|---|
| 47 | <td valign="top" class="value"> |
|---|
| 48 | ${inventoryItemPurchaseInstance.purchaseOrderNumber.encodeAsHTML()} |
|---|
| 49 | </td> |
|---|
| 50 | </tr> |
|---|
| 51 | |
|---|
| 52 | <tr class="prop"> |
|---|
| 53 | <td valign="top" class="name"> |
|---|
| 54 | <label for="costCode">Cost Code:</label> |
|---|
| 55 | </td> |
|---|
| 56 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'costCode','errors')}"> |
|---|
| 57 | ${inventoryItemPurchaseInstance.costCode.encodeAsHTML()} |
|---|
| 58 | </td> |
|---|
| 59 | </tr> |
|---|
| 60 | |
|---|
| 61 | <tr class="prop"> |
|---|
| 62 | <td valign="top" class="name"> |
|---|
| 63 | <label for="taskBudgetStatus">Budget Status:</label> |
|---|
| 64 | </td> |
|---|
| 65 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'taskBudgetStatus','errors')}"> |
|---|
| 66 | ${inventoryItemPurchaseInstance.taskBudgetStatus.encodeAsHTML()} |
|---|
| 67 | </td> |
|---|
| 68 | </tr> |
|---|
| 69 | |
|---|
| 70 | <tr class="prop"> |
|---|
| 71 | <td valign="top" class="name"> |
|---|
| 72 | <label for="quantity">Invoice #:</label> |
|---|
| 73 | </td> |
|---|
| 74 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'invoiceNumber','errors')}"> |
|---|
| 75 | <input type="text" id="invoiceNumber" name="invoiceNumber" value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'invoiceNumber')}" /> |
|---|
| 76 | <g:helpBalloon code="inventoryItemPurchase.invoice.number" /> |
|---|
| 77 | </td> |
|---|
| 78 | </tr> |
|---|
| 79 | |
|---|
| 80 | <tr class="prop"> |
|---|
| 81 | <td valign="top" class="name"> |
|---|
| 82 | <label for="quantity">Quantity:</label> |
|---|
| 83 | </td> |
|---|
| 84 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'quantity','errors')}"> |
|---|
| 85 | <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'quantity')}" /> |
|---|
| 86 | ${inventoryItemPurchaseInstance.inventoryItem.unitOfMeasure.encodeAsHTML()} |
|---|
| 87 | <g:helpBalloon code="inventoryItemPurchase.approve.quantity" /> |
|---|
| 88 | </td> |
|---|
| 89 | </tr> |
|---|
| 90 | |
|---|
| 91 | <tr class="prop"> |
|---|
| 92 | <td valign="top" class="name"> |
|---|
| 93 | <label for="orderValue">Approve Value:</label> |
|---|
| 94 | </td> |
|---|
| 95 | <td valign="top"> |
|---|
| 96 | <input class="medium ${hasErrors(bean:inventoryItemPurchaseInstance,field:'orderValueAmount','errors')}" |
|---|
| 97 | type="text" id="orderValueAmount" name="orderValueAmount" |
|---|
| 98 | value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'orderValueAmount')}" /> |
|---|
| 99 | ${inventoryItemPurchaseInstance.orderValueCurrency?.encodeAsHTML()} |
|---|
| 100 | <g:helpBalloon code="inventoryItemPurchase.approve.value" /> |
|---|
| 101 | </td> |
|---|
| 102 | </tr> |
|---|
| 103 | |
|---|
| 104 | <tr class="prop"> |
|---|
| 105 | <td valign="top" class="name"> |
|---|
| 106 | <label for="comment">Comment:</label> |
|---|
| 107 | </td> |
|---|
| 108 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'comment','errors')}"> |
|---|
| 109 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:inventoryItemPurchaseInstance, field:'comment')}</textarea> |
|---|
| 110 | </td> |
|---|
| 111 | </tr> |
|---|
| 112 | |
|---|
| 113 | </tbody> |
|---|
| 114 | </table> |
|---|
| 115 | </div> |
|---|
| 116 | <div class="buttons"> |
|---|
| 117 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
|---|
| 118 | </div> |
|---|
| 119 | </g:form> |
|---|
| 120 | </div> |
|---|
| 121 | </body> |
|---|
| 122 | </html> |
|---|