From 114e851f8f3b3dd7c7d0fca627d3c0a4ff655302 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 Signed-off-by: Jonathan Druart --- .../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 @@