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 ) %]
51 <th>Received biblios</th>
52 <th>Received items</th>
58 [% FOREACH invoice IN invoices %]
60 <td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid %]">[% invoice.invoicenumber %]</a></td>
61 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% invoice.booksellerid %]">[% invoice.suppliername %]</a></td>
63 [% IF invoice.billingdate %]
64 [% invoice.billingdate | $KohaDates %]
67 <td>[% invoice.receivedbiblios %]</td>
68 <td>[% invoice.receiveditems %]</td>
70 [% IF invoice.closedate %]
71 Closed on [% invoice.closedate | $KohaDates %]
77 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid %]">Details</a> /
78 [% IF invoice.closedate %]
79 <a href="invoice.pl?op=reopen&invoiceid=[% invoice.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%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=[% invoice.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]">Close</a>
83 [% UNLESS invoice.receivedbiblios || invoice.receiveditems %]
84 / <a href="invoice.pl?op=delete&invoiceid=[% invoice.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26billingdatefrom=[% billingdatefrom %]%26billingdateto=[% billingdateto %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]">Delete</a>
92 <p>Sorry, but there is no results for your search.</p>
95 [% IF ( invoicenumber ) %]
96 <li>Invoice no.: [% invoicenumber %]</li>
99 <li>Vendor: [% suppliername %]</li>
101 [% IF ( billingdatefrom ) %]
103 [% IF ( billingdateto ) %]
104 From [% billingdatefrom %]
105 To [% billingdateto %]
107 All since [% billingdatefrom %]
111 [% IF ( billingdateto ) %]
113 All until [% billingdateto %]
117 [% IF ( isbneanissn ) %]
118 <li>ISBN/EAN/ISSN: [% isbneanissn %]</li>
121 <li>Title: [% title %]</li>
124 <li>Author: [% author %]</li>
126 [% IF ( publisher ) %]
127 <li>Publisher: [% publisher %]</li>
129 [% IF ( publicationyear ) %]
130 <li>Publication year: [% publicationyear %]</li>
133 <li>Library: [% branchname %]</li>
137 [% END %]<!-- invoices -->
139 <p>Use the search form on the left to find invoices.</p>
140 [% END %]<!-- do_search -->
144 <form action="" method="get">
145 <fieldset class="brief">
146 <h3>Search filters</h3>
149 <label for="invoicenumber">Invoice no:</label>
150 <input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber %]" />
153 <label for="supplier">Vendor:</label>
154 <select id="supplier" name="supplierid">
155 <option value="">All</option>
156 [% FOREACH supplier IN suppliers_loop %]
157 [% IF ( supplier.selected ) %]
158 <option selected="selected" value="[% supplier.booksellerid %]">[% supplier.suppliername %]</option>
160 <option value="[% supplier.booksellerid %]">[% supplier.suppliername %]</option>
166 <fieldset class="brief">
167 <legend>Shipment date</legend>
170 <label for="shipmentdatefrom">From:</label>
171 <input type="text" id="shipmentdatefrom" name="shipmentdatefrom" size="10" value="[% shipmentdatefrom %]" class="datepicker" />
174 <label for="shipmentdateto">To:</label>
175 <input type="text" id="shipmentdateto" name="shipmentdateto" size="10" value="[% shipmentdateto %]" class="datepicker" />
181 <fieldset class="brief">
182 <legend>Billing date</legend>
185 <label for="billingdatefrom">From:</label>
186 <input type="text" id="billingdatefrom" name="billingdatefrom" size="10" value="[% billingdatefrom %]" class="datepicker" />
189 <label for="billingdateto">To:</label>
190 <input type="text" id="billingdateto" name="billingdateto" size="10" value="[% billingdateto %]" class="datepicker" />
196 <label for="isbneanissn">ISBN / EAN / ISSN:</label>
197 <input type="text" id="isbneanissn" name="isbneanissn" value="[% isbneanissn %]" />
200 <label for="title">Title:</label>
201 <input type="text" id="title" name="title" value="[% title %]" />
204 <label for="author">Author:</label>
205 <input type="text" id="author" name="author" value="[% author %]" />
208 <label for="publisher">Publisher:</label>
209 <input type="text" id="publisher" name="publisher" value="[% publisher %]" />
212 <label for="publicationyear">Publication year:</label>
213 <input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear %]" />
216 <label for="branch">Library:</label>
217 <select id="branch" name="branch">
218 <option value="">All</option>
219 [% FOREACH branch IN branches_loop %]
220 [% IF ( branch.selected ) %]
221 <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option>
223 <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
229 <fieldset class="action">
230 <input type="submit" value="Search" />
233 <input type="hidden" name="op" id="op" value="do_search" />
235 [% INCLUDE 'acquisitions-menu.inc' %]
238 [% INCLUDE 'intranet-bottom.inc' %]