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