Bug 5339: ergonomic changes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / invoice.tt
1 [% USE KohaDates %]
2
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Acquisitions &rsaquo; Invoice</title>
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% INCLUDE 'calendar.inc' %]
8 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
9 [% INCLUDE 'datatables-strings.inc' %]
10 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
11 <script type="text/javascript">
12 //<![CDATA[
13     $(document).ready(function() {
14         $("#orderst").dataTable($.extend(true, {}, dataTablesDefaults, {
15             bInfo: false,
16             bPaginate: false,
17             bFilter: false,
18             sDom: "t"
19         }));
20     });
21 //]]>
22 </script>
23 </head>
24
25 <body>
26 [% INCLUDE 'header.inc' %]
27 [% INCLUDE 'acquisitions-search.inc' %]
28
29 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/invoices.pl">Invoices</a> &rsaquo; <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">[% invoicenumber %]</a></div>
30
31 <div id="doc3" class="yui-t2">
32
33 <div id="bd">
34   <div id="yui-main">
35     <div class="yui-b">
36       [% IF ( modified ) %]
37         <div class="dialog">
38           <p>Invoice has been modified</p>
39         </div>
40       [% END %]
41       <h1>Invoice: [% invoicenumber %]</h1>
42
43       <p>Supplier: [% suppliername %]</p>
44       <form action="" method="post">
45         <fieldset>
46           <label for="shipmentdate">Shipment date:</label>
47           <input type="text" size="10" id="shipmentdate" name="shipmentdate" value="[% shipmentdate | $KohaDates %]" readonly="readonly" class="datepicker" />
48           <p></p>
49           <label for="billingdate">Billing date:</label>
50           <input type="text" size="10" id="billingdate" name="billingdate" value="[% billingdate | $KohaDates %]" readonly="readonly" class="datepicker" />
51           <p></p>
52           <label for="shipmentcost">Shipment cost:</label>
53           <input type="text" size="10" id="shipmentcost" name="shipmentcost" value="[% shipmentcost %]" />
54           <label for="shipment_budget_id">Budget:</label>
55           <select id="shipment_budget_id" name="shipment_budget_id">
56               <option value="">No budget</option>
57             [% FOREACH budget IN budgets_loop %]
58               [% IF ( budget.selected ) %]
59                 <option selected="selected" value="[% budget.budget_id %]">
60               [% ELSE %]
61                 <option value="[% budget.budget_id %]">
62               [% END %]
63                 [% budget.budget_name %]
64               </option>
65             [% END %]
66           </select>
67           <p></p>
68           <label>Status:</label>
69           [% IF ( invoiceclosedate ) %]
70             Closed on [% invoiceclosedate | $KohaDates %].
71             <p></p>
72             <input type="checkbox" name="reopen" id="reopen" />
73             <label for="reopen">Reopen</label>
74           [% ELSE %]
75             Open.
76             <p></p>
77             <input type="checkbox" name="close" id="close" />
78             <label for="close">Close</label>
79           [% END %]
80           <input type="hidden" name="op" value="mod" />
81           <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
82           <fieldset class="action">
83               <input type="submit" value="Save">
84           </fieldset>
85         </fieldset>
86       </form>
87       <p>
88           <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Go to receipt page</a>
89       </p>
90       <h2>Invoice details</h2>
91       [% IF orders_loop.size %]
92           <table id="orderst">
93             <thead>
94               <tr>
95                 <th>Summary</th>
96                 <th>Publisher</th>
97                 <th>Branch</th>
98                 <th>RRP</th>
99                 <th>Est.</th>
100                 <th>Qty.</th>
101                 <th>Total</th>
102                 <th>Fund</th>
103               </tr>
104             </thead>
105             <tbody>
106               [% FOREACH order IN orders_loop %]
107                 <tr>
108                   <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title %]</a>
109                     [% IF ( order.author ) %]
110                       <br /><em>by</em> [% order.author %]
111                     [% END %]
112                   </p></td>
113                   <td>
114                     [% IF ( order.publishercode ) %]
115                       <p>[% order.publishercode %]
116                         [% IF ( order.publicationyear ) %]
117                           - [% order.publicationyear %]
118                         [% END %]
119                       </p>
120                     [% END %]
121                   </td>
122                   <td><p>[% order.branchcode %]</p></td>
123                   <td>[% order.rrp %]</td>
124                   <td>[% order.ecost %]</td>
125                   <td class="number">[% order.quantity %]</td>
126                   <td>[% order.total %]</td>
127                   <td>[% order.budget_name %]</td>
128                 </tr>
129               [% END %]
130             </tbody>
131             <tfoot>
132                 <tr>
133                     <th colspan="3">Total Tax Exc.</th>
134                     <th>[% total_rrp_gste %]</th>
135                     <th>&nbsp;</th>
136                     <th>[% total_quantity %]</th>
137                     <th>[% total_est_gste %]</th>
138                     <th>&nbsp;</th>
139                 </tr>
140                 <tr>
141                     <th colspan='3'>Tax ([% gist %]%)</th>
142                     <th>[% gist_rrp %]</th>
143                     <th>&nbsp;</th>
144                     <th>&nbsp;</th>
145                     <th>[% gist_est %]</th>
146                     <th>&nbsp;</th>
147                 </tr>
148                 <tr>
149                     <th colspan='3'>Total Tax Inc. ([% currency %])</th>
150                     <th>[% total_rrp_gsti %]</th>
151                     <th>&nbsp;</th>
152                     <th>[% total_quantity %]</th>
153                     <th>[% total_est_gsti %]</th>
154                     <th>&nbsp;</th>
155                 </tr>
156                 <tr>
157                     <th colspan="3">Total + Shipment cost ([% currency %])</th>
158                     <th>&nbsp;</th>
159                     <th>&nbsp;</th>
160                     <th>[% total_quantity %]</th>
161                     <th>[% total_gsti_shipment %]</th>
162                     <th>&nbsp;</th>
163                 </tr>
164             </tfoot>
165           </table>
166         [% ELSE %]
167             <p>No orders yet</p>
168         [% END %]
169     </div>
170   </div>
171   <div class="yui-b">
172     [% INCLUDE 'acquisitions-menu.inc' %]
173   </div>
174 </div>
175 [% INCLUDE 'intranet-bottom.inc' %]