Lines 103-118
Link Here
|
103 |
<li><a class="dropdown-item" href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid | uri %]"><i class="fa fa-search"></i> Details</a></li> |
103 |
<li><a class="dropdown-item" href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid | uri %]"><i class="fa fa-search"></i> Details</a></li> |
104 |
[% IF invoice.closedate %] |
104 |
[% IF invoice.closedate %] |
105 |
[% IF CAN_user_acquisition_reopen_closed_invoices %] |
105 |
[% IF CAN_user_acquisition_reopen_closed_invoices %] |
106 |
<li><a class="dropdown-item submit-form-link" data-action="invoice.pl" data-op="cud-reopen" data-invoiceid="[% invoice.invoiceid | uri %]" data-referer="/cgi-bin/koha/acqui/invoices.pl?op=do_search&invoicenumber=[% invoicenumber | html %]&supplier=[% booksellerid | html %]&shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]&shipmentdateto=[% shipmentdateto | $KohaDates %]&billingdatefrom=[% billingdatefrom | $KohaDates %]&billingdateto=[% billingdateto | $KohaDates %]&isbneanissn=[% isbneanissn | html %]&title=[% title | html %]&author=[% author | html %]&publisher=[% publisher | html %]&publicationyear=[% publicationyear | html %]&branch=[% branch | html %]" data-method="post"><i class="fa-solid fa-rotate"></i> Reopen</a></li> |
106 |
<li><a class="dropdown-item submit-form-link" data-action="invoice.pl" data-op="cud-reopen" data-invoiceid="[% invoice.invoiceid | uri %]" data-referer="/cgi-bin/koha/acqui/invoices.pl?op=do_search&invoicenumber=[% invoicenumber | uri %]&supplier=[% booksellerid | uri %]&shipmentdatefrom=[% shipmentdatefrom | uri %]&shipmentdateto=[% shipmentdateto | uri %]&billingdatefrom=[% billingdatefrom | uri %]&billingdateto=[% billingdateto | uri %]&isbneanissn=[% isbneanissn | uri %]&title=[% title | uri %]&author=[% author | uri %]&publisher=[% publisher | uri %]&publicationyear=[% publicationyear | uri %]&branch=[% branch | uri %]" data-method="post"><i class="fa-solid fa-rotate"></i> Reopen</a></li> |
107 |
[% END %] |
107 |
[% END %] |
108 |
[% ELSE %] |
108 |
[% ELSE %] |
109 |
[% IF CAN_user_acquisition_edit_invoices %] |
109 |
[% IF CAN_user_acquisition_edit_invoices %] |
110 |
<li><a class="dropdown-item submit-form-link" data-action="invoice.pl" data-op="cud-close" data-invoiceid="[% invoice.invoiceid | html %]" data-referer="/cgi-bin/koha/acqui/invoices.pl?op=do_search&invoicenumber=[% invoicenumber | html %]&supplier=[% booksellerid | html %]&shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]&shipmentdateto=[% shipmentdateto | $KohaDates %]&billingdatefrom=[% billingdatefrom | $KohaDates %]&billingdateto=[% billingdateto | $KohaDates %]&isbneanissn=[% isbneanissn | html %]&title=[% title | html %]&author=[% author | html %]&publisher=[% publisher | html %]&publicationyear=[% publicationyear | html %]&branch=[% branch | html %]" data-method="post"><i class="fa fa-times-circle"></i> Close</a></li> |
110 |
<li><a class="dropdown-item submit-form-link" data-action="invoice.pl" data-op="cud-close" data-invoiceid="[% invoice.invoiceid | html %]" data-referer="/cgi-bin/koha/acqui/invoices.pl?op=do_search&invoicenumber=[% invoicenumber | uri %]&supplier=[% booksellerid | uri %]&shipmentdatefrom=[% shipmentdatefrom | uri %]&shipmentdateto=[% shipmentdateto | uri %]&billingdatefrom=[% billingdatefrom | uri %]&billingdateto=[% billingdateto | uri %]&isbneanissn=[% isbneanissn | uri %]&title=[% title | uri %]&author=[% author | uri %]&publisher=[% publisher | uri %]&publicationyear=[% publicationyear | uri %]&branch=[% branch | uri %]" data-method="post"><i class="fa fa-times-circle"></i> Close</a></li> |
111 |
[% END %] |
111 |
[% END %] |
112 |
[% END # /IF invoice.closedate %] |
112 |
[% END # /IF invoice.closedate %] |
113 |
[% UNLESS invoice.receivedbiblios || invoice.receiveditems %] |
113 |
[% UNLESS invoice.receivedbiblios || invoice.receiveditems %] |
114 |
[% IF CAN_user_acquisition_delete_invoices %] |
114 |
[% IF CAN_user_acquisition_delete_invoices %] |
115 |
<li><a class="dropdown-item submit-form-link" data-action="invoice.pl" data-op="cud-delete" data-invoiceid="[% invoice.invoiceid | html %]" data-referer="/cgi-bin/koha/acqui/invoices.pl?op=do_search&invoicenumber=[% invoicenumber | html %]&supplier=[% booksellerid | html %]&shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]&shipmentdateto=[% shipmentdateto | $KohaDates %]&billingdatefrom=[% billingdatefrom | $KohaDates %]&billingdateto=[% billingdateto | $KohaDates %]&isbneanissn=[% isbneanissn | uri %]&title=[% title | html %]%26author=[% author | html %]&publisher=[% publisher | html %]&publicationyear=[% publicationyear | html %]&branch=[% branch | html %]" data-method="post"><i class="fa fa-trash-can"></i> Delete</a></li> |
115 |
<li><a class="dropdown-item submit-form-link" data-action="invoice.pl" data-op="cud-delete" data-confirmation-msg="Are you sure you want to delete this invoice?" data-invoiceid="[% invoice.invoiceid | html %]" data-referer="/cgi-bin/koha/acqui/invoices.pl?op=do_search&invoicenumber=[% invoicenumber | uri %]&supplier=[% booksellerid | uri %]&shipmentdatefrom=[% shipmentdatefrom | uri %]&shipmentdateto=[% shipmentdateto | uri %]&billingdatefrom=[% billingdatefrom | uri %]&billingdateto=[% billingdateto | uri %]&isbneanissn=[% isbneanissn | uri %]&title=[% title | uri %]&author=[% author | uri %]&publisher=[% publisher | uri %]&publicationyear=[% publicationyear | uri %]&branch=[% branch | uri %]" data-method="post"><i class="fa fa-trash-can"></i> Delete</a></li> |
116 |
[% END %] |
116 |
[% END %] |
117 |
[% END %] |
117 |
[% END %] |
118 |
</ul> |
118 |
</ul> |
Lines 439-447
Link Here
|
439 |
}); |
439 |
}); |
440 |
}); |
440 |
}); |
441 |
|
441 |
|
442 |
$(".delete_invoice").click(function(){ |
|
|
443 |
return confirmDelete(_("Are you sure you want to delete this invoice?")); |
444 |
}); |
445 |
var resultst = $("table.result").dataTable($.extend(true, {}, dataTablesDefaults, { |
442 |
var resultst = $("table.result").dataTable($.extend(true, {}, dataTablesDefaults, { |
446 |
"paging": false, |
443 |
"paging": false, |
447 |
"columnDefs": [ |
444 |
"columnDefs": [ |
448 |
- |
|
|