Bugzilla – Attachment 117278 Details for
Bug 27776
Point of Sale 'This sale' table should not be sorted by default
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27776: Remove default sort order of sales table
Bug-27776-Remove-default-sort-order-of-sales-table.patch (text/plain), 2.23 KB, created by
Martin Renvoize (ashimema)
on 2021-02-24 15:57:32 UTC
(
hide
)
Description:
Bug 27776: Remove default sort order of sales table
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-02-24 15:57:32 UTC
Size:
2.23 KB
patch
obsolete
>From 0dadf3b73bba48ef5e877b395ef99bbdb31f1f58 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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 >--- > koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 12 +++++------- > 1 file changed, 5 insertions(+), 7 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 4d35b60ff7..abddf5a9d6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >@@ -276,7 +276,7 @@ > "bFilter": false, > "bInfo": false, > "aoColumnDefs": [{ >- "aTargets": [-3], >+ "aTargets": [-2], > "bSortable": false, > "bSearchable": false, > }, { >@@ -292,13 +292,11 @@ > "aTargets": [-4], > "sClass" : "editable_int", > }, { >- "targets": [-1], >- "visible": false, >- "searchable": false >+ "aTargets": [-1], >+ "bVisible": false, >+ "bSearchable": false, > }], >- "aaSorting": [ >- [1, "asc"] >- ], >+ "aaSorting": [], > "fnDrawCallback": function (oSettings) { > var local = this; > local.$('.editable').editable( function(value, settings) { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27776
:
117278
|
117364
|
117668
|
117699