From bb9449950bcab776ea3bedae8638d168613c7616 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. Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Katrin Fischer --- .../prog/en/modules/members/boraccount.tt | 28 +++++++++++----------- members/boraccount.pl | 27 +-------------------- 2 files changed, 15 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 b0b51732ea..2cdf76d508 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -7,7 +7,9 @@ [% USE AuthorisedValues %] [% USE Price %] [% USE Branches %] +[% USE Registers %] [% SET footerjs = 1 %] +[% SET registers = Registers.all( filters => { current_branch => 1 } ) %] [% PROCESS 'accounts.inc' %] @@ -149,6 +151,11 @@