From 92b0f148493f25eccf89e7736e16cb15cf59fd05 Mon Sep 17 00:00:00 2001 From: Marc Veron Date: Sun, 29 Jul 2012 09:30:54 +0200 Subject: [PATCH] Bug 8518 - Self checkout does not display debt amount if syspref AllowFineOverride is set to allow If the patron has depts that prevent issuing and the system preference 'AllowFineOverride' is set to 'allow', the amount is not displayed in the user message. Additionally, patch adds currency symbol to amount. Test plan: Do self checkout with patron who has debts that are over the limit. Test with and without preference 'AllowFineOverride' set. Signed-off-by: Mirko Tietgen Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack (cherry picked from commit 5fdf80afe8626579963626b82e2200497a8e853c) Signed-off-by: Jared Camins-Esakov --- opac/sco/sco-main.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl index f0ca37e989..5627a6a195 100755 --- a/opac/sco/sco-main.pl +++ b/opac/sco/sco-main.pl @@ -157,7 +157,7 @@ elsif ( $op eq "checkout" ) { hide_main => 1, ); if ($issue_error eq 'DEBT') { - $template->param(amount => $impossible->{DEBT}); + $template->param(amount => C4::Budgets->GetCurrency()->{symbol}.$impossible->{DEBT}); } #warn "issue_error: " . $issue_error ; if ( $issue_error eq "NO_MORE_RENEWALS" ) { @@ -189,6 +189,9 @@ elsif ( $op eq "checkout" ) { "circ_error_$issue_error" => 1, hide_main => 1, ); + if ($issue_error eq 'DEBT') { + $template->param(amount => C4::Budgets->GetCurrency()->{symbol}.$needconfirm->{DEBT}); + } } else { if ( $confirmed || $issuenoconfirm ) { # we'll want to call getpatroninfo again to get updated issues. # warn "issuing book?"; -- 2.39.5