Lines 118-127
Link Here
|
118 |
[% IF tab == 'closed' %] |
118 |
[% IF tab == 'closed' %] |
119 |
<a class="submit" id="open_sel" href="#reopen_selected" 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> |
119 |
<a class="submit" id="open_sel" href="#reopen_selected" 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> |
120 |
[% ELSE %] |
120 |
[% ELSE %] |
121 |
<a class="submit" id="close_sel" href="#close_selected" 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 nvoices</a> |
121 |
<a class="submit" id="close_sel" href="#close_selected" 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> |
122 |
[% END %] |
122 |
[% END %] |
123 |
|
123 |
|
124 |
[% END %] <!-- invoices_table --> |
124 |
[% END %] <!-- invoices_table --> |
125 |
<div id="invoicestabs" class="toptabs" style="clear:both;"> |
125 |
<div id="invoicestabs" class="toptabs" style="clear:both;"> |
126 |
<ul class="ui-tabs-nav"> |
126 |
<ul class="ui-tabs-nav"> |
127 |
<li><a href="#opened">Open invoices ([% openedinvoices.size || 0 | html %])</a></li> |
127 |
<li><a href="#opened">Open invoices ([% openedinvoices.size || 0 | html %])</a></li> |
Lines 384-394
Link Here
|
384 |
var referer = $(this).attr("data-referer"); |
384 |
var referer = $(this).attr("data-referer"); |
385 |
var op = $(this).attr("data-op"); |
385 |
var op = $(this).attr("data-op"); |
386 |
var invoice_link = "invoice.pl?op="+op; |
386 |
var invoice_link = "invoice.pl?op="+op; |
387 |
$('.select-invoice:checked').each(function () { |
387 |
if ($('.select-invoice:checked').length) { |
388 |
var row = $(this).parents('tr'); |
388 |
$('.select-invoice:checked').each(function () { |
389 |
invoice_link = invoice_link + "&invoiceid="+$(row).attr('data-invoiceid'); |
389 |
var row = $(this).parents('tr'); |
390 |
}); |
390 |
invoice_link = invoice_link + "&invoiceid="+$(row).attr('data-invoiceid'); |
391 |
window.location.href =invoice_link +"&"+referer; |
391 |
}); |
|
|
392 |
window.location.href =invoice_link +"&"+referer; |
393 |
} else { |
394 |
alert ("Please select at least one invoice." ); |
395 |
} |
392 |
}); |
396 |
}); |
393 |
|
397 |
|
394 |
$('.merge').click(function (ev) { |
398 |
$('.merge').click(function (ev) { |
395 |
- |
|
|