diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 580cf84ad6..db72340305 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -3238,7 +3238,7 @@ sub CanBookBeRenewed { # extra notices being sent. Cron also implies no override return ( 0, $auto_renew ) if $auto_renew =~ 'auto_account_expired'; return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_late'; - return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_much_oweing'; + return ( 0, $auto_renew ) if $auto_renew =~ 'auto_too_much_owing'; my $issuing_rule = Koha::CirculationRules->get_effective_rules( { @@ -3280,7 +3280,7 @@ sub CanBookBeRenewed { { return ( 0, 'overdue' ); } elsif ( $finesblockrenewing && $balance > $finesblockrenewing ) { - return ( 0, 'too_much_oweing' ); + return ( 0, 'too_much_owing' ); } } @@ -5053,7 +5053,7 @@ sub _CanBookBeAutoRenewed { ? $patron->account->balance : $patron->account->outstanding_debits->total_outstanding; if ( $amountoutstanding and $amountoutstanding > $fine_no_renewals ) { - return "auto_too_much_oweing"; + return "auto_too_much_owing"; } } diff --git a/C4/SIP/Sip/MsgType.pm b/C4/SIP/Sip/MsgType.pm index e2ed6de3f7..9896d3fb62 100644 --- a/C4/SIP/Sip/MsgType.pm +++ b/C4/SIP/Sip/MsgType.pm @@ -1246,7 +1246,7 @@ sub handle_fee_paid { "auto_account_expired" => "Scheduled for automatic renewal and cannot be renewed because the patron's account has expired", "auto_renew" => "Scheduled for automatic renewal", - "auto_too_much_oweing" => "Scheduled for automatic renewal", + "auto_too_much_owing" => "Scheduled for automatic renewal", "on_reserve" => "On hold for another patron", "patron_restricted" => "Patron is currently restricted", "item_denied_renewal" => "Item is not allowed renewal", diff --git a/circ/renew.pl b/circ/renew.pl index ecbc33e105..44ab1435fc 100755 --- a/circ/renew.pl +++ b/circ/renew.pl @@ -95,7 +95,7 @@ if ( $op eq 'cud-renew' && $barcode ) { ); } - if ( $error && ( $error eq 'too_much_oweing' or $error eq 'auto_too_much_oweing' ) ) { + if ( $error && ( $error eq 'too_much_owing' or $error eq 'auto_too_much_owing' ) ) { if ( $override_debt && C4::Context->preference("AllowFineOverrideRenewing") ) { $can_renew = 1; $error = undef; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt index e285b7d798..a91b72c958 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt @@ -126,7 +126,7 @@ [% END %] - [% ELSIF error == "auto_renew" or error == "auto_too_much_oweing" %] + [% ELSIF error == "auto_renew" or error == "auto_too_much_owing" %]
[% INCLUDE 'biblio-title.inc' biblio=item.biblio link = 1 %] ( [% item.barcode | html %] ) has been scheduled for automatic renewal.
[% SET override_limit = error == "auto_renew" ? "AUTO_RENEW" : "TOO_MUCH" %] @@ -139,7 +139,7 @@ [% END %] - [% ELSIF error == "too_much_oweing" %] + [% ELSIF error == "too_much_owing" %]