Bug 10065 - Style invoice edit form according to standard structure
[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 message">
38           <p>Invoice has been modified</p>
39         </div>
40       [% END %]
41       <h1>Invoice: [% invoicenumber %]</h1>
42
43       <p>Vendor: <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% suppliername %]</a></p>
44         <form action="/cgi-bin/koha/acqui/invoice.pl" method="post">
45         <fieldset class="rows">
46             <ol>
47             <li><label for="shipmentdate">Shipment date:</label>
48                     <input type="text" size="10" id="shipmentdate" name="shipmentdate" value="[% shipmentdate | $KohaDates %]" readonly="readonly" class="datepicker" /></li>
49
50             <li><label for="billingdate">Billing date:</label>
51                     <input type="text" size="10" id="billingdate" name="billingdate" value="[% billingdate | $KohaDates %]" readonly="readonly" class="datepicker" /></li>
52
53             <li><label for="shipmentcost">Shipment cost:</label>
54                     <input type="text" size="10" id="shipmentcost" name="shipmentcost" value="[% shipmentcost %]" /></li>
55             <li><label for="shipment_budget_id">Fund:</label>
56                     <select id="shipment_budget_id" name="shipment_budget_id">
57                         <option value="">No fund</option>
58                       [% FOREACH budget IN budgets_loop %]
59                         [% IF ( budget.selected ) %]
60                           <option selected="selected" value="[% budget.budget_id %]">
61                         [% ELSE %]
62                           <option value="[% budget.budget_id %]">
63                         [% END %]
64                           [% budget.budget_name %]
65                         </option>
66                       [% END %]
67                     </select></li>
68
69             [% IF ( invoiceclosedate ) %]
70             <li><span class="label">Status:</span>
71                 Closed on [% invoiceclosedate | $KohaDates %].</li>
72
73             <li><label for="reopen">Reopen: </label></li> <input type="checkbox" name="reopen" id="reopen" />
74             [% ELSE %]
75             <li><span class="label">Status:</span>
76                 Open.</li>
77
78             <li><label for="close">Close: </label> <input type="checkbox" name="close" id="close" />
79                 </li>
80             [% END %]
81             </ol>
82           <input type="hidden" name="op" value="mod" />
83           <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
84         </fieldset>
85         <fieldset class="action">
86             <input type="submit" value="Save" />
87         </fieldset>
88       </form>
89       <p>
90           <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Go to receipt page</a>
91       </p>
92       <h2>Invoice details</h2>
93       [% IF orders_loop.size %]
94           <table id="orderst">
95             <thead>
96               <tr>
97                 <th>Summary</th>
98                 <th>Publisher</th>
99                 <th>Library</th>
100                 <th>RRP</th>
101                 <th>Est.</th>
102                 <th>Qty.</th>
103                 <th>Total</th>
104                 <th>Fund</th>
105               </tr>
106             </thead>
107             <tbody>
108               [% FOREACH order IN orders_loop %]
109                 <tr>
110                   <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title %]</a>
111                     [% IF ( order.author ) %]
112                       <br /><em>by</em> [% order.author %]
113                     [% END %]
114                   </p></td>
115                   <td>
116                     [% IF ( order.publishercode ) %]
117                       <p>[% order.publishercode %]
118                         [% IF ( order.publicationyear ) %]
119                           - [% order.publicationyear %]
120                         [% END %]
121                       </p>
122                     [% END %]
123                   </td>
124                   <td><p>[% order.branchcode %]</p></td>
125                   <td>[% order.rrp %]</td>
126                   <td>[% order.ecost %]</td>
127                   <td class="number">[% order.quantity %]</td>
128                   <td>[% order.total %]</td>
129                   <td>[% order.budget_name %]</td>
130                 </tr>
131               [% END %]
132             </tbody>
133             <tfoot>
134                 <tr>
135                     <th colspan="3">Total tax exc.</th>
136                     <th>[% total_rrp_gste %]</th>
137                     <th>&nbsp;</th>
138                     <th>[% total_quantity %]</th>
139                     <th>[% total_est_gste %]</th>
140                     <th>&nbsp;</th>
141                 </tr>
142                 <tr>
143                     <th colspan='3'>Tax ([% gist %]%)</th>
144                     <th>[% gist_rrp %]</th>
145                     <th>&nbsp;</th>
146                     <th>&nbsp;</th>
147                     <th>[% gist_est %]</th>
148                     <th>&nbsp;</th>
149                 </tr>
150                 <tr>
151                     <th colspan='3'>Total tax inc. ([% currency %])</th>
152                     <th>[% total_rrp_gsti %]</th>
153                     <th>&nbsp;</th>
154                     <th>[% total_quantity %]</th>
155                     <th>[% total_est_gsti %]</th>
156                     <th>&nbsp;</th>
157                 </tr>
158                 <tr>
159                     <th colspan="3">Total + shipment cost ([% currency %])</th>
160                     <th>&nbsp;</th>
161                     <th>&nbsp;</th>
162                     <th>[% total_quantity %]</th>
163                     <th>[% total_gsti_shipment %]</th>
164                     <th>&nbsp;</th>
165                 </tr>
166             </tfoot>
167           </table>
168         [% ELSE %]
169             <div class="dialog message"><p>No orders yet</p></div>
170         [% END %]
171     </div>
172   </div>
173   <div class="yui-b">
174     [% INCLUDE 'acquisitions-menu.inc' %]
175   </div>
176 </div>
177 [% INCLUDE 'intranet-bottom.inc' %]