From 2d83a74121db3d528ca51b48eca4e0712bb68856 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 12 Jul 2024 10:23:22 +0100 Subject: [PATCH] Bug 37340: Restore sorting on 'Details' column in edifactmsgs This patch restores the sorting options on the 'Details' field in the edifact messages page. We sort by basket_id followed by type behind the scenes, so the resulting order for a Descending sort will group by basket id highest to lowest with Quotes coming before Orders. This is generally what the end user actually wants to see, even though it may be somewhat unintuitive intially as it's not a clear alpha sort for what's displayed in the column in the UI. Signed-off-by: Martin Renvoize Signed-off-by: David Nind Signed-off-by: Mary Blomley --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt index 5a55f8f039f..879b4845ca1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt @@ -122,9 +122,10 @@ } }, { + "data": "basket_id:type", "title": _("Details"), "searchable": false, - "orderable": false, + "orderable": true, "render": function(data, type, row, meta) { let rendered = ''; if ( row.type == 'QUOTE' || row.type == 'ORDERS' ) { -- 2.45.2