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

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

Domain change, several changes to InventoryItemPurchase.
Update views and logic to suite.

File size: 7.5 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        <nav:resources override="true"/>
9    </head>
10    <body>
11        <div class="nav">
12            <nav:renderSubItems group="navAlt"/>
13        </div>
14        <div class="body">
15            <g:render template="/shared/messages" />
16            <div class="dialog">
17                <table>
18                    <tbody>
19                   
20                        <tr class="prop">
21                            <td valign="top" class="name">Inventory Item:</td>
22                           
23                            <td valign="top" class="value"><g:link controller="inventoryItemDetailed" action="show" id="${inventoryItemPurchaseInstance?.inventoryItem?.id}">${inventoryItemPurchaseInstance?.inventoryItem?.encodeAsHTML()}</g:link></td>
24                           
25                        </tr>
26                   
27                        <tr class="prop">
28                            <td valign="top" class="name">Purchase Type:</td>
29                           
30                            <td valign="top" class="value">${inventoryItemPurchaseInstance?.inventoryItemPurchaseType?.encodeAsHTML()}</td>
31                           
32                        </tr>
33                   
34                        <tr class="prop">
35                            <td valign="top" class="name">Purchase Order #:</td>
36                           
37                            <td valign="top" class="value">${fieldValue(bean:inventoryItemPurchaseInstance, field:'purchaseOrderNumber')}</td>
38                           
39                        </tr>
40                   
41                        <tr class="prop">
42                            <td valign="top" class="name">Date:</td>
43                            <td valign="top" class="value">
44                                <g:formatDate date="${inventoryItemPurchaseInstance?.date}" format="EEE, dd-MMM-yyyy"/>
45                            </td>
46                        </tr>
47                   
48                        <tr class="prop">
49                            <td valign="top" class="name">Cost Code:</td>
50                           
51                            <td valign="top" class="value"><g:link controller="costCodeDetailed" action="show" id="${inventoryItemPurchaseInstance?.costCode?.id}">${inventoryItemPurchaseInstance?.costCode?.encodeAsHTML()}</g:link></td>
52                           
53                        </tr>
54                       
55                         <tr class="prop">
56                            <td valign="top" class="name">Supplier:</td>
57                           
58                            <td valign="top" class="value"><g:link controller="supplierDetailed" action="show" id="${inventoryItemPurchaseInstance?.supplier?.id}">${inventoryItemPurchaseInstance?.supplier?.encodeAsHTML()}</g:link></td>
59                           
60                        </tr>
61                   
62                        <tr class="prop">
63                            <td valign="top" class="name">Quantity:</td>
64                           
65                            <td valign="top" class="value">${fieldValue(bean:inventoryItemPurchaseInstance, field:'quantity')}</td>
66                           
67                        </tr>
68                   
69                        <tr class="prop">
70                            <td valign="top" class="name">Order Value:</td>
71                           
72                            <td valign="top" class="value">
73                                ${fieldValue(bean:inventoryItemPurchaseInstance, field:'orderValueAmount')}
74                                ${inventoryItemPurchaseInstance.orderValueCurrency?.encodeAsHTML()}
75                            </td>
76                           
77                        </tr>
78
79                        <g:if test="${inventoryItemPurchaseInstance.inventoryItemPurchaseType?.id == 4}">
80                            <tr class="prop">
81                                <td valign="top" class="name">Invoice Number:</td>
82                                <td valign="top" class="value">${fieldValue(bean:inventoryItemPurchaseInstance, field:'invoiceNumber')}</td>
83                            </tr>
84                        </g:if>
85                       
86                        <tr class="prop">
87                            <td valign="top" class="name">
88                                <label for="receivedComplete">Received Complete:</label>
89                            </td>
90                            <td valign="top" class="value">
91                                ${inventoryItemPurchaseInstance?.receivedComplete}
92                            </td>
93                        </tr>
94                       
95                        <tr class="prop">
96                            <td valign="top" class="name">
97                                <label for="invoicePaymentApproved">Invoice Payment Approved:</label>
98                            </td>
99                            <td valign="top" class="value">
100                                ${inventoryItemPurchaseInstance?.invoicePaymentApproved}
101                            </td>
102                        </tr>
103                       
104                        <tr class="prop">
105                            <td valign="top" class="name">Comment:</td>
106                            <td valign="top" class="value">${fieldValue(bean:inventoryItemPurchaseInstance, field:'comment')}</td>
107                        </tr>
108                   
109                        <tr class="prop">
110                            <td valign="top" class="name">Entered By:</td>
111                            <td valign="top" class="value">
112                                <g:link controller="person" action="show" id="${inventoryItemPurchaseInstance?.enteredBy?.id}">
113                                    ${inventoryItemPurchaseInstance?.enteredBy?.encodeAsHTML()}
114                                </g:link>
115                                    on <g:formatDate date="${inventoryItemPurchaseInstance?.dateCreated}" format="EEE, dd-MMM-yyyy @ HH:mm"/>
116                            </td>
117                        </tr>
118
119                        <g:if test="${inventoryItemPurchaseInstance.lastUpdatedBy}">
120                            <tr class="prop">
121                                <td valign="top" class="name">Last Updated By:</td>
122                                <td valign="top" class="value">
123                                    <g:link controller="person" action="show" id="${inventoryItemPurchaseInstance?.lastUpdatedBy?.id}">
124                                        ${inventoryItemPurchaseInstance?.lastUpdatedBy.encodeAsHTML()}
125                                    </g:link>
126                                    on <g:formatDate date="${inventoryItemPurchaseInstance?.lastUpdated}" format="EEE, dd-MMM-yyyy @ HH:mm"/>
127                                </td>
128                            </tr>
129                        </g:if >
130                   
131                    </tbody>
132                </table>
133            </div>
134            <div class="buttons">
135                <g:form>
136                    <g:hiddenField name="id" value="${inventoryItemPurchaseInstance?.id}" />
137                    <g:hiddenField name="returnTo" value="${params.returnTo}" />
138                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
139                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
140                </g:form>
141            </div>
142        </div>
143    </body>
144</html>
Note: See TracBrowser for help on using the repository browser.