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>Receive InventoryItemPurchase</title> |
---|
8 | <nav:resources override="true"/> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div class="nav"> |
---|
12 | <h1>Receive Inventory</h1> |
---|
13 | </div> |
---|
14 | <div class="body"> |
---|
15 | <g:render template="/shared/messages" /> |
---|
16 | <g:hasErrors bean="${inventoryItemPurchaseInstance}"> |
---|
17 | <div class="errors"> |
---|
18 | <g:renderErrors bean="${inventoryItemPurchaseInstance}" as="list" /> |
---|
19 | </div> |
---|
20 | </g:hasErrors> |
---|
21 | <g:form action="receiveSave" method="post" > |
---|
22 | <g:hiddenField name="inventoryItem.id" value="${inventoryItemPurchaseInstance.inventoryItem?.id}" /> |
---|
23 | <g:hiddenField name="orderId" value="${orderId}" /> |
---|
24 | <g:hiddenField name="returnTo" value="${params.returnTo}" /> |
---|
25 | <div class="dialog"> |
---|
26 | <table> |
---|
27 | <tbody> |
---|
28 | |
---|
29 | <tr class="prop"> |
---|
30 | <td valign="top" class="name"> |
---|
31 | <label for="inventoryItem">Inventory Item:</label> |
---|
32 | </td> |
---|
33 | <td valign="top" class="value"> |
---|
34 | <g:link controller="inventoryItemDetailed" |
---|
35 | action="show" |
---|
36 | id="${inventoryItemPurchaseInstance.inventoryItem.id}"> |
---|
37 | ${inventoryItemPurchaseInstance.inventoryItem.encodeAsHTML()} |
---|
38 | </g:link> |
---|
39 | </td> |
---|
40 | </tr> |
---|
41 | |
---|
42 | <tr class="prop"> |
---|
43 | <td valign="top" class="name"> |
---|
44 | <label for="purchaseOrderNumber">Purchase Order #:</label> |
---|
45 | </td> |
---|
46 | <td valign="top" class="value"> |
---|
47 | ${inventoryItemPurchaseInstance.purchaseOrderNumber.encodeAsHTML()} |
---|
48 | </td> |
---|
49 | </tr> |
---|
50 | |
---|
51 | <tr class="prop"> |
---|
52 | <td valign="top" class="name"> |
---|
53 | <label for="costCode">Cost Code:</label> |
---|
54 | </td> |
---|
55 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'costCode','errors')}"> |
---|
56 | ${inventoryItemPurchaseInstance.costCode.encodeAsHTML()} |
---|
57 | </td> |
---|
58 | </tr> |
---|
59 | |
---|
60 | <tr class="prop"> |
---|
61 | <td valign="top" class="name"> |
---|
62 | <label for="quantity">Quantity:</label> |
---|
63 | </td> |
---|
64 | <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'quantity','errors')}"> |
---|
65 | <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'quantity')}" /> |
---|
66 | ${inventoryItemPurchaseInstance.inventoryItem.unitOfMeasure.encodeAsHTML()} |
---|
67 | </td> |
---|
68 | </tr> |
---|
69 | |
---|
70 | <tr class="prop"> |
---|
71 | <td valign="top" class="name"> |
---|
72 | <label for="orderValueAmount">Purchase Order $:</label> |
---|
73 | </td> |
---|
74 | <td valign="top"> |
---|
75 | <input class="medium ${hasErrors(bean:inventoryItemPurchaseInstance,field:'orderValueAmount','errors')}" |
---|
76 | type="text" id="orderValueAmount" name="orderValueAmount" |
---|
77 | value="${fieldValue(bean:inventoryItemPurchaseInstance,field:'orderValueAmount')}" /> |
---|
78 | ${inventoryItemPurchaseInstance.orderValueCurrency?.encodeAsHTML()} |
---|
79 | </td> |
---|
80 | </tr> |
---|
81 | </tr> |
---|
82 | |
---|
83 | </tbody> |
---|
84 | </table> |
---|
85 | </div> |
---|
86 | <div class="buttons"> |
---|
87 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
88 | </div> |
---|
89 | </g:form> |
---|
90 | </div> |
---|
91 | </body> |
---|
92 | </html> |
---|