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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Mar 2021 12:38:58 +0000 (13:38 +0100)
commit755081fdc394bbf457bee00acf1037a0ba6b29f0
tree650bada3b726ed8d8ada7b2a5da3369bdfd1a1e9
parent35b5e29988f9781516b7e09327741455bfa202a5
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>
koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt