From 3937fcb143888a2fce9bfaec294c0355dcf0b0ab Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 25 Mar 2021 11:41:16 +0000 Subject: [PATCH] Bug 27983: (follow-up) Address missing instances This patch cleans up some instances I missed on the first round: - Acquisitions -> Vendor -> Receive shipments - Acquisitions -> "All available funds" table -> Click an "Ordered" value -> Click a "Spent" value - Acquisitions -> Vendor -> test sorting of contracts in the "Contracts" table Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- .../prog/en/modules/acqui/ordered.tt | 3 +- .../prog/en/modules/acqui/orderreceive.tt | 39 ++++++++++++------- .../prog/en/modules/acqui/spent.tt | 3 +- .../prog/en/modules/acqui/supplier.tt | 3 +- 4 files changed, 29 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt index 25c26b0481..7b6e6702fb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt @@ -139,8 +139,7 @@ $(document).ready(function() { $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumnDefs": [ - { "sType": "anti-the", "aTargets" : [ "anti-the" ] }, - { "sType": "title-string", "aTargets" : [ "title-string" ] } + { "sType": "anti-the", "aTargets" : [ "anti-the" ] } ], "sPaginationType": "full" })); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt index 7b7e44a889..50afa9748b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt @@ -115,10 +115,10 @@ Invoice Order number - Creation date - Receive date + Creation date + Receive date Quantity received - Status + Status Spent Internal note @@ -137,17 +137,30 @@ [% END %] [% suborder.ordernumber | html %] - [% suborder.basket.creationdate | $KohaDates%] - [% IF suborder.datereceived %][% suborder.datereceived | $KohaDates %][% END %] + [% suborder.basket.creationdate | $KohaDates%] + + [% IF suborder.datereceived %] + [% suborder.datereceived | $KohaDates %] + [% END %] + [% suborder.quantityreceived | html %] - - [% SWITCH suborder.orderstatus %] - [%# FIXME We should only see/display Complete here, right? %] - [% CASE 'new' %]New - [% CASE 'ordered' %]Ordered - [% CASE 'partial' %]Partial - [% CASE 'complete' %]Complete - [% CASE 'cancelled' %]Cancelled + [% SWITCH suborder.orderstatus %] + [%# FIXME We should only see/display Complete here, right? %] + [% CASE 'new' %] + + New + [% CASE 'ordered' %] + + Ordered + [% CASE 'partial' %] + + Partial + [% CASE 'complete' %] + + Complete + [% CASE 'cancelled' %] + + Cancelled [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt index 0a63cf235a..1393e8c9a0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt @@ -152,8 +152,7 @@ $(document).ready(function() { $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumnDefs": [ - { "sType": "anti-the", "aTargets" : [ "anti-the" ] }, - { "sType": "title-string", "aTargets" : [ "title-string" ] } + { "sType": "anti-the", "aTargets" : [ "anti-the" ] } ], "sPaginationType": "full" } ) ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt index 1eb364bed5..e8b0291156 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -469,8 +469,7 @@ $(document).ready(function() { var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, { "aoColumnDefs": [ - { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, - { "sType": "title-string", "aTargets" : [ "title-string" ] } + { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] } ], 'sDom': 't' } ) ); -- 2.39.5