Bugzilla – Attachment 22516 Details for
Bug 7288
Invoice improvements - Show only subscriptions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Invoice improvements - Show only subscriptions
0002-Bug-7288-Allow-to-display-only-subscriptions-in-the-.patch (text/plain), 3.90 KB, created by
Paola Rossi
on 2013-10-29 11:24:01 UTC
(
hide
)
Description:
Invoice improvements - Show only subscriptions
Filename:
MIME Type:
Creator:
Paola Rossi
Created:
2013-10-29 11:24:01 UTC
Size:
3.90 KB
patch
obsolete
>From 1a59ca5af2522642bf6cc3445b87f3b40b6de815 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 5 Nov 2012 10:35:08 +0100 >Subject: [PATCH 2/2] Bug 7288: Allow to display only subscriptions in the > invoices table > >This patch adds a checkbox "Show only subscriptions" in the invoices >table. >If this checkbox is checked, a filter is added on the table in order to >show only subscription invoices > >Signed-off-by: Paola Rossi <paola.rossi@cineca.it> >--- > C4/Acquisition.pm | 1 + > .../prog/en/modules/acqui/invoices.tt | 23 +++++++++++++++++--- > 2 files changed, 21 insertions(+), 3 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 8c40dcd..cbf1a6a 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -2311,6 +2311,7 @@ sub GetInvoices { > my $dbh = C4::Context->dbh; > my $query = qq{ > SELECT aqinvoices.*, aqbooksellers.name AS suppliername, >+ aqorders.subscriptionid, > COUNT( > DISTINCT IF( > aqorders.datereceived IS NOT NULL, >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 66b40a6..f3809f5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >@@ -9,16 +9,27 @@ > <script type="text/javascript"> > //<![CDATA[ > $(document).ready(function() { >- $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, { >+ var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, { > sDom: "t", > "aoColumns": [ >- null,null,{ "sType": "title-string" },null,null,null,null >+ null,null,null,{ "sType": "title-string" },null,null,null,null > ], > aoColumnDefs: [ >- { "bSortable": false, "aTargets": [0, 7] } >+ { "bSortable": false, "aTargets": [1, 8] }, >+ { "bVisible": false, "aTargets": [0] } > ] > })); > >+ $("#show_only_subscription").attr("checked", false); >+ >+ $("#show_only_subscription").click(function(){ >+ if ( $(this).attr("checked") ) { >+ resultst.fnFilter( "[0-9]+", 0, true ); >+ } else { >+ resultst.fnFilter( '', 0 ); >+ } >+ }); >+ > $('#merge').click(function (ev) { > var booksellerid; > var mismatch; >@@ -86,10 +97,15 @@ $(document).ready(function() { > <h1>Invoices</h1> > [% IF ( do_search ) %] > [% IF invoices %] >+ <label for="show_only_subscription"> >+ <input type="checkbox" style="vertical-align: middle;" id="show_only_subscription" /> >+ Show only subscriptions >+ </label> > <table id="resultst"> > <thead> > <tr> > <th> </th> >+ <th> </th> > <th>Invoice no.</th> > <th>Vendor</th> > <th>Billing date</th> >@@ -102,6 +118,7 @@ $(document).ready(function() { > <tbody> > [% FOREACH invoice IN invoices %] > <tr data-invoiceid="[% invoice.invoiceid %]" data-booksellerid="[% invoice.booksellerid %]" data-shipmentdate="[% invoice.shipmentdate | $KohaDates %]" data-billingdate="[% invoice.billingdate | $KohaDates %]" data-shipmentcost="[% invoice.shipmentcost %]" data-shipment_budgetid="[% invoice.shipmentcost_budgetid %]" data-closedate="[% invoice.closedate | $KohaDates %]"> >+ <td>[% invoice.subscriptionid %]</td> > <td><input type="checkbox" class="select-invoice" value="[% invoice.invoiceid %]"></input></td> > <td><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid %]">[% invoice.invoicenumber %]</a></td> > <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% invoice.booksellerid %]">[% invoice.suppliername %]</a></td> >-- >1.7.10.4 >
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 7288
:
13246
|
18537
|
21996
|
22048
|
22473
|
22516
|
23815
|
26065