View | Details | Raw Unified | Return to bug 23415
Collapse All | Expand All

(-)a/circ/renew.pl (-6 / +6 lines)
Lines 42-49 my ( $template, $librarian, $cookie, $flags ) = get_template_and_user( Link Here
42
42
43
my $schema = Koha::Database->new()->schema();
43
my $schema = Koha::Database->new()->schema();
44
44
45
my $barcode        = $cgi->param('barcode') // '';
45
my $barcode = $cgi->param('barcode') // '';
46
my $unseen         = $cgi->param('unseen') || 0;
46
my $unseen  = $cgi->param('unseen') || 0;
47
$barcode = barcodedecode($barcode) if $barcode;
47
$barcode = barcodedecode($barcode) if $barcode;
48
my $override_limit = $cgi->param('override_limit');
48
my $override_limit = $cgi->param('override_limit');
49
my $override_holds = $cgi->param('override_holds');
49
my $override_holds = $cgi->param('override_holds');
Lines 67-73 if ($barcode) { Link Here
67
            $patron = $checkout->patron;
67
            $patron = $checkout->patron;
68
68
69
            $balance = $patron->account->balance;
69
            $balance = $patron->account->balance;
70
            my $amountlimit = C4::Context->preference("noissuescharge");
70
            my $amountlimit = C4::Context->preference("OPACFineNoRenewals");
71
71
72
            if ( ( $patron->is_debarred || q{} ) lt dt_from_string()->ymd() ) {
72
            if ( ( $patron->is_debarred || q{} ) lt dt_from_string()->ymd() ) {
73
                my $can_renew;
73
                my $can_renew;
Lines 96-106 if ($barcode) { Link Here
96
                }
96
                }
97
97
98
                if ( $balance > $amountlimit ) {
98
                if ( $balance > $amountlimit ) {
99
                    $error = "too_much_debt";
99
                    $error     = "too_much_debt";
100
                    $can_renew = 0;
100
                    $can_renew = 0;
101
                    if($override_debt){
101
                    if ($override_debt) {
102
                        $can_renew = 1;
102
                        $can_renew = 1;
103
                        $error = undef;
103
                        $error     = undef;
104
                    }
104
                    }
105
                }
105
                }
106
106
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+1 lines)
Lines 596-601 OPAC: Link Here
596
            - pref: OPACFineNoRenewals
596
            - pref: OPACFineNoRenewals
597
              class: currency
597
              class: currency
598
            - '[% local_currency %] in charges (leave blank to disable).'
598
            - '[% local_currency %] in charges (leave blank to disable).'
599
            - <br /><strong>NOTE:</strong> If set, confirmation dialog is shown when renewing for patron with charges from staff interface.'
599
        -
600
        -
600
            - pref: OPACFineNoRenewalsIncludeCredits
601
            - pref: OPACFineNoRenewalsIncludeCredits
601
              choices:
602
              choices:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +1 lines)
Lines 1006-1012 Link Here
1006
1006
1007
        [% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %]
1007
        [% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %]
1008
1008
1009
        var amountlimit = "[% Koha.Preference('noissuescharge') | html %]";
1009
        var amountlimit = "[% Koha.Preference('OPACFineNoRenewals') | html %]";
1010
        var fines = "[% fines | html %]";
1010
        var fines = "[% fines | html %]";
1011
        var MSG_CONFRIM_RENEW = _("The patron has a debt of %s.\n Are you sure you want to renew checkout(s)?").format(fines);
1011
        var MSG_CONFRIM_RENEW = _("The patron has a debt of %s.\n Are you sure you want to renew checkout(s)?").format(fines);
1012
1012
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-2 / +1 lines)
Lines 730-736 Link Here
730
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'relatives-issues-table', 'json' ) | $raw %]
730
        table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'relatives-issues-table', 'json' ) | $raw %]
731
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'holds-table', 'json' ) | $raw %]
731
        table_settings_holds_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'holds-table', 'json' ) | $raw %]
732
732
733
        var amountlimit = "[% Koha.Preference('noissuescharge') | html %]";
733
        var amountlimit = "[% Koha.Preference('OPACFineNoRenewals') | html %]";
734
        var fines = "[% fines | html %]";
734
        var fines = "[% fines | html %]";
735
        var MSG_CONFRIM_RENEW = _("The patron has a debt of %s.\n Are you sure you want to renew checkout(s)?").format(fines);
735
        var MSG_CONFRIM_RENEW = _("The patron has a debt of %s.\n Are you sure you want to renew checkout(s)?").format(fines);
736
736
737
- 

Return to bug 23415