From e828f5f839ae709fd8425a0ee46401cb835b2ce1 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 Signed-off-by: Kyle M Hall Signed-off-by: Martin Renvoize --- 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 5a55f8f039..879b4845ca 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.39.5