@@ -, +, @@ --- .../prog/en/modules/reserve/request.tt | 5 +++++ reserve/request.pl | 4 +++- 2 files changed, 8 insertions(+), 1 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -1,3 +1,4 @@ +[% USE Koha %] [% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] [% UNLESS ( multi_hold ) %] @@ -332,6 +333,10 @@ function checkMultiHold() {
  • [% borrowerfirstname %] [% borrowersurname %]'s account has expired
  • [% END %] + [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %] +
  • [% borrowerfirstname %] [% borrowersurname %] owes [% amount_outstanding | format('%.2f') %]
  • + [% END %] + [% IF ( diffbranch ) %]
  • Pickup library is different than [% borrowerfirstname %] [% borrowersurname %]'s home library ([% borrower_branchname %] / [% borrower_branchcode %] )
  • [% END %] --- a/reserve/request.pl +++ a/reserve/request.pl @@ -44,6 +44,7 @@ use C4::Utils::DataTables::Members; use C4::Members; use C4::Search; # enabled_staff_search_views use Koha::DateUtils; +use Koha::Borrower::Debarments qw(IsDebarred); my $dbh = C4::Context->dbh; my $sth; @@ -175,7 +176,8 @@ if ($borrowernumber_hold && !$action) { expiry => $expiry, diffbranch => $diffbranch, messages => $messages, - warnings => $warnings + warnings => $warnings, + amount_outstanding => GetMemberAccountRecords($borrowerinfo->{borrowernumber}), ); } --