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