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 [% IF (dateformat == 'metric') %]
15 dt_add_type_uk_date();
17 $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
23 { "bSortable": false, "aTargets": [6] }
32 [% INCLUDE 'header.inc' %]
33 [% INCLUDE 'acquisitions-search.inc' %]
35 <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>
37 <div id="doc3" class="yui-t2">
43 [% IF ( do_search ) %]
44 [% IF ( results_loop ) %]
51 <th>Received biblios</th>
52 <th>Received items</th>
58 [% FOREACH result IN results_loop %]
60 <td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% result.invoiceid %]">[% result.invoicenumber %]</a></td>
61 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% result.booksellerid %]">[% result.suppliername %]</a></td>
63 [% IF (result.billingdate) %]
64 [% result.billingdate | $KohaDates %]
67 <td>[% result.receivedbiblios %]</td>
68 <td>[% result.receiveditems %]</td>
70 [% IF ( result.closedate ) %]
71 Closed on [% result.closedate | $KohaDates %]
77 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% result.invoiceid %]">Details</a> /
78 [% IF ( result.closedate ) %]
79 <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>
81 <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>
89 <p>Sorry, but there is no results for your search.</p>
92 [% IF ( invoicenumber ) %]
93 <li>Invoice no.: [% invoicenumber %]</li>
96 <li>Vendor: [% suppliername %]</li>
98 [% IF ( billingdatefrom ) %]
100 [% IF ( billingdateto ) %]
101 From [% billingdatefrom %]
102 To [% billingdateto %]
104 All since [% billingdatefrom %]
108 [% IF ( billingdateto ) %]
110 All until [% billingdateto %]
114 [% IF ( isbneanissn ) %]
115 <li>ISBN/EAN/ISSN: [% isbneanissn %]</li>
118 <li>Title: [% title %]</li>
121 <li>Author: [% author %]</li>
123 [% IF ( publisher ) %]
124 <li>Publisher: [% publisher %]</li>
126 [% IF ( publicationyear ) %]
127 <li>Publication year: [% publicationyear %]</li>
130 <li>Branch: [% branchname %]</li>
134 [% END %]<!-- results_loop -->
136 <p>Use the search form on the left to find invoices.</p>
137 [% END %]<!-- do_search -->
141 <form action="" method="get">
142 <fieldset class="brief">
143 <h3>Search filters</h3>
146 <label for="invoicenumber">Invoice no:</label>
147 <input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber %]" />
150 <label for="supplier">Supplier:</label>
151 <select id="supplier" name="supplierid">
152 <option value="">All</option>
153 [% FOREACH supplier IN suppliers_loop %]
154 [% IF ( supplier.selected ) %]
155 <option selected="selected" value="[% supplier.booksellerid %]">[% supplier.suppliername %]</option>
157 <option value="[% supplier.booksellerid %]">[% supplier.suppliername %]</option>
163 <fieldset class="brief">
164 <legend>Shipment date</legend>
167 <label for="shipmentdatefrom">From:</label>
168 <input type="text" id="shipmentdatefrom" name="shipmentdatefrom" size="10" value="[% shipmentdatefrom %]" class="datepicker" />
171 <label for="shipmentdateto">To:</label>
172 <input type="text" id="shipmentdateto" name="shipmentdateto" size="10" value="[% shipmentdateto %]" class="datepicker" />
178 <fieldset class="brief">
179 <legend>Billing date</legend>
182 <label for="billingdatefrom">From:</label>
183 <input type="text" id="billingdatefrom" name="billingdatefrom" size="10" value="[% billingdatefrom %]" class="datepicker" />
186 <label for="billingdateto">To:</label>
187 <input type="text" id="billingdateto" name="billingdateto" size="10" value="[% billingdateto %]" class="datepicker" />
193 <label for="isbneanissn">ISBN / EAN / ISSN:</label>
194 <input type="text" id="isbneanissn" name="isbneanissn" value="[% isbneanissn %]" />
197 <label for="title">Title:</label>
198 <input type="text" id="title" name="title" value="[% title %]" />
201 <label for="author">Author:</label>
202 <input type="text" id="author" name="author" value="[% author %]" />
205 <label for="publisher">Publisher:</label>
206 <input type="text" id="publisher" name="publisher" value="[% publisher %]" />
209 <label for="publicationyear">Publication year:</label>
210 <input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear %]" />
213 <label for="branch">Library:</label>
214 <select id="branch" name="branch">
215 <option value="">All</option>
216 [% FOREACH branch IN branches_loop %]
217 [% IF ( branch.selected ) %]
218 <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option>
220 <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
226 <fieldset class="action">
227 <input type="submit" value="Search" />
230 <input type="hidden" name="op" id="op" value="do_search" />
232 [% INCLUDE 'acquisitions-menu.inc' %]
235 [% INCLUDE 'intranet-bottom.inc' %]