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 | <g:if test="${inventoryItemPurchaseInstance?.inventoryItemPurchaseType?.id == 1}"> |
---|
87 | <tr class="prop"> |
---|
88 | <td valign="top" class="name"> |
---|
89 | <label for="receivedComplete">Received Complete:</label> |
---|
90 | </td> |
---|
91 | <td valign="top" class="value"> |
---|
92 | <g:checkBox name="receivedComplete" value="${inventoryItemPurchaseInstance?.receivedComplete}" ></g:checkBox> |
---|
93 | </td> |
---|
94 | </tr> |
---|
95 | |
---|
96 | <tr class="prop"> |
---|
97 | <td valign="top" class="name"> |
---|
98 | <label for="invoicePaymentApproved">Invoice Payment Approved:</label> |
---|
99 | </td> |
---|
100 | <td valign="top" class="value"> |
---|
101 | <g:checkBox name="invoicePaymentApproved" value="${inventoryItemPurchaseInstance?.invoicePaymentApproved}" ></g:checkBox> |
---|
102 | </td> |
---|
103 | </tr> |
---|
104 | </g:if> |
---|
105 | <g:else> |
---|
106 | <tr class="prop"> |
---|
107 | <td valign="top" class="name"> |
---|
108 | <label for="receivedComplete">Received Complete:</label> |
---|
109 | </td> |
---|
110 | <td valign="top" class="value"> |
---|
111 | ${fieldValue(bean:inventoryItemPurchaseInstance, field:'receivedComplete')} |
---|
112 | </td> |
---|
113 | </tr> |
---|
114 | |
---|
115 | <tr class="prop"> |
---|
116 | <td valign="top" class="name"> |
---|
117 | <label for="invoicePaymentApproved">Invoice Payment Approved:</label> |
---|
118 | </td> |
---|
119 | <td valign="top" class="value"> |
---|
120 | ${fieldValue(bean:inventoryItemPurchaseInstance, field:'invoicePaymentApproved')} |
---|
121 | </td> |
---|
122 | </tr> |
---|
123 | </g:else> |
---|
124 | |
---|
125 | <tr class="prop"> |
---|
126 | <td valign="top" class="name">Date Entered:</td> |
---|
127 | |
---|
128 | <td valign="top" class="value"> |
---|
129 | <g:formatDate date="${inventoryItemPurchaseInstance?.dateEntered}" format="EEE, dd-MMM-yyyy @ HH:mm"/> |
---|
130 | </td> |
---|
131 | |
---|
132 | </tr> |
---|
133 | |
---|
134 | <tr class="prop"> |
---|
135 | <td valign="top" class="name">Entered By:</td> |
---|
136 | |
---|
137 | <td valign="top" class="value"><g:link controller="person" action="show" id="${inventoryItemPurchaseInstance?.enteredBy?.id}">${inventoryItemPurchaseInstance?.enteredBy?.encodeAsHTML()}</g:link></td> |
---|
138 | |
---|
139 | </tr> |
---|
140 | |
---|
141 | </tbody> |
---|
142 | </table> |
---|
143 | </div> |
---|
144 | <div class="buttons"> |
---|
145 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
146 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
147 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
148 | </div> |
---|
149 | </g:form> |
---|
150 | </div> |
---|
151 | </body> |
---|
152 | </html> |
---|