From cba45ef9097d4a2eddecea9c163522535ccff4f0 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 --- .../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 a6a8cdc485..c27f3b506f 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' %] @@ -143,6 +145,11 @@