Bugzilla – Attachment 96908 Details for
Bug 22773
Bulk close invoices and filter invoice view (open/closed)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22773: Message appearing if any invoice selected
Bug-22773-Message-appearing-if-any-invoice-selecte.patch (text/plain), 3.96 KB, created by
ByWater Sandboxes
on 2020-01-07 15:40:01 UTC
(
hide
)
Description:
Bug 22773: Message appearing if any invoice selected
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2020-01-07 15:40:01 UTC
Size:
3.96 KB
patch
obsolete
>From fe65245580b30a0c78da07f32937dd54a20538ad Mon Sep 17 00:00:00 2001 >From: Devinim <kohadevinim@devinim.com.tr> >Date: Thu, 3 Oct 2019 15:59:37 +0000 >Subject: [PATCH] Bug 22773: Message appearing if any invoice selected > >Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> >--- > .../intranet-tmpl/prog/en/modules/acqui/invoices.tt | 16 ++++++++++------ > 1 file changed, 10 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >index 30ec194ff8..9065e0dbea 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >@@ -105,7 +105,7 @@ > [% IF tab == 'closed' %] > <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> > [% ELSE %] >- <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> >+ <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> > [% END %] > > [% END %] <!-- invoices_table --> >@@ -370,11 +370,15 @@ > var referer = $(this).attr("data-referer"); > var op = $(this).attr("data-op"); > var invoice_link = "invoice.pl?op="+op; >- $('.select-invoice:checked').each(function () { >- var row = $(this).parents('tr'); >- invoice_link = invoice_link + "&invoiceid="+$(row).attr('data-invoiceid'); >- }); >- window.location.href =invoice_link +"&"+referer; >+ if ($('.select-invoice:checked').length) { >+ $('.select-invoice:checked').each(function () { >+ var row = $(this).parents('tr'); >+ invoice_link = invoice_link + "&invoiceid="+$(row).attr('data-invoiceid'); >+ }); >+ window.location.href =invoice_link +"&"+referer; >+ } else { >+ alert ("Please select at least one invoice." ); >+ } > }); > > $('.merge').click(function (ev) { >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22773
:
93357
|
93375
|
93448
|
93660
|
94411
|
95290
|
96906
|
96907
|
96908
|
96909
|
96910
|
98729
|
98730
|
98731
|
98732
|
98733
|
106538
|
106539
|
106540
|
106541
|
106542
|
106543
|
106544
|
115420
|
115421
|
115422
|
115423
|
115424
|
115425
|
115426
|
116010
|
119282
|
119283
|
119284
|
119285
|
119286
|
119287
|
119288
|
119289
|
119290