3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Acquisitions › Invoices</title>
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'doc-head-close.inc' %]
7 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
8 [% INCLUDE 'datatables-strings.inc' %]
9 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
10 [% INCLUDE 'calendar.inc' %]
11 <script type="text/javascript">
13 $(document).ready(function() {
14 $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
20 { "bSortable": false, "aTargets": [6] }
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'acquisitions-search.inc' %]
32 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › Invoices</div>
34 <div id="doc3" class="yui-t2">
40 [% IF ( do_search ) %]
41 [% IF ( results_loop ) %]
48 <th>Received biblios</th>
49 <th>Received items</th>
55 [% FOREACH result IN results_loop %]
57 <td>[% result.invoicenumber %]</td>
58 <td>[% result.suppliername %]</td>
60 [% IF (result.billingdate) %]
61 [% result.billingdate | $KohaDates %]
64 <td>[% result.receivedbiblios %]</td>
65 <td>[% result.receiveditems %]</td>
67 [% IF ( result.closedate ) %]
68 Closed on [% result.closedate | $KohaDates %]
74 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% result.invoiceid %]">Details</a> /
75 [% IF ( result.closedate ) %]
76 <a href="invoice.pl?op=reopen&invoiceid=[% result.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% supplier %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]">Reopen</a>
78 <a href="invoice.pl?op=close&invoiceid=[% result.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% supplier %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]">Close</a>
86 <p>Sorry, but there is no results for your search.</p>
89 [% IF ( invoicenumber ) %]
90 <li>Invoice no.: [% invoicenumber %]</li>
93 <li>Vendor: [% suppliername %]</li>
95 [% IF ( billingdatefrom ) %]
97 [% IF ( billingdateto ) %]
98 From [% billingdatefrom %]
99 To [% billingdateto %]
101 All since [% billingdatefrom %]
105 [% IF ( billingdateto ) %]
107 All until [% billingdateto %]
111 [% IF ( isbneanissn ) %]
112 <li>ISBN/EAN/ISSN: [% isbneanissn %]</li>
115 <li>Title: [% title %]</li>
118 <li>Author: [% author %]</li>
120 [% IF ( publisher ) %]
121 <li>Publisher: [% publisher %]</li>
123 [% IF ( publicationyear ) %]
124 <li>Publication year: [% publicationyear %]</li>
127 <li>Branch: [% branchname %]</li>
131 [% END %]<!-- results_loop -->
133 <p>Use the search form on the left to find invoices.</p>
134 [% END %]<!-- do_search -->
138 <form action="" method="get">
139 <fieldset class="brief">
140 <h3>Search filters</h3>
143 <label for="invoicenumber">Invoice no:</label>
144 <input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber %]" />
147 <label for="supplier">Supplier:</label>
148 <select id="supplier" name="supplier">
149 <option value="">All</option>
150 [% FOREACH supplier IN suppliers_loop %]
151 [% IF ( supplier.selected ) %]
152 <option selected="selected" value="[% supplier.supplierid %]">[% supplier.suppliername %]</option>
154 <option value="[% supplier.supplierid %]">[% supplier.suppliername %]</option>
160 <fieldset class="brief">
161 <legend>Shipment date</legend>
164 <label for="shipmentdatefrom">From:</label>
165 <input type="text" id="shipmentdatefrom" name="shipmentdatefrom" size="10" value="[% shipmentdatefrom %]" class="datepicker" />
168 <label for="shipmentdateto">To:</label>
169 <input type="text" id="shipmentdateto" name="shipmentdateto" size="10" value="[% shipmentdateto %]" class="datepicker" />
175 <fieldset class="brief">
176 <legend>Billing date</legend>
179 <label for="billingdatefrom">From:</label>
180 <input type="text" id="billingdatefrom" name="billingdatefrom" size="10" value="[% billingdatefrom %]" class="datepicker" />
183 <label for="billingdateto">To:</label>
184 <input type="text" id="billingdateto" name="billingdateto" size="10" value="[% billingdateto %]" class="datepicker" />
190 <label for="isbneanissn">ISBN / EAN / ISSN:</label>
191 <input type="text" id="isbneanissn" name="isbneanissn" value="[% isbneanissn %]" />
194 <label for="title">Title:</label>
195 <input type="text" id="title" name="title" value="[% title %]" />
198 <label for="author">Author:</label>
199 <input type="text" id="author" name="author" value="[% author %]" />
202 <label for="publisher">Publisher:</label>
203 <input type="text" id="publisher" name="publisher" value="[% publisher %]" />
206 <label for="publicationyear">Publication year:</label>
207 <input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear %]" />
210 <label for="branch">Branch:</label>
211 <select id="branch" name="branch">
212 <option value="">All</option>
213 [% FOREACH branch IN branches_loop %]
214 [% IF ( branch.selected ) %]
215 <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option>
217 <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
223 <fieldset class="action">
224 <input type="submit" value="Search" />
227 <input type="hidden" name="op" id="op" value="do_search" />
229 [% INCLUDE 'acquisitions-menu.inc' %]
232 [% INCLUDE 'intranet-bottom.inc' %]