From 64046bbf1c9e43a34b3e72e0e855b7a321803c9c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 21 Jul 2020 10:52:49 +0100 Subject: [PATCH] Bug 24786: Update borroaccount to use session register This patch adds handling to allow for the use of the session cash register by default if it has been set, otherwise it defaults to '-- None --' and requires the end user to select the register to proceed with the refund or payout action. --- .../prog/en/modules/members/boraccount.tt | 27 +++++++++---------- members/boraccount.pl | 27 +------------------ 2 files changed, 14 insertions(+), 40 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index 94f0b9620a..4752d7759c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -8,6 +8,7 @@ [% USE Price %] [% USE Branches %] [% SET footerjs = 1 %] +[% SET registers = Registers.all( filters => { current_branch => 1 } ) %] [% PROCESS 'accounts.inc' %] @@ -141,6 +142,11 @@