From 98c281c4f17f7994652a5142e272f483087bae31 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 3a7e19dad7..a633d9aec2 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' %] @@ -143,6 +144,11 @@