From 394bf97a72c11948cdedfd8fbb524cdf335b3d53 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 24 Feb 2021 15:53:13 +0000 Subject: [PATCH] Bug 27776: Remove default sort order of sales table This patch drops the default sort on table initialisation so that the table remains sorted in the order in which items are added unless the user explicitly chooses to apply a sort order. We also correct a mistake in the targets for disabling sorting on the 'Actions' column and update the hidden 'CODE' column to use the same syntax as the other definitions for consistency. Test plan 1/ Enable the point of sale system and set some debit types to allow sale. 2/ Navigate to the point of sale page and added some items to sell 3/ Update the price for a few lines and note the sort order does not change. 4/ Update the quantity for a few lines and note the sort order does not change. 5/ Sort a column using the headers and note it works 6/ Signoff Signed-off-by: Sally Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 755081fdc394bbf457bee00acf1037a0ba6b29f0) Signed-off-by: Fridolin Somers (cherry picked from commit bd26b4896474f26bf6d965d6cf0a47334ed842a7) Signed-off-by: Andrew Fuerste-Henry --- koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt index 1b8ce42854..ac87e36790 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt @@ -267,7 +267,7 @@ "bFilter": false, "bInfo": false, "aoColumnDefs": [{ - "aTargets": [-3], + "aTargets": [-2], "bSortable": false, "bSearchable": false, }, { @@ -287,9 +287,7 @@ "visible": false, "searchable": false }], - "aaSorting": [ - [1, "asc"] - ], + "aaSorting": [], "fnDrawCallback": function (oSettings) { var local = this; local.$('.editable').editable( function(value, settings) { -- 2.39.5