Bug 27776: Remove default sort order of sales table
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 24 Feb 2021 15:53:13 +0000 (15:53 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 8 Mar 2021 15:51:57 +0000 (16:51 +0100)
commitbd26b4896474f26bf6d965d6cf0a47334ed842a7
treec765370d14a04148bdc646b33d3adef1363347cc
parentd386453a8968ab6f589b1efee620a6904f694b0d
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 <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 755081fdc394bbf457bee00acf1037a0ba6b29f0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt