Lines 28-41
Link Here
|
28 |
<a href="#" aria-current="page">Invoices</a> |
28 |
<a href="#" aria-current="page">Invoices</a> |
29 |
</li> |
29 |
</li> |
30 |
</ol> |
30 |
</ol> |
31 |
|
31 |
<ol> |
32 |
<ol> |
32 |
[% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %] |
33 |
[% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %] |
33 |
</ol> |
34 |
</ol> |
34 |
<ol> |
35 |
|
35 |
<a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a> |
36 |
<ol> |
36 |
</ol> |
37 |
<a class="toplinks" href="/cgi-bin/koha/help.pl" id="helper"><i class="fa fa-question-circle"></i> <span>Help</span></a> |
|
|
38 |
</ol> |
39 |
</nav> |
37 |
</nav> |
40 |
|
38 |
|
41 |
<div class="main container-fluid"> |
39 |
<div class="main container-fluid"> |
Lines 102-108
Link Here
|
102 |
<td> |
100 |
<td> |
103 |
|
101 |
|
104 |
<div class="btn-group dropup"> |
102 |
<div class="btn-group dropup"> |
105 |
<a class="btn btn-default btn-xs dropdown-toggle" id="invoiceactions[% invoice.invoiceid | html %]" role="button" data-toggle="dropdown" href="#"> |
103 |
<a class="btn btn-default btn-xs dropdown-toggle lientype" id="invoiceactions[% invoice.invoiceid | html %]" role="button" data-toggle="dropdown" href="#"> |
106 |
Actions <b class="caret"></b> |
104 |
Actions <b class="caret"></b> |
107 |
</a> |
105 |
</a> |
108 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="invoiceactions[% invoice.invoiceid | html %]"> |
106 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="invoiceactions[% invoice.invoiceid | html %]"> |
Lines 112-476
Link Here
|
112 |
<li><a href="invoice.pl?op=reopen&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-refresh"></i> Reopen</a></li> |
110 |
<li><a href="invoice.pl?op=reopen&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-refresh"></i> Reopen</a></li> |
113 |
[% END %] |
111 |
[% END %] |
114 |
[% ELSE %] |
112 |
[% ELSE %] |
115 |
[% SET tab = 'opened' %] |
113 |
[% IF CAN_user_acquisition_edit_invoices %] |
|
|
114 |
<li><a href="invoice.pl?op=close&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-times-circle"></i> Close</a></li> |
115 |
[% END %] |
116 |
[% END %] |
116 |
[% END %] |
117 |
<input type="checkbox" style="vertical-align: middle;" id="show_only_subscription_[% tab | html %]" class="show_only_subscription" data-tableid="[% tab | html %]resultst"/> |
117 |
[% UNLESS invoice.receivedbiblios || invoice.receiveditems %] |
118 |
<label for="show_only_subscription_[% tab | html %]"> |
118 |
[% IF CAN_user_acquisition_delete_invoices %] |
119 |
Show only subscriptions |
119 |
<li><a href="invoice.pl?op=delete&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]" class="delete_invoice"><i class="fa fa-trash"></i> Delete</a></li> |
120 |
</label> |
120 |
[% END %] |
121 |
<p><a id="CheckAll[% tab | html %]table" data-cb="[% tab | html %]" class="checkall" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="UncheckAll[% tab | html %]table" data-cb="[% tab | html %]" class="uncheckall" href="#"><i class="fa fa-remove"></i> Clear all</a></p> |
121 |
[% END %] |
122 |
<table id="[% tab | html %]resultst" class="result"> |
122 |
</ul> |
123 |
<thead> |
123 |
</div> |
124 |
<tr> |
124 |
</td> |
125 |
[% IF CAN_user_acquisition_merge_invoices %] |
125 |
</tr> |
126 |
<th> </th> |
126 |
[% END %] |
127 |
[% END %] |
127 |
</tbody> |
128 |
<th> </th> |
128 |
</table> |
129 |
<th>Invoice number</th> |
129 |
[% IF CAN_user_acquisition_merge_invoices %] |
130 |
<th>Vendor</th> |
130 |
[% IF tab == 'closed' %] |
131 |
<th>Shipment date</th> |
131 |
<a class="btn btn-default merge lientype" id="merge_closed" href="#merge_invoices" data-table="closedresultst"><i class="fa fa-compress"></i> Merge selected invoices</a> |
132 |
<th>Billing date</th> |
132 |
<a class="btn btn-default lientype" id="open_sel" href="#reopen_selected" data-table="closedresultst" data-op="reopen" data-referer="referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-refresh"></i> Reopen selected invoices</a> |
133 |
<th>Received bibliographic records</th> |
133 |
[% ELSE %] |
134 |
<th>Received items</th> |
134 |
<a class="btn btn-default merge lientype" id="merge_open" href="#merge_invoices" data-table="openedresultst"><i class="fa fa-compress"></i> Merge selected invoices</a> |
135 |
<th>Status</th> |
135 |
<a class="btn btn-default lientype" id="close_sel" href="#close_selected" data-table="openedresultst" data-op="close" data-referer="referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-times-circle"></i> Close selected invoices</a> |
136 |
<th> </th> |
136 |
[% END %] |
137 |
</tr> |
137 |
[% END %] <!-- invoices_table --> |
138 |
</thead> |
138 |
[% END %] |
139 |
<tbody> |
139 |
<div id="invoicestabs" class="toptabs" style="clear:both;"> |
140 |
[% FOREACH invoice IN invoices %] |
140 |
<ul class="ui-tabs-nav"> |
141 |
<tr data-invoiceid="[% invoice.invoiceid | html %]" data-booksellerid="[% invoice.booksellerid | html %]" data-shipmentdate="[% invoice.shipmentdate | $KohaDates %]" data-billingdate="[% invoice.billingdate | $KohaDates %]" data-shipmentcost="[% invoice.shipmentcost | html %]" data-shipment_budgetid="[% invoice.shipmentcost_budgetid | html %]" data-closedate="[% invoice.closedate | $KohaDates %]"> |
141 |
<li><a href="#opened">Open invoices ([% openedinvoices.size || 0 | html %])</a></li> |
142 |
[% IF CAN_user_acquisition_merge_invoices %] |
142 |
<li><a href="#closed">Closed invoices ([% closedinvoices.size || 0 | html %]) </a></li> |
143 |
<td>[% invoice.is_linked_to_subscriptions | html %]</td> |
143 |
</ul> |
144 |
[% END %] |
144 |
<div id="opened"> |
145 |
<td><input type="checkbox" class="select-invoice" value="[% invoice.invoiceid | html %]" /></td> |
145 |
[% IF openedinvoices %] |
146 |
<td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid | uri %]">[% invoice.invoicenumber | html %]</a></td> |
146 |
[% INCLUDE invoices_table invoices = openedinvoices %] |
147 |
<td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% invoice.booksellerid | uri %]">[% invoice.suppliername | html %]</a></td> |
147 |
[% ELSE %] |
148 |
<td data-order="[% invoice.shipmentdate | html %]"> |
148 |
<div class="dialog message"> |
149 |
[% invoice.shipmentdate | $KohaDates %] |
149 |
<p>Your search returned no open invoices.</p> |
150 |
</td> |
150 |
</div> |
151 |
<td data-order="[% invoice.billingdate | html %]"> |
151 |
[% END %] |
152 |
[% invoice.billingdate | $KohaDates %] |
152 |
</div> <!-- opened --> |
153 |
</td> |
153 |
<div id="closed"> |
154 |
<td>[% invoice.receivedbiblios | html %]</td> |
154 |
[% IF closedinvoices %] |
155 |
<td>[% invoice.receiveditems | html %]</td> |
155 |
[% INCLUDE invoices_table invoices = closedinvoices closed = 1 %] |
156 |
<td> |
156 |
[% ELSE %] |
157 |
[% IF invoice.closedate %] |
157 |
<div class="dialog message"> |
158 |
Closed on [% invoice.closedate | $KohaDates %] |
158 |
<p>Your search returned no closed invoices.</p> |
159 |
[% ELSE %] |
159 |
</div> |
160 |
Open |
160 |
[% END %] |
161 |
[% END %] |
161 |
</div> <!-- closed --> |
162 |
</td> |
162 |
</div> <!-- invoicestabs --> |
163 |
<td> |
|
|
164 |
|
165 |
<div class="btn-group dropup"> |
166 |
<a class="btn btn-default btn-xs dropdown-toggle" id="invoiceactions[% invoice.invoiceid | html %]" role="button" data-toggle="dropdown" href="#"> |
167 |
Actions <b class="caret"></b> |
168 |
</a> |
169 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="invoiceactions[% invoice.invoiceid | html %]"> |
170 |
<li><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid | uri %]"><i class="fa fa-search"></i> Details</a></li> |
171 |
[% IF invoice.closedate %] |
172 |
[% IF CAN_user_acquisition_reopen_closed_invoices %] |
173 |
<li><a href="invoice.pl?op=reopen&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-refresh"></i> Reopen</a></li> |
174 |
[% END %] |
175 |
[% ELSE %] |
176 |
[% IF CAN_user_acquisition_edit_invoices %] |
177 |
<li><a href="invoice.pl?op=close&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-times-circle"></i> Close</a></li> |
178 |
[% END %] |
179 |
[% END # /IF invoice.closedate %] |
180 |
[% UNLESS invoice.receivedbiblios || invoice.receiveditems %] |
181 |
[% IF CAN_user_acquisition_delete_invoices %] |
182 |
<li><a href="invoice.pl?op=delete&invoiceid=[% invoice.invoiceid | uri %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]" class="delete_invoice"><i class="fa fa-trash"></i> Delete</a></li> |
183 |
[% END %] |
184 |
[% END %] |
185 |
</ul> |
186 |
</div> <!-- /.btn-group dropup --> |
187 |
</td> |
188 |
</tr> |
189 |
[% END # /FOREACH invoice %] |
190 |
</tbody> |
191 |
</table> <!-- /#[% tab | html %]resultst --> |
192 |
|
193 |
[% IF CAN_user_acquisition_merge_invoices %] |
194 |
[% IF tab == 'closed' %] |
195 |
<a class="btn btn-default merge" id="merge_closed" href="#merge_invoices" data-table="closedresultst"><i class="fa fa-compress"></i> Merge selected invoices</a> |
196 |
<a class="btn btn-default" id="open_sel" href="#reopen_selected" data-table="closedresultst" data-op="reopen" data-referer="referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-refresh"></i> Reopen selected invoices</a> |
197 |
[% ELSE %] |
198 |
<a class="btn btn-default merge" id="merge_open" href="#merge_invoices" data-table="openedresultst"><i class="fa fa-compress"></i> Merge selected invoices</a> |
199 |
<a class="btn btn-default" id="close_sel" href="#close_selected" data-table="openedresultst" data-op="close" data-referer="referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber | uri %]%26supplier=[% booksellerid | uri %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn | uri %]%26title=[% title | uri %]%26author=[% author | uri %]%26publisher=[% publisher | uri %]%26publicationyear=[% publicationyear | uri %]%26branch=[% branch | uri %]"><i class="fa fa-times-circle"></i> Close selected invoices</a> |
200 |
[% END # /IF tab == 'closed' %] |
201 |
[% END # /IF CAN_user_acquisition_merge_invoices %] |
202 |
[% END # /BLOCK invoices_table %] |
203 |
|
204 |
<div id="invoicestabs" class="toptabs"> |
205 |
<ul class="nav nav-tabs" role="tablist"> |
206 |
<li role="presentation" class="active"><a href="#opened" aria-controls="opened" role="tab" data-toggle="tab">Open invoices ([% openedinvoices.size || 0 | html %])</a></li> |
207 |
<li role="presentation"><a href="#closed" aria-controls="closed" role="tab" data-toggle="tab">Closed invoices ([% closedinvoices.size || 0 | html %]) </a></li> |
208 |
</ul> |
209 |
<div class="tab-content"> |
210 |
<div id="opened" role="tabpanel" class="tab-pane active"> |
211 |
[% IF openedinvoices %] |
212 |
[% INCLUDE invoices_table invoices = openedinvoices %] |
213 |
[% ELSE %] |
214 |
<div class="dialog message"> |
215 |
<p>Your search returned no open invoices.</p> |
216 |
</div> |
217 |
[% END %] |
218 |
</div> <!-- /#opened --> |
219 |
<div id="closed" role="tabpanel" class="tab-pane"> |
220 |
[% IF closedinvoices %] |
221 |
[% INCLUDE invoices_table invoices = closedinvoices closed = 1 %] |
222 |
[% ELSE %] |
223 |
<div class="dialog message"> |
224 |
<p>Your search returned no closed invoices.</p> |
225 |
</div> |
226 |
[% END %] |
227 |
</div> <!-- /#closed --> |
228 |
</div> <!-- /.tab-content --> |
229 |
</div> <!-- /#invoicestabs --> |
230 |
|
231 |
|
232 |
<div id="merge_invoices"> |
233 |
<form id="merge_invoice_form" action="/cgi-bin/koha/acqui/invoice.pl" method="post"> |
234 |
<fieldset class="rows"> |
235 |
<ol> |
236 |
<li><h2>Merge invoices</h2></li> |
237 |
<li> |
238 |
<table id="merge_table"> |
239 |
<thead> |
240 |
<tr> |
241 |
<th>Invoice number</th> |
242 |
<th>Shipment date</th> |
243 |
<th>Billing date</th> |
244 |
<th>Shipment cost</th> |
245 |
</tr> |
246 |
</thead> |
247 |
<tbody> |
248 |
</tbody> |
249 |
</table> |
250 |
</li> |
251 |
|
252 |
<li> |
253 |
<label for="merge_invoicenumber" class="required">Invoice number:</label> |
254 |
<input type="text" size="10" id="merge_invoicenumber" name="invoicenumber" value="" class="required" required="required" /> |
255 |
<span class="required">Required</span> |
256 |
</li> |
257 |
|
163 |
|
258 |
<li> |
|
|
259 |
<label for="merge_shipmentdate">Shipment date:</label> |
260 |
<input type="text" size="10" id="merge_shipmentdate" name="shipmentdate" value="" class="flatpickr" /> |
261 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
262 |
</li> |
263 |
|
164 |
|
264 |
<li> |
165 |
<div id="merge_invoices"> |
265 |
<label for="merge_billingdate">Billing date:</label> |
166 |
<form id="merge_invoice_form" action="/cgi-bin/koha/acqui/invoice.pl" method="post"> |
266 |
<input type="text" size="10" id="merge_billingdate" name="billingdate" value="" class="flatpickr" /> |
167 |
<fieldset class="rows"> |
267 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
168 |
<ol> |
268 |
</li> |
169 |
<li><h2>Merge invoices</h2></li> |
|
|
170 |
<li><table id="merge_table"> |
171 |
<thead><tr><th>Invoice number</th><th>Shipment date</th><th>Billing date</th><th>Shipment cost</th></tr></thead> |
172 |
<tbody> |
173 |
</tbody> |
174 |
</table></li> |
175 |
<li><label for="merge_invoicenumber" class="required">Invoice number:</label> |
176 |
<input type="text" size="10" id="merge_invoicenumber" name="invoicenumber" value="" class="required" required="required" /> |
177 |
<span class="required">Required</span> |
178 |
</li> |
179 |
<li> |
180 |
<label for="merge_shipmentdate">Shipment date:</label> |
181 |
<input type="text" size="10" id="merge_shipmentdate" name="shipmentdate" value="" class="flatpickr" /> |
182 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
183 |
</li> |
269 |
|
184 |
|
270 |
<<<<<<< HEAD |
185 |
<li> |
271 |
<li> |
186 |
<label for="merge_billingdate">Billing date:</label> |
272 |
<label for="merge_shipmentcost">Shipment cost:</label> |
187 |
<input type="text" size="10" id="merge_billingdate" name="billingdate" value="" class="flatpickr" /> |
273 |
<input type="text" size="10" id="merge_shipmentcost" name="shipmentcost" value="" /> |
188 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
274 |
</li> |
189 |
</li> |
275 |
<li> |
|
|
276 |
<label for="merge_shipment_budgetid">Fund:</label> |
277 |
<select id="merge_shipment_budgetid" name="shipment_budget_id"> |
278 |
<option value="">No fund</option> |
279 |
[% FOREACH budget IN budgets_loop %] |
280 |
<option value="[% budget.budget_id | html %]">[% budget.budget_name | html %]</option> |
281 |
[% END %] |
282 |
</select> |
283 |
</li> |
284 |
|
190 |
|
285 |
<li> |
191 |
<li><label for="merge_shipmentcost">Shipment cost:</label> |
286 |
<span class="label">Status:</span> <span id="merge_status"></span> |
192 |
<input type="text" size="10" id="merge_shipmentcost" name="shipmentcost" value="" /></li> |
287 |
</li> |
193 |
<li><label for="merge_shipment_budgetid">Fund:</label> |
288 |
<li> |
194 |
<select id="merge_shipment_budgetid" name="shipment_budget_id"> |
289 |
<input type="submit" value="Merge" /> |
195 |
<option value="">No fund</option> |
290 |
</li> |
196 |
[% FOREACH budget IN budgets_loop %] |
291 |
</ol> |
197 |
<option value="[% budget.budget_id | html %]">[% budget.budget_name | html %] |
292 |
<input type="hidden" name="op" value="mod" /> |
198 |
</option> |
293 |
<input type="hidden" id="merge_invoiceid" name="invoiceid" value="" /> |
|
|
294 |
</fieldset> <!-- /.rows --> |
295 |
</form> <!-- /#merge_invoice_form --> |
296 |
</div> <!-- /#merge_invoices --> |
297 |
[% ELSE # IF invoices %] |
298 |
<p>Sorry, but there are no results for your search.</p> |
299 |
<p>Search was: |
300 |
<ul> |
301 |
[% IF ( invoicenumber ) %] |
302 |
<li>Invoice number: [% invoicenumber | html %]</li> |
303 |
[% END %] |
304 |
[% IF booksellerid %] |
305 |
<li>Vendor: [% suppliername | html %]</li> |
306 |
[% END %] |
307 |
[% IF shipmentdatefrom %] |
308 |
<li> |
309 |
Shipment date: |
310 |
[% IF shipmentdateto %] |
311 |
From [% shipmentdatefrom | $KohaDates %] |
312 |
To [% shipmentdateto | $KohaDates %] |
313 |
[% ELSE %] |
314 |
All since [% shipmentdatefrom | $KohaDates %] |
315 |
[% END %] |
316 |
</li> |
317 |
[% ELSE %] |
318 |
[% IF shipmentdateto %] |
319 |
<li> |
320 |
Shipment date: |
321 |
All until [% shipmentdateto | $KohaDates %] |
322 |
</li> |
323 |
[% END %] |
324 |
[% END %] |
325 |
[% IF billingdatefrom %] |
326 |
<li> |
327 |
Billing date: |
328 |
[% IF billingdateto %] |
329 |
From [% billingdatefrom | $KohaDates %] |
330 |
To [% billingdateto | $KohaDates %] |
331 |
[% ELSE %] |
332 |
All since [% billingdatefrom | $KohaDates %] |
333 |
[% END %] |
334 |
</li> |
335 |
[% ELSE %] |
336 |
[% IF billingdateto %] |
337 |
<li> |
338 |
Billing date: |
339 |
All until [% billingdateto | $KohaDates %] |
340 |
</li> |
341 |
[% END %] |
342 |
[% END %] |
199 |
[% END %] |
343 |
[% IF ( isbneanissn ) %] |
200 |
</select></li> |
344 |
<li>ISBN/EAN/ISSN: [% isbneanissn | html %]</li> |
201 |
|
345 |
[% END %] |
202 |
<li><span class="label">Status:</span> <span id="merge_status"></span></li> |
346 |
[% IF ( title ) %] |
203 |
<li><input type="submit" value="Merge" /></li> |
347 |
<li>Title: [% title | html %]</li> |
204 |
</ol> |
348 |
[% END %] |
205 |
<input type="hidden" name="op" value="mod" /> |
349 |
[% IF ( author ) %] |
206 |
<input type="hidden" id="merge_invoiceid" name="invoiceid" value="" /> |
350 |
<li>Author: [% author | html %]</li> |
207 |
</fieldset> |
351 |
[% END %] |
208 |
</form> |
352 |
[% IF ( publisher ) %] |
209 |
</div> |
353 |
<li>Publisher: [% publisher | html %]</li> |
210 |
[% ELSE %] |
354 |
[% END %] |
211 |
<p>Sorry, but there are no results for your search.</p> |
355 |
[% IF ( publicationyear ) %] |
212 |
<p>Search was: |
356 |
<li>Publication year: [% publicationyear | html %]</li> |
213 |
<ul> |
357 |
[% END %] |
214 |
[% IF ( invoicenumber ) %] |
358 |
[% IF ( branch ) %] |
215 |
<li>Invoice number: [% invoicenumber | html %]</li> |
359 |
<li>Library: [% Branches.GetName( branch ) | html %]</li> |
216 |
[% END %] |
360 |
[% END %] |
217 |
[% IF booksellerid %] |
361 |
</ul> |
218 |
<li>Vendor: [% suppliername | html %]</li> |
362 |
</p> |
219 |
[% END %] |
363 |
[% END # /IF invoices %] |
220 |
[% IF shipmentdatefrom %] |
|
|
221 |
<li>Shipment date: |
222 |
[% IF shipmentdateto %] |
223 |
From [% shipmentdatefrom | $KohaDates %] |
224 |
To [% shipmentdateto | $KohaDates %] |
364 |
[% ELSE %] |
225 |
[% ELSE %] |
365 |
<p>Use the search form on the left to find invoices.</p> |
226 |
All since [% shipmentdatefrom | $KohaDates %] |
366 |
[% END %]<!-- do_search --> |
227 |
[% END %] |
367 |
</main> |
228 |
</li> |
368 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
229 |
[% ELSE %] |
|
|
230 |
[% IF shipmentdateto %] |
231 |
<li>Shipment date: |
232 |
All until [% shipmentdateto | $KohaDates %] |
233 |
</li> |
234 |
[% END %] |
235 |
[% END %] |
236 |
[% IF billingdatefrom %] |
237 |
<li>Billing date: |
238 |
[% IF billingdateto %] |
239 |
From [% billingdatefrom | $KohaDates %] |
240 |
To [% billingdateto | $KohaDates %] |
241 |
[% ELSE %] |
242 |
All since [% billingdatefrom | $KohaDates %] |
243 |
[% END %] |
244 |
</li> |
245 |
[% ELSE %] |
246 |
[% IF billingdateto %] |
247 |
<li>Billing date: |
248 |
All until [% billingdateto | $KohaDates %] |
249 |
</li> |
250 |
[% END %] |
251 |
[% END %] |
252 |
[% IF ( isbneanissn ) %] |
253 |
<li>ISBN/EAN/ISSN: [% isbneanissn | html %]</li> |
254 |
[% END %] |
255 |
[% IF ( title ) %] |
256 |
<li>Title: [% title | html %]</li> |
257 |
[% END %] |
258 |
[% IF ( author ) %] |
259 |
<li>Author: [% author | html %]</li> |
260 |
[% END %] |
261 |
[% IF ( publisher ) %] |
262 |
<li>Publisher: [% publisher | html %]</li> |
263 |
[% END %] |
264 |
[% IF ( publicationyear ) %] |
265 |
<li>Publication year: [% publicationyear | html %]</li> |
266 |
[% END %] |
267 |
[% IF ( branch ) %] |
268 |
<li>Library: [% Branches.GetName( branch ) | html %]</li> |
269 |
[% END %] |
270 |
</ul> |
271 |
</p> |
272 |
[% END %]<!-- invoices --> |
273 |
[% ELSE %] |
274 |
<p>Use the search form on the left to find invoices.</p> |
275 |
[% END %]<!-- do_search --> |
276 |
</main> |
277 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
369 |
|
278 |
|
370 |
<div class="col-sm-2 col-sm-pull-10"> |
|
|
371 |
<aside> |
372 |
<form action="" method="get"> |
373 |
<fieldset class="sidebar brief"> |
374 |
<h3>Search filters</h3> |
375 |
<ol> |
376 |
<li> |
377 |
<label for="invoicenumber">Invoice number</label> |
378 |
<input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber | html %]" |
379 |
class="focus" /> |
380 |
</li> |
381 |
<li> |
382 |
<label for="supplier">Vendor:</label> |
383 |
<select id="supplier" name="supplierid"> |
384 |
<option value="">All</option> |
385 |
[% FOREACH supplier IN suppliers_loop %] |
386 |
[% IF ( supplier.selected ) %] |
387 |
<option selected="selected" value="[% supplier.booksellerid | html %]">[% supplier.suppliername | html %]</option> |
388 |
[% ELSE %] |
389 |
<option value="[% supplier.booksellerid | html %]">[% supplier.suppliername | html %]</option> |
390 |
[% END %] |
391 |
[% END %] |
392 |
</select> |
393 |
</li> |
394 |
<li> |
395 |
<fieldset class="brief"> |
396 |
<legend>Shipment date</legend> |
397 |
<ol> |
398 |
<li> |
399 |
<label for="shipmentdatefrom">From:</label> |
400 |
<input type="text" id="shipmentdatefrom" name="shipmentdatefrom" size="10" value="[% shipmentdatefrom | $KohaDates %]" class="flatpickr" data-date_to="shipmentdateto" /> |
401 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
402 |
</li> |
403 |
<li> |
404 |
<label for="shipmentdateto">To:</label> |
405 |
<input type="text" id="shipmentdateto" name="shipmentdateto" size="10" value="[% shipmentdateto | $KohaDates %]" class="flatpickr" /> |
406 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
407 |
</li> |
408 |
</ol> |
409 |
</fieldset> |
410 |
</li> |
411 |
<li> |
412 |
<fieldset class="brief"> |
413 |
<legend>Billing date</legend> |
414 |
<ol> |
415 |
<li> |
416 |
<label for="billingdatefrom">From:</label> |
417 |
<input type="text" id="billingdatefrom" name="billingdatefrom" size="10" value="[% billingdatefrom | $KohaDates %]" class="flatpickr" data-date_to="billingdateto" /> |
418 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
419 |
</li> |
420 |
<li> |
421 |
<label for="billingdateto">To:</label> |
422 |
<input type="text" id="billingdateto" name="billingdateto" size="10" value="[% billingdateto | $KohaDates %]" class="flatpickr" /> |
423 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
424 |
</li> |
425 |
</ol> |
426 |
</fieldset> |
427 |
</li> |
428 |
<li> |
429 |
<label for="isbneanissn">ISBN / EAN / ISSN:</label> |
430 |
<input type="text" id="isbneanissn" name="isbneanissn" value="[% isbneanissn | html %]" /> |
431 |
</li> |
432 |
<li> |
433 |
<label for="title">Title:</label> |
434 |
<input type="text" id="title" name="title" value="[% title | html %]" /> |
435 |
</li> |
436 |
<li> |
437 |
<label for="author">Author:</label> |
438 |
<input type="text" id="author" name="author" value="[% author | html %]" /> |
439 |
</li> |
440 |
<li> |
441 |
<label for="publisher">Publisher:</label> |
442 |
<input type="text" id="publisher" name="publisher" value="[% publisher | html %]" /> |
443 |
</li> |
444 |
<li> |
445 |
<label for="publicationyear">Publication year:</label> |
446 |
<input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear | html %]" /> |
447 |
</li> |
448 |
<li> |
449 |
<label for="branch">Library:</label> |
450 |
<select id="branch" name="branch"> |
451 |
<option value="">All</option> |
452 |
[%# FIXME Should not we filter the libraries %] |
453 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %] |
454 |
</select> |
455 |
</li> |
456 |
</ol> |
457 |
<fieldset class="action"> |
458 |
<input type="submit" value="Search" /> |
459 |
</fieldset> |
460 |
</fieldset> <!-- /.sidebar.brief --> |
461 |
<input type="hidden" name="op" id="op" value="do_search" /> |
462 |
</form> |
463 |
[% INCLUDE 'acquisitions-menu.inc' %] |
464 |
</aside> |
465 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
466 |
</div> <!-- /.row --> |
467 |
======= |
468 |
<div class="col-sm-2 col-sm-pull-10"> |
279 |
<div class="col-sm-2 col-sm-pull-10"> |
469 |
<aside> |
280 |
<aside> |
470 |
<div id="filters"> |
281 |
<div id="filters"> |
471 |
<form action="" method="get"> |
282 |
<form action="" method="get"> |
472 |
<fieldset class="sidebar brief"> |
283 |
<fieldset class="sidebar brief"> |
473 |
<h4>Search filters</h4> |
284 |
<h3>Search filters</h3> |
474 |
<ol> |
285 |
<ol> |
475 |
<li> |
286 |
<li> |
476 |
<p for="invoicenumber">Invoice number |
287 |
<p for="invoicenumber">Invoice number |
Lines 563-569
Link Here
|
563 |
</aside> |
374 |
</aside> |
564 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
375 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
565 |
</div> <!-- /.row --> |
376 |
</div> <!-- /.row --> |
566 |
>>>>>>> Bug 30952: Search bar |
|
|
567 |
|
377 |
|
568 |
[% MACRO jsinclude BLOCK %] |
378 |
[% MACRO jsinclude BLOCK %] |
569 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
379 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
Lines 571-589
Link Here
|
571 |
[% INCLUDE 'calendar.inc' %] |
381 |
[% INCLUDE 'calendar.inc' %] |
572 |
<script> |
382 |
<script> |
573 |
$(document).ready(function() { |
383 |
$(document).ready(function() { |
574 |
$('[id^="CheckAll"]').click( function() { |
384 |
$('#invoicestabs').tabs(); |
575 |
var table_id = "#" + $(this).attr('data-cb') + "resultst"; |
|
|
576 |
$(table_id).find('.select-invoice[type="checkbox"]').each( function() { |
577 |
$(this).prop("checked" , true ); |
578 |
}); |
579 |
}); |
580 |
$('[id^="UncheckAll"]').click( function() { |
581 |
var table_id = "#" + $(this).attr('data-cb') + "resultst"; |
582 |
$(table_id).find('.select-invoice[type="checkbox"]').each( function() { |
583 |
$(this).prop("checked" , false ); |
584 |
}); |
585 |
}); |
586 |
|
587 |
$(".delete_invoice").click(function(){ |
385 |
$(".delete_invoice").click(function(){ |
588 |
return confirmDelete(_("Are you sure you want to delete this invoice?")); |
386 |
return confirmDelete(_("Are you sure you want to delete this invoice?")); |
589 |
}); |
387 |
}); |