source: trunk/grails-app/views/inventoryItemDetailed/show.gsp @ 719

Last change on this file since 719 was 719, checked in by gav, 13 years ago

Domain change: as per ticket #96 - Remove unused fields from InventoryItem?.
Removed InventoryItem?.preferredManufacturer and manufacturersPartNumber.

File size: 36.3 KB
Line 
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        <resource:tabView skin="tabviewCustom" />
10        <g:render template="/shared/pictureHead" />
11    </head>
12    <body>
13        <div class="nav">
14            <nav:renderSubItems group="nav"/>
15        </div>
16        <div class="body">
17            <g:render template="/shared/messages" />
18            <g:if test="${inventoryItemInstance.isObsolete || !inventoryItemInstance.isActive}" >
19                <div class="errors">
20                    <ul>
21                        <g:if test="${inventoryItemInstance.isObsolete}" >
22                            <li><g:message code="inventory.item.is.obsolete.message" /><li>
23                        </g:if>
24                        <g:if test="${!inventoryItemInstance.isActive}" >
25                            <li><g:message code="inventory.item.not.active.message" /><li>
26                        </g:if>
27                    </ul>
28                </div>
29            </g:if>
30            <g:if test="${!inventoryItemInstance.enableReorderListing}" >
31                <div class="message">
32                    <g:message code="inventory.item.reorder.listing.disabled" />
33                </div>
34            </g:if>
35            <g:hasErrors bean="${inventoryMovementInstance}">
36                <div class="errors">
37                    <g:renderErrors bean="${inventoryMovementInstance}" as="list" />
38                </div>
39            </g:hasErrors>
40
41            <g:hasErrors bean="${inventoryItemInstance}">
42                <div class="errors">
43                    <g:renderErrors bean="${inventoryItemInstance}" as="list" />
44                </div>
45            </g:hasErrors>
46
47            <div class="tabHeader">
48                <h1>
49                    ${inventoryItemInstance.name}
50                </h1>
51                ${fieldValue(bean:inventoryItemInstance, field:'description')}
52            </div>
53
54            <br/>
55
56            <richui:tabView id="tabView">
57
58                <richui:tabLabels>
59                    <richui:tabLabel selected="${showTab.inventory}" title="Inventory Item" />
60                    <richui:tabLabel selected="${showTab.detail}" title="Detail" />
61                    <g:if test="${!inventoryMovementList.isEmpty()}">
62                        <richui:tabLabel selected="${showTab.movement}" title="Movement (${inventoryMovementList.size()})" />
63                    </g:if>
64                    <g:else>
65                        <richui:tabLabel selected="${showTab.movement}" title="Movement" />
66                    </g:else>
67                    <g:if test="${!inventoryItemPurchases.isEmpty()}">
68                        <richui:tabLabel selected="${showTab.purchasing}" title="Purchasing (${inventoryItemPurchases.size()})" />
69                    </g:if>
70                    <g:else>
71                        <richui:tabLabel selected="${showTab.purchasing}" title="Purchasing" />
72                    </g:else>
73                </richui:tabLabels>
74
75                <richui:tabContents>
76
77<!-- Start Inventory tab -->
78                    <richui:tabContent>
79
80                        <g:if test="${inventoryMovementInstance}" >
81
82                            <div id="useInventoryItemDiv" style="display:inline"> <!-- inline required for IE -->
83                                <div class="pane_close" >
84                                    <g:remoteLink action="clearUseInventoryItem" update="useInventoryItemDiv">
85                                        <img  src="${resource(dir:'images/skin',file:'cross.png')}" alt="Clear" title="Clear"/>
86                                    </g:remoteLink>
87                                </div>
88                                <g:form controller="inventoryItemDetailed" action="useInventoryItem" method="post" >
89                                    <div class="dialog">
90                                        <table>
91                                            <tbody>
92                                                    <g:hiddenField name="task.id" value="${inventoryMovementInstance.task.id}"/>
93                                                    <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}"/>
94                                                    <tr class="prop">
95                                                        <td valign="top" class="name">Use on task:</td>
96                                                        <td valign="top" class="value">
97                                                            <g:link controller="taskDetailed" action="show" id="${inventoryMovementInstance.task.id}" >
98                                                                ${Task.get(inventoryMovementInstance.task.id).encodeAsHTML()}
99                                                            </g:link>
100                                                        </td>
101                                                    </tr>
102
103                                                    <tr class="prop">
104                                                        <td valign="top" class="name">
105                                                            <label for="quantity">Quantity:</label>
106                                                        </td>
107                                                        <td valign="top">
108                                                            <input class="medium ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}"
109                                                                        type="text" id="quantity" name="quantity"
110                                                                        value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}"/>
111                                                            ${inventoryItemInstance.unitOfMeasure?.encodeAsHTML()}
112
113                                                            <span class="buttons">
114                                                                <g:actionSubmit action="useInventoryItem" class="save" value="${InventoryMovementType.read(1)}" />
115                                                            </span>
116
117                                                        </td>
118                                                    </tr>
119
120                                            </tbody>
121                                        </table>
122                                    </div>
123                                </g:form>
124
125                                <br />
126                            </div>
127
128                        </g:if>
129
130                        <div class="dialog">
131                            <table>
132                                <tbody>
133
134                                    <tr class="prop">
135                                        <td valign="top" class="name">Picture:</td>
136                                        <td valign="top" class="value">
137                                            <g:if test="${inventoryItemInstance.picture}" >
138                                                <span class='gallery'><wa:pictureLightboxAnchor picture="${inventoryItemInstance.picture}" size="${Image.Medium}" lightboxSize="${Image.Large}" target="_blank" title="Show Original" /></span>
139                                            </g:if>
140                                            <g:else>
141                                                <g:link controller="pictureDetailed"
142                                                                params="['inventoryItem.id':inventoryItemInstance.id]"
143                                                                action="create">
144                                                    Add Picture
145                                                </g:link>
146                                            </g:else>
147                                        </td>
148                                    </tr>
149
150                                    <tr class="prop">
151                                        <td valign="top" class="name">Comment:</td>
152
153                                        <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'comment')}</td>
154                                    </tr>
155
156                                    <tr class="prop">
157                                        <td valign="top" class="name">In Stock:</td>
158
159                                        <td valign="top" class="value">
160                                            ${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')} ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()}
161                                        </td>
162                                    </tr>
163
164                                    <tr class="prop">
165                                        <td valign="top" class="name">Location:</td>
166
167                                        <td valign="top" class="value">
168                                            <g:link controller="inventoryLocationDetailed" action="show" id="${inventoryItemInstance.inventoryLocation?.id}">
169                                                ${inventoryItemInstance.inventoryLocation?.encodeAsHTML()}
170                                            </g:link>
171                                                in ${inventoryItemInstance.inventoryLocation?.inventoryStore.encodeAsHTML()}
172                                        </td>
173                                    </tr>
174
175                                    <tr class="prop">
176                                        <td valign="top" class="name">Active:</td>
177
178                                        <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'isActive')}</td>
179                                    </tr>
180
181                                    <tr class="prop">
182                                        <td valign="top" class="name">Alternate Items:</td>
183
184                                        <td  valign="top" style="text-align:left;" class="value">
185                                            <ul>
186                                            <g:each var="a" in="${ inventoryItemInstance.alternateItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }">
187                                                <li><g:link controller="inventoryItemDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
188                                            </g:each>
189                                            </ul>
190                                        </td>
191                                    </tr>
192
193                                    <tr class="prop">
194                                        <td valign="top" class="name">Spare For:</td>
195
196                                        <td  valign="top" style="text-align:left;" class="value">
197                                            <ul>
198                                            <g:each var="s" in="${ inventoryItemInstance.spareFor.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }">
199                                                <li><g:link controller="assetDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
200                                            </g:each>
201                                            </ul>
202                                        </td>
203                                    </tr>
204
205                                </tbody>
206                            </table>
207                        </div>
208                        <div class="buttons">
209                            <g:form>
210                                <g:hiddenField name="id" value="${inventoryItemInstance.id}" />
211                                <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
212                                <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
213                            </g:form>
214                        </div>
215
216                        <br />
217
218                    </richui:tabContent>
219<!-- End Inventory tab -->
220
221<!-- Start Detail tab -->
222                    <richui:tabContent>
223
224                        <div class="dialog">
225                            <table>
226                                <tbody>
227
228                                    <tr class="prop">
229                                        <td valign="top" class="name">Id:</td>
230                                        <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'id')}</td>
231                                    </tr>
232
233                                    <tr class="prop">
234                                        <td valign="top" class="name">Obsolete:</td>
235                                        <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'isObsolete')}</td>
236                                    </tr>
237
238                                    <tr class="prop">
239                                        <td valign="top" class="name">Inventory Group:</td>
240                                        <td valign="top" class="value">${inventoryItemInstance.inventoryGroup?.encodeAsHTML()}</td>
241                                    </tr>
242
243                                    <tr class="prop">
244                                        <td valign="top" class="name">Inventory Type:</td>
245                                        <td valign="top" class="value">${inventoryItemInstance.inventoryType?.encodeAsHTML()}</td>
246                                    </tr>
247
248                                    <tr class="prop">
249                                        <td valign="top" class="name">Reorder Point:</td>
250                                        <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'reorderPoint')}</td>
251                                    </tr>
252
253                                    <tr class="prop">
254                                        <td valign="top" class="name">Enable Reorder Listing:</td>
255                                        <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'enableReorderListing')}</td>
256                                    </tr>
257
258                                    <tr class="prop">
259                                        <td valign="top" class="name">Reorder Quantity:</td>
260                                        <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'reorderQuantity')}</td>
261                                    </tr>
262
263                                    <tr class="prop">
264                                        <td valign="top" class="name">Estimated Unit Price:</td>
265
266                                        <td valign="top" class="value">
267                                            <g:if test="${inventoryItemInstance.estimatedUnitPriceAmount}">
268                                                ${inventoryItemInstance.estimatedUnitPriceAmount.encodeAsHTML()}
269                                                ${inventoryItemInstance.estimatedUnitPriceCurrency.encodeAsHTML()}
270                                            </g:if>
271                                        </td>
272                                    </tr>
273
274                                    <tr class="prop">
275                                        <td valign="top" class="name">Suppliers Part Number:</td>
276                                        <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'suppliersPartNumber')}</td>
277                                    </tr>
278
279                                    <tr class="prop">
280                                        <td valign="top" class="name">Preferred Supplier:</td>
281
282                                        <td  valign="top" style="text-align:left;" class="value">
283                                            <g:link controller="supplierDetailed" action="show" id="${inventoryItemInstance.preferredSupplier?.id}">
284                                                ${inventoryItemInstance.preferredSupplier?.encodeAsHTML()}
285                                            </g:link>
286                                        </td>
287                                    </tr>
288
289                                    <tr class="prop">
290                                        <td valign="top" class="name">Alternate Suppliers:</td>
291
292                                        <td  valign="top" style="text-align:left;" class="value">
293                                            <ul>
294                                            <g:each var="s" in="${ inventoryItemInstance.alternateSuppliers.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }">
295                                                <li><g:link controller="supplierDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
296                                            </g:each>
297                                            </ul>
298                                        </td>
299                                    </tr>
300
301                                </tbody>
302                            </table>
303                        </div>
304                        <div class="buttons">
305                            <g:form>
306                                <g:hiddenField name="id" value="${inventoryItemInstance.id}" />
307                                <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
308                                <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
309                            </g:form>
310                        </div>
311                    </richui:tabContent>
312<!-- End Detail tab -->
313
314<!-- Start Movement tab -->
315                    <richui:tabContent>
316
317                        <g:if test="${inventoryMovementList.isEmpty()}">
318                            <br />
319                            No Inventory Movements.
320                            <br />
321                            <br />
322
323                            <div class="buttons">
324                                <g:form controller="inventoryMovementDetailed">
325                                    <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}" />
326                                    <span class="button"><g:actionSubmit action="create" class="add" value="Create" /></span>
327                                </g:form>
328                            </div>
329
330                        </g:if>
331                        <g:else>
332
333                            <div class="list">
334                                <table>
335                                    <thead>
336                                        <tr>
337                                            <th>Quantity</th>
338                                            <th>Movement Type</th>
339                                            <th>Date</th>
340                                            <th>Person</th>
341                                            <th></th>
342                                        </tr>
343                                    </thead>
344                                    <tbody>
345                                        <g:each in="${inventoryMovementList}" status="i" var="movements">
346                                            <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
347
348                                                <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${movements.id}"'>
349                                                    ${fieldValue(bean:movements, field:'quantity')}
350                                                </td>
351                                                <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${movements.id}"'>
352                                                    ${fieldValue(bean:movements, field:'inventoryMovementType')}
353                                                </td>
354                                                <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${movements.id}"'>
355                                                    <g:formatDate date="${movements.date}" format="EEE, dd-MMM-yyyy"/>
356                                                </td>
357                                                <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${movements.id}"'>
358                                                    ${fieldValue(bean:movements, field:'person')}
359                                                </td>
360
361                                                <td class="notClickable">
362                                                    <g:link controller="inventoryMovementDetailed" action="show" id="${movements.id}">
363                                                        <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
364                                                    </g:link>
365                                                </td>
366
367                                            </tr>
368                                        </g:each>
369                                    </tbody>
370                                </table>
371                            </div>
372
373                            <div class="buttons">
374                                <g:form controller="inventoryMovementDetailed">
375                                    <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}" />
376                                    <g:if test="${inventoryMovementListTotal > inventoryMovementListMax}">
377                                        Showing ${inventoryMovementListMax} of ${inventoryMovementListTotal}
378                                        <br />
379                                    </g:if>
380                                    <g:else>
381                                        Total ${inventoryMovementListTotal}
382                                        <br />
383                                    </g:else>
384                                    <span class="button"><g:actionSubmit action="listInventoryMovements" class="table" value="List" /></span>
385                                    <span class="button"><g:actionSubmit action="create" class="add" value="Create" /></span>
386                                </g:form>
387                            </div>
388
389                        </g:else>
390
391                    </richui:tabContent>
392<!-- End Movement tab -->
393
394<!-- Start Purchases tab -->
395                    <richui:tabContent>
396
397                        <g:if test="${inventoryItemPurchases.isEmpty()}">
398                            <br />
399                            No Inventory Purchases.
400                            <br />
401                            <br />
402
403                            <div class="buttons">
404                                <!--Fake button to prevent ordering disabled inventory items-->
405                                <g:if test="${inventoryItemInstance.isObsolete || !inventoryItemInstance.isActive}" >
406                                    <g:form controller="inventoryItemDetailed">
407                                        <g:hiddenField name="id" value="${inventoryItemInstance.id}" />
408                                        <span class="button">
409                                            <g:actionSubmit action="show" class="add" value="${g.message(code:'inventory.item.reorder.not.allowed')}" />
410                                        </span>
411                                        <span class="button">
412                                            <input type="button" class="search" value="Search"
413                                                        onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/search"' />
414                                        </span>
415                                    </g:form>
416                                </g:if>
417                                <g:else><!--Real order button.-->
418                                    <g:form controller="inventoryItemPurchaseDetailed">
419                                        <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}" />
420                                        <span class="button">
421                                            <g:actionSubmit action="create" class="add" value="Order" />
422                                        </span>
423                                        <span class="button">
424                                            <g:actionSubmit action="search" class="search" value="Search" />
425                                        </span>
426                                    </g:form>
427                                </g:else>
428                            </div>
429
430                        </g:if>
431                        <g:else>
432
433                            <div class="list">
434                                <table>
435                                    <thead>
436                                        <tr>
437                                            <g:sortableColumn action="show" property="purchaseOrderNumber"
438                                                                                title="Order #" params="[paginate: 'purchases']"  />
439                                            <g:sortableColumn action="show"  property="date"
440                                                                                title="Date" params="[paginate: 'purchases']" />
441                                            <g:sortableColumn action="show"  property="costCode"
442                                                                                title="Cost Code" params="[paginate: 'purchases']" />
443                                            <g:sortableColumn action="show"  property="quantity"
444                                                                                title="Quantity" params="[paginate: 'purchases']" />
445                                            <g:sortableColumn action="show"  property="orderValueAmount"
446                                                                                title="Order \$" params="[paginate: 'purchases']" />
447                                            <g:sortableColumn action="show"  property="invoiceNumber"
448                                                                                title="Invoice Number" params="[paginate: 'purchases']" />
449                                            <g:sortableColumn action="show"  property="inventoryItemPurchaseType"
450                                                                                title="Type" params="[paginate: 'purchases']" />
451                                            <th>
452                                                <img  src="${resource(dir:'images/skin',file:'database_go_grey.png')}" alt="Show" title="Show" />
453                                            </th>
454                                            <th>
455                                                <img  src="${resource(dir:'images/skin',file:'basket_put_grey.png')}" alt="Receive" title="Receive" />
456                                            </th>
457                                            <th>
458                                                <img  src="${resource(dir:'images/skin',file:'tick_grey.png')}" alt="Approve" title="Approve Payment" />
459                                            </th>
460                                        </tr>
461                                    </thead>
462                                    <tbody>
463                                        <g:each in="${inventoryItemPurchases}" status="i" var="purchase">
464                                            <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
465
466                                                <td onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/show/${purchase.id}"'>
467                                                    ${fieldValue(bean:purchase, field:'purchaseOrderNumber')}
468                                                </td>
469                                                <td onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/show/${purchase.id}"'>
470                                                    <g:formatDate date="${purchase.date}" format="EEE, dd-MMM-yyyy"/>
471                                                </td>
472                                                <td onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/show/${purchase.id}"'>
473                                                    ${fieldValue(bean:purchase, field:'costCode')}
474                                                </td>
475                                                <td onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/show/${purchase.id}"'>
476                                                    ${fieldValue(bean:purchase, field:'quantity')}
477                                                </td>
478                                                <td onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/show/${purchase.id}"'>
479                                                    ${fieldValue(bean:purchase, field:'orderValueAmount')}
480                                                    ${fieldValue(bean:purchase, field:'orderValueCurrency')}
481                                                </td>
482                                                <td onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/show/${purchase.id}"'>
483                                                    ${fieldValue(bean:purchase, field:'invoiceNumber')}
484                                                </td>
485                                                <td onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/show/${purchase.id}"'>
486                                                    ${fieldValue(bean:purchase, field:'inventoryItemPurchaseType')}
487                                                </td>
488                                                <td class="notClickable">
489                                                    <g:link controller="inventoryItemPurchaseDetailed" action="show" id="${purchase.id}">
490                                                        <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" title="Show" />
491                                                    </g:link>
492                                                </td>
493
494                                                <g:if test="${purchase.inventoryItemPurchaseType.id == 1}">
495                                                    <g:if test="${!purchase.receivedComplete}">
496                                                        <td class="notClickable">
497                                                            <g:link controller="inventoryItemPurchaseDetailed" action="receive" params="[id: purchase.id, returnTo: 'inventoryItem']">
498                                                                <img  src="${resource(dir:'images/skin',file:'basket_put.png')}" alt="Receive" title="Receive" />
499                                                            </g:link>
500                                                        </td>
501                                                        <td class="notClickable">
502                                                        </td>
503                                                    </g:if>
504                                                    <g:else>
505                                                        <td class="notClickable">
506                                                        </td>
507                                                        <td class="notClickable">
508                                                        </td>
509                                                    </g:else>
510                                                </g:if>
511                                                <g:elseif test="${(purchase.inventoryItemPurchaseType.id == 2)||(purchase.inventoryItemPurchaseType.id == 3)}">
512                                                    <g:if test="${!purchase.invoicePaymentApproved}">
513                                                        <td class="notClickable">
514                                                        </td>
515                                                        <td class="notClickable">
516                                                            <g:link controller="inventoryItemPurchaseDetailed" action="approveInvoicePayment" params="[id: purchase.id, returnTo: 'inventoryItem']">
517                                                                <img  src="${resource(dir:'images/skin',file:'tick.png')}" alt="Approve" title="Approve Payment" />
518                                                            </g:link>
519                                                        </td>
520                                                    </g:if>
521                                                    <g:else>
522                                                        <td class="notClickable">
523                                                        </td>
524                                                        <td class="notClickable">
525                                                        </td>
526                                                    </g:else>
527                                                </g:elseif>
528                                                <g:else>
529                                                    <td class="notClickable">
530                                                    </td>
531                                                    <td class="notClickable">
532                                                    </td>
533                                                </g:else>
534
535                                            </tr>
536                                        </g:each>
537                                    </tbody>
538                                </table>
539                            </div>
540
541                            <div class="buttons">
542                                <!--Fake button to prevent ordering disabled inventory items-->
543                                <g:if test="${inventoryItemInstance.isObsolete || !inventoryItemInstance.isActive}" >
544                                    <g:form controller="inventoryItemDetailed">
545                                        <g:hiddenField name="id" value="${inventoryItemInstance.id}" />
546                                        Results: ${inventoryItemPurchases.size()} / ${inventoryItemPurchasesTotal}
547                                        <span class="button">
548                                            <g:actionSubmit action="show" class="add" value="${g.message(code:'inventory.item.reorder.not.allowed')}" />
549                                        </span>
550                                        <span class="button">
551                                            <input type="button" class="search" value="Search"
552                                                        onclick='window.location = "${request.getContextPath()}/inventoryItemPurchaseDetailed/search"' />
553                                        </span>
554                                    </g:form>
555                                </g:if>
556                                <g:else><!--Real order button.-->
557                                    <g:form controller="inventoryItemPurchaseDetailed">
558                                        <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}" />
559                                        Results: ${inventoryItemPurchases.size()} / ${inventoryItemPurchasesTotal}
560                                        <span class="button">
561                                            <g:actionSubmit action="create" class="add" value="Order" />
562                                        </span>
563                                        <span class="button">
564                                            <g:actionSubmit action="search" class="search" value="Search" />
565                                        </span>
566                                    </g:form>
567                                </g:else>
568                            </div>
569
570                            <div class="paginateButtons">
571                                <g:paginate action="show"
572                                                        id="${inventoryItemInstance?.id}"
573                                                        total="${inventoryItemPurchasesTotal}"
574                                                        params="[paginate: 'purchases']" />
575                            </div>
576
577                        </g:else>
578
579                    </richui:tabContent>
580<!-- End Movement tab -->
581
582                </richui:tabContents>
583            </richui:tabView>
584
585        </div>
586    </body>
587</html>
Note: See TracBrowser for help on using the repository browser.