Bug 27780

Summary: Add ability to set a customised default sort order for sale items
Product: Koha Reporter: Martin Renvoize <martin.renvoize>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, sally.healey
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 13985    
Bug Blocks:    

Description Martin Renvoize 2021-02-24 16:55:20 UTC
The 'Items for purchase' table on the point of sale page can be sorted by code or description.

However, it would be beneficial to have 'popular' items appear at the top to prevent the requirement for searching for these items.

We have a few options:
* We could attempt to calculate this popularity dynamically.
* We could add a user-definable sort field in debit types.
* We could add a 'popular' flag to the debit types and then sort on 'popular + code/description'.
Comment 1 Martin Renvoize 2021-02-25 10:27:24 UTC
(In reply to Martin Renvoize from comment #0)
> * We could add a 'popular' flag to the debit types and then sort on 'popular
> + code/description'.

This is the simplest to achieve and should give a reasonable result.