View | Details | Raw Unified | Return to bug 22773
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt (-7 / +10 lines)
Lines 105-111 Link Here
105
          [% IF tab == 'closed' %]
105
          [% IF tab == 'closed' %]
106
            <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>
106
            <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>
107
          [% ELSE  %]
107
          [% ELSE  %]
108
            <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>
108
            <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>
109
          [% END %]
109
          [% END %]
110
110
111
          [% END %] <!-- invoices_table -->
111
          [% END %] <!-- invoices_table -->
Lines 370-380 Link Here
370
                var referer = $(this).attr("data-referer");
370
                var referer = $(this).attr("data-referer");
371
                var op = $(this).attr("data-op");
371
                var op = $(this).attr("data-op");
372
                var invoice_link = "invoice.pl?op="+op;
372
                var invoice_link = "invoice.pl?op="+op;
373
                $('.select-invoice:checked').each(function () {
373
                if ($('.select-invoice:checked').length) {
374
                    var row = $(this).parents('tr');
374
                    $('.select-invoice:checked').each(function () {
375
                    invoice_link = invoice_link + "&amp;invoiceid="+$(row).attr('data-invoiceid');
375
                            var row = $(this).parents('tr');
376
                });
376
                            invoice_link = invoice_link + "&amp;invoiceid="+$(row).attr('data-invoiceid');
377
                window.location.href =invoice_link +"&amp;"+referer;
377
                    });
378
                    window.location.href =invoice_link +"&amp;"+referer;
379
                } else {
380
                    alert ("Please select at least one invoice." );
381
                }
378
            });
382
            });
379
383
380
            $('.merge').click(function (ev) {
384
            $('.merge').click(function (ev) {
381
- 

Return to bug 22773