From 928293258f93a85491e45f0777d4c68ace2a9d05 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 13 May 2024 16:53:39 +0000 Subject: [PATCH] Bug 36844: Set library, desk, and cash register menu follow-ups This patch ties up a couple of loose ends which should have been included in Bug 36582. The patch includes fixes for the staff interface login page and the cash register statistics page. To test you should have multiple libraries, desks, and cash registers defined. You may need to enable the UseCirculationDesks and UseCashRegisters system preferences. - Apply the patch and log out of the staff interface. - On the login form, test that changing your selected library correctly affects the desk and cash register dropdowns: Only desks and registers for your selected library should appear. - Log in and confirm that your selections were submitted correctly. - Go to Reports, and under "Statistics wizards" choose "Cash register." - Confirm that changes to the "Transaction library" correctly change the available options in the "Cash register" dropdown, including the "All" option. Sponsored-By: Athens County Public Libraries Signed-off-by: Lucas Gass Signed-off-by: David Nind --- .../intranet-tmpl/prog/en/modules/auth.tt | 16 ++++----- .../en/modules/reports/cash_register_stats.tt | 36 ++++++++++++++----- 2 files changed, 35 insertions(+), 17 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt index 92eef3c9e0..51b1161a85 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt @@ -144,11 +144,11 @@

[% IF Koha.Preference('ForceLibrarySelection') %] - [% ELSE %] - - [% END %] [% FOREACH l IN Branches.all( unfiltered => 1 ) %] @@ -162,8 +162,8 @@ [% IF Koha.Preference('UseCirculationDesks') && Desks.all %]

- - [% FOREACH d IN Desks.all %] @@ -174,8 +174,8 @@ [% IF Koha.Preference('UseCashRegisters') && Registers.all().size %]

- - [% PROCESS options_for_registers registers => Registers.all() %] @@ -255,8 +255,6 @@ [% MACRO jsinclude BLOCK %] - [% Asset.js("js/desk_selection.js") | $raw %] - [% Asset.js("js/register_selection.js") | $raw %] - [% INCLUDE 'calendar.inc' %] -