source: trunk/grails-app/views/inventoryItemPurchaseDetailed/show.gsp @ 441

Last change on this file since 441 was 441, checked in by gav, 14 years ago

Add CostCode and InventoryItemPurchase domain classes with import features.
Includes some fixes to inventory imports, where manufacturer and supplier were crossed.

File size: 5.7 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 InventoryItemPurchase</title>
8    </head>
9    <body>
10        <div class="nav">
11            <h1>Show InventoryItemPurchase</h1>
12        </div>
13        <div class="body">
14            <g:render template="/shared/messages" />
15            <div class="dialog">
16                <table>
17                    <tbody>
18                   
19                        <tr class="prop">
20                            <td valign="top" class="name">Inventory Item:</td>
21                           
22                            <td valign="top" class="value"><g:link controller="inventoryItemDetailed" action="show" id="${inventoryItemPurchaseInstance?.inventoryItem?.id}">${inventoryItemPurchaseInstance?.inventoryItem?.encodeAsHTML()}</g:link></td>
23                           
24                        </tr>
25                   
26                        <tr class="prop">
27                            <td valign="top" class="name">Inventory Item Purchase Type:</td>
28                           
29                            <td valign="top" class="value">${inventoryItemPurchaseInstance?.inventoryItemPurchaseType?.encodeAsHTML()}</td>
30                           
31                        </tr>
32                   
33                        <tr class="prop">
34                            <td valign="top" class="name">Purchase Order Number:</td>
35                           
36                            <td valign="top" class="value">${fieldValue(bean:inventoryItemPurchaseInstance, field:'purchaseOrderNumber')}</td>
37                           
38                        </tr>
39                   
40                        <tr class="prop">
41                            <td valign="top" class="name">Cost Code:</td>
42                           
43                            <td valign="top" class="value"><g:link controller="costCodeDetailed" action="show" id="${inventoryItemPurchaseInstance?.costCode?.id}">${inventoryItemPurchaseInstance?.costCode?.encodeAsHTML()}</g:link></td>
44                           
45                        </tr>
46                   
47                        <tr class="prop">
48                            <td valign="top" class="name">Quantity:</td>
49                           
50                            <td valign="top" class="value">${fieldValue(bean:inventoryItemPurchaseInstance, field:'quantity')}</td>
51                           
52                        </tr>
53                   
54                        <tr class="prop">
55                            <td valign="top" class="name">Order Value:</td>
56                           
57                            <td valign="top" class="value">
58                                ${fieldValue(bean:inventoryItemPurchaseInstance, field:'orderValueAmount')}
59                                ${inventoryItemPurchaseInstance.orderValueCurrency?.encodeAsHTML()}
60                            </td>
61                           
62                        </tr>
63                   
64                        <tr class="prop">
65                            <td valign="top" class="name">Invoice Number:</td>
66                           
67                            <td valign="top" class="value">${fieldValue(bean:inventoryItemPurchaseInstance, field:'invoiceNumber')}</td>
68                           
69                        </tr>
70                       
71                        <tr class="prop">
72                            <td valign="top" class="name">
73                                <label for="receivedComplete">Received Complete:</label>
74                            </td>
75                            <td valign="top" class="value">
76                                ${inventoryItemPurchaseInstance?.receivedComplete}
77                            </td>
78                        </tr>
79                       
80                        <tr class="prop">
81                            <td valign="top" class="name">
82                                <label for="invoicePaymentApproved">Invoice Payment Approved:</label>
83                            </td>
84                            <td valign="top" class="value">
85                                ${inventoryItemPurchaseInstance?.invoicePaymentApproved}
86                            </td>
87                        </tr>
88                   
89                        <tr class="prop">
90                            <td valign="top" class="name">Date Entered:</td>
91                           
92                            <td valign="top" class="value">
93                                <g:formatDate date="${inventoryItemPurchaseInstance?.dateEntered}" format="EEE, dd-MMM-yyyy @ HH:mm"/>
94                            </td>
95                           
96                        </tr>
97                   
98                        <tr class="prop">
99                            <td valign="top" class="name">Entered By:</td>
100                           
101                            <td valign="top" class="value"><g:link controller="person" action="show" id="${inventoryItemPurchaseInstance?.enteredBy?.id}">${inventoryItemPurchaseInstance?.enteredBy?.encodeAsHTML()}</g:link></td>
102                           
103                        </tr>
104                   
105                    </tbody>
106                </table>
107            </div>
108            <div class="buttons">
109                <g:form>
110                    <input type="hidden" name="id" value="${inventoryItemPurchaseInstance?.id}" />
111                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
112                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
113                </g:form>
114            </div>
115        </div>
116    </body>
117</html>
Note: See TracBrowser for help on using the repository browser.