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>Show InventoryItem</title> |
---|
8 | <nav:resources override="true"/> |
---|
9 | <g:render template="/shared/pictureHead" /> |
---|
10 | </head> |
---|
11 | <body> |
---|
12 | <div class="nav"> |
---|
13 | <nav:renderSubItems group="nav"/> |
---|
14 | </div> |
---|
15 | <div class="body"> |
---|
16 | <g:if test="${flash.message}"> |
---|
17 | <div class="message">${flash.message}</div> |
---|
18 | </g:if> |
---|
19 | <div class="dialog"> |
---|
20 | <table> |
---|
21 | <tbody> |
---|
22 | |
---|
23 | <tr class="prop"> |
---|
24 | <td valign="top" class="name">Picture:</td> |
---|
25 | <td valign="top" class="value"> |
---|
26 | <g:if test="${inventoryItemInstance.picture}" > |
---|
27 | <span class='gallery'><wa:pictureLightboxAnchor picture="${inventoryItemInstance.picture}" size="${Image.Medium}" lightboxSize="${Image.Large}" target="_blank" title="Show Original" /></span> |
---|
28 | </g:if> |
---|
29 | <g:else> |
---|
30 | <g:link controller="pictureDetailed" |
---|
31 | params="['inventoryItem.id':inventoryItemInstance?.id]" |
---|
32 | action="create"> |
---|
33 | Add Picture |
---|
34 | </g:link> |
---|
35 | </g:else> |
---|
36 | </td> |
---|
37 | </tr> |
---|
38 | |
---|
39 | <tr class="prop"> |
---|
40 | <td valign="top" class="name">Id:</td> |
---|
41 | |
---|
42 | <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'id')}</td> |
---|
43 | |
---|
44 | </tr> |
---|
45 | |
---|
46 | <tr class="prop"> |
---|
47 | <td valign="top" class="name">Name:</td> |
---|
48 | |
---|
49 | <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'name')}</td> |
---|
50 | |
---|
51 | </tr> |
---|
52 | |
---|
53 | <tr class="prop"> |
---|
54 | <td valign="top" class="name">Description:</td> |
---|
55 | |
---|
56 | <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'description')}</td> |
---|
57 | |
---|
58 | </tr> |
---|
59 | |
---|
60 | <tr class="prop"> |
---|
61 | <td valign="top" class="name">Location:</td> |
---|
62 | |
---|
63 | <td valign="top" class="value"> |
---|
64 | <g:link controller="inventoryLocationDetailed" action="show" id="${inventoryItemInstance?.inventoryLocation?.id}"> |
---|
65 | ${inventoryItemInstance?.inventoryLocation?.encodeAsHTML()} |
---|
66 | </g:link> |
---|
67 | in ${inventoryItemInstance?.inventoryLocation?.inventoryStore.encodeAsHTML()} |
---|
68 | </td> |
---|
69 | |
---|
70 | </tr> |
---|
71 | |
---|
72 | <tr class="prop"> |
---|
73 | <td valign="top" class="name">In Stock:</td> |
---|
74 | |
---|
75 | <td valign="top" class="value"> |
---|
76 | ${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')} ${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()} |
---|
77 | </td> |
---|
78 | |
---|
79 | </tr> |
---|
80 | |
---|
81 | <tr class="prop"> |
---|
82 | <td valign="top" class="name">Reorder Point:</td> |
---|
83 | |
---|
84 | <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'reorderPoint')}</td> |
---|
85 | |
---|
86 | </tr> |
---|
87 | |
---|
88 | <tr class="prop"> |
---|
89 | <td valign="top" class="name">Enable Reorder:</td> |
---|
90 | |
---|
91 | <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'enableReorder')}</td> |
---|
92 | |
---|
93 | </tr> |
---|
94 | |
---|
95 | <tr class="prop"> |
---|
96 | <td valign="top" class="name">Recommended Reorder Point:</td> |
---|
97 | |
---|
98 | <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'recommendedReorderPoint')}</td> |
---|
99 | |
---|
100 | </tr> |
---|
101 | |
---|
102 | <tr class="prop"> |
---|
103 | <td valign="top" class="name">Active:</td> |
---|
104 | |
---|
105 | <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'isActive')}</td> |
---|
106 | |
---|
107 | </tr> |
---|
108 | |
---|
109 | <tr class="prop"> |
---|
110 | <td valign="top" class="name">Obsolete:</td> |
---|
111 | |
---|
112 | <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'isObsolete')}</td> |
---|
113 | |
---|
114 | </tr> |
---|
115 | |
---|
116 | <tr class="prop"> |
---|
117 | <td valign="top" class="name">Inventory Group:</td> |
---|
118 | |
---|
119 | <td valign="top" class="value">${inventoryItemInstance?.inventoryGroup?.encodeAsHTML()}</td> |
---|
120 | |
---|
121 | </tr> |
---|
122 | |
---|
123 | |
---|
124 | <tr class="prop"> |
---|
125 | <td valign="top" class="name">Inventory Type:</td> |
---|
126 | |
---|
127 | <td valign="top" class="value">${inventoryItemInstance?.inventoryType?.encodeAsHTML()}</td> |
---|
128 | |
---|
129 | </tr> |
---|
130 | |
---|
131 | <tr class="prop"> |
---|
132 | <td valign="top" class="name">Manufacturers Part Number:</td> |
---|
133 | |
---|
134 | <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'manufacturersPartNumber')}</td> |
---|
135 | |
---|
136 | </tr> |
---|
137 | |
---|
138 | <tr class="prop"> |
---|
139 | <td valign="top" class="name">Suppliers Part Number:</td> |
---|
140 | |
---|
141 | <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'suppliersPartNumber')}</td> |
---|
142 | |
---|
143 | </tr> |
---|
144 | |
---|
145 | <tr class="prop"> |
---|
146 | <td valign="top" class="name">Recommended Reorder Point:</td> |
---|
147 | |
---|
148 | <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'recommendedReorderPoint')}</td> |
---|
149 | |
---|
150 | </tr> |
---|
151 | |
---|
152 | <tr class="prop"> |
---|
153 | <td valign="top" class="name">Average Delivery Time:</td> |
---|
154 | |
---|
155 | <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'averageDeliveryTime')}</td> |
---|
156 | |
---|
157 | </tr> |
---|
158 | |
---|
159 | <tr class="prop"> |
---|
160 | <td valign="top" class="name">Alternate Items:</td> |
---|
161 | |
---|
162 | <td valign="top" style="text-align:left;" class="value"> |
---|
163 | <ul> |
---|
164 | <g:each var="a" in="${inventoryItemInstance.alternateItems}"> |
---|
165 | <li><g:link controller="inventoryItemDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
166 | </g:each> |
---|
167 | </ul> |
---|
168 | </td> |
---|
169 | |
---|
170 | </tr> |
---|
171 | |
---|
172 | <tr class="prop"> |
---|
173 | <td valign="top" class="name">Inventory Movements:</td> |
---|
174 | |
---|
175 | <td valign="top" style="text-align:left;" class="value"> |
---|
176 | <ul> |
---|
177 | <g:each var="i" in="${inventoryItemInstance.inventoryMovements}"> |
---|
178 | <li><g:link controller="inventoryMovementDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> |
---|
179 | </g:each> |
---|
180 | </ul> |
---|
181 | </td> |
---|
182 | |
---|
183 | </tr> |
---|
184 | |
---|
185 | <tr class="prop"> |
---|
186 | <td valign="top" class="name">Manufacturers:</td> |
---|
187 | |
---|
188 | <td valign="top" style="text-align:left;" class="value"> |
---|
189 | <ul> |
---|
190 | <g:each var="m" in="${inventoryItemInstance.manufacturers}"> |
---|
191 | <li><g:link controller="manufacturerDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
192 | </g:each> |
---|
193 | </ul> |
---|
194 | </td> |
---|
195 | |
---|
196 | </tr> |
---|
197 | |
---|
198 | <tr class="prop"> |
---|
199 | <td valign="top" class="name">Spare For:</td> |
---|
200 | |
---|
201 | <td valign="top" style="text-align:left;" class="value"> |
---|
202 | <ul> |
---|
203 | <g:each var="s" in="${inventoryItemInstance.spareFor}"> |
---|
204 | <li><g:link controller="assetDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
205 | </g:each> |
---|
206 | </ul> |
---|
207 | </td> |
---|
208 | |
---|
209 | </tr> |
---|
210 | |
---|
211 | <tr class="prop"> |
---|
212 | <td valign="top" class="name">Suppliers:</td> |
---|
213 | |
---|
214 | <td valign="top" style="text-align:left;" class="value"> |
---|
215 | <ul> |
---|
216 | <g:each var="s" in="${inventoryItemInstance.suppliers}"> |
---|
217 | <li><g:link controller="supplierDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
218 | </g:each> |
---|
219 | </ul> |
---|
220 | </td> |
---|
221 | |
---|
222 | </tr> |
---|
223 | |
---|
224 | </tbody> |
---|
225 | </table> |
---|
226 | </div> |
---|
227 | <div class="buttons"> |
---|
228 | <g:form> |
---|
229 | <input type="hidden" name="id" value="${inventoryItemInstance?.id}" /> |
---|
230 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
231 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
232 | </g:form> |
---|
233 | </div> |
---|
234 | </div> |
---|
235 | </body> |
---|
236 | </html> |
---|