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 [% INCLUDE 'datatables.inc' %]
8 [% INCLUDE 'calendar.inc' %]
9 <script type="text/javascript">
11 $(document).ready(function() {
12 [% IF (dateformat == 'metric') %]
13 dt_add_type_uk_date();
15 $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
21 { "bSortable": false, "aTargets": [6] }
30 [% INCLUDE 'header.inc' %]
31 [% INCLUDE 'acquisitions-search.inc' %]
33 <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>
35 <div id="doc3" class="yui-t2">
41 [% IF ( do_search ) %]
49 <th>Received biblios</th>
50 <th>Received items</th>
56 [% FOREACH invoice IN invoices %]
58 <td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid %]">[% invoice.invoicenumber %]</a></td>
59 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% invoice.booksellerid %]">[% invoice.suppliername %]</a></td>
61 [% IF invoice.billingdate %]
62 [% invoice.billingdate | $KohaDates %]
65 <td>[% invoice.receivedbiblios %]</td>
66 <td>[% invoice.receiveditems %]</td>
68 [% IF invoice.closedate %]
69 Closed on [% invoice.closedate | $KohaDates %]
75 <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid %]">Details</a> /
76 [% IF invoice.closedate %]
77 <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>
79 <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>
81 [% UNLESS invoice.receivedbiblios || invoice.receiveditems %]
82 / <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>
90 <p>Sorry, but there is no results for your search.</p>
93 [% IF ( invoicenumber ) %]
94 <li>Invoice no.: [% invoicenumber %]</li>
97 <li>Vendor: [% suppliername %]</li>
99 [% IF ( billingdatefrom ) %]
101 [% IF ( billingdateto ) %]
102 From [% billingdatefrom %]
103 To [% billingdateto %]
105 All since [% billingdatefrom %]
109 [% IF ( billingdateto ) %]
111 All until [% billingdateto %]
115 [% IF ( isbneanissn ) %]
116 <li>ISBN/EAN/ISSN: [% isbneanissn %]</li>
119 <li>Title: [% title %]</li>
122 <li>Author: [% author %]</li>
124 [% IF ( publisher ) %]
125 <li>Publisher: [% publisher %]</li>
127 [% IF ( publicationyear ) %]
128 <li>Publication year: [% publicationyear %]</li>
131 <li>Library: [% branchname %]</li>
135 [% END %]<!-- invoices -->
137 <p>Use the search form on the left to find invoices.</p>
138 [% END %]<!-- do_search -->
142 <form action="" method="get">
143 <fieldset class="brief">
144 <h3>Search filters</h3>
147 <label for="invoicenumber">Invoice no:</label>
148 <input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber %]" class="focus" />
151 <label for="supplier">Vendor:</label>
152 <select id="supplier" name="supplierid">
153 <option value="">All</option>
154 [% FOREACH supplier IN suppliers_loop %]
155 [% IF ( supplier.selected ) %]
156 <option selected="selected" value="[% supplier.booksellerid %]">[% supplier.suppliername %]</option>
158 <option value="[% supplier.booksellerid %]">[% supplier.suppliername %]</option>
164 <fieldset class="brief">
165 <legend>Shipment date</legend>
168 <label for="shipmentdatefrom">From:</label>
169 <input type="text" id="shipmentdatefrom" name="shipmentdatefrom" size="10" value="[% shipmentdatefrom %]" class="datepicker" />
172 <label for="shipmentdateto">To:</label>
173 <input type="text" id="shipmentdateto" name="shipmentdateto" size="10" value="[% shipmentdateto %]" class="datepicker" />
179 <fieldset class="brief">
180 <legend>Billing date</legend>
183 <label for="billingdatefrom">From:</label>
184 <input type="text" id="billingdatefrom" name="billingdatefrom" size="10" value="[% billingdatefrom %]" class="datepicker" />
187 <label for="billingdateto">To:</label>
188 <input type="text" id="billingdateto" name="billingdateto" size="10" value="[% billingdateto %]" class="datepicker" />
194 <label for="isbneanissn">ISBN / EAN / ISSN:</label>
195 <input type="text" id="isbneanissn" name="isbneanissn" value="[% isbneanissn %]" />
198 <label for="title">Title:</label>
199 <input type="text" id="title" name="title" value="[% title %]" />
202 <label for="author">Author:</label>
203 <input type="text" id="author" name="author" value="[% author %]" />
206 <label for="publisher">Publisher:</label>
207 <input type="text" id="publisher" name="publisher" value="[% publisher %]" />
210 <label for="publicationyear">Publication year:</label>
211 <input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear %]" />
214 <label for="branch">Library:</label>
215 <select id="branch" name="branch">
216 <option value="">All</option>
217 [% FOREACH branch IN branches_loop %]
218 [% IF ( branch.selected ) %]
219 <option selected="selected" value="[% branch.branchcode %]">[% branch.branchname %]</option>
221 <option value="[% branch.branchcode %]">[% branch.branchname %]</option>
227 <fieldset class="action">
228 <input type="submit" value="Search" />
231 <input type="hidden" name="op" id="op" value="do_search" />
233 [% INCLUDE 'acquisitions-menu.inc' %]
236 [% INCLUDE 'intranet-bottom.inc' %]