diff --git a/C4/Circulation.pm b/C4/Circulation.pm
index 44f48b2e11..70ccd7fb54 100644
--- a/C4/Circulation.pm
+++ b/C4/Circulation.pm
@@ -819,7 +819,7 @@ sub CanBookBeIssued {
#
# BORROWER STATUS
#
- my $patron_borrowing_status = $patron->can_borrow();
+ my $patron_borrowing_status = $patron->can_checkout();
if ( $patron->category->category_type eq 'X' && ( $item_object->barcode )) {
# stats only borrower -- add entry to statistics table, and return issuingimpossible{STATS} = 1 .
C4::Stats::UpdateStats(
diff --git a/Koha/Patron.pm b/Koha/Patron.pm
index 0dc98dc4c9..2034a6d137 100644
--- a/Koha/Patron.pm
+++ b/Koha/Patron.pm
@@ -2902,12 +2902,13 @@ sub consent {
}
-=head3 can_borrow
-my $patron_borrowing_status = $patron->can_borrow( { patron => $patron } );
+=head3 can_checkout
-This method determines whether a borrower is able to borrow based on various parameters.
-- Debarrments
+my $patron_borrowing_status = $patron->can_checkout( { patron => $patron } );
+
+This method determines whether a patron is able to borrow based on various parameters.
+- Restrictions
- Expiry
- Charges
@@ -2915,19 +2916,19 @@ If any blockers are found, these are returned in a hash
=cut
-sub can_borrow {
+sub can_checkout {
my ($self) = @_;
- my $status = { can_borrow => 1 };
+ my $status = { can_checkout => 1 };
- $status->{debarred} = 1 if $self->debarred;
- $status->{expired} = 1 if $self->is_expired;
- $status->{can_borrow} = 0 if $status->{debarred} || $status->{expired};
+ $status->{debarred} = 1 if $self->debarred;
+ $status->{expired} = 1 if $self->is_expired;
+ $status->{can_checkout} = 0 if $status->{debarred} || $status->{expired};
# Patron charges
my $patron_charge_limits = $self->is_patron_inside_charge_limits();
%$status = ( %$status, %$patron_charge_limits );
- $status->{can_borrow} = 0
+ $status->{can_checkout} = 0
if $patron_charge_limits->{noissuescharge}->{overlimit}
|| $patron_charge_limits->{NoIssuesChargeGuarantees}->{overlimit}
|| $patron_charge_limits->{NoIssuesChargeGuarantorsWithGuarantees}->{overlimit};
diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql
index 4715341cd1..8a6a1c2617 100644
--- a/installer/data/mysql/kohastructure.sql
+++ b/installer/data/mysql/kohastructure.sql
@@ -1806,9 +1806,9 @@ CREATE TABLE `categories` (
`min_password_length` smallint(6) DEFAULT NULL COMMENT 'set minimum password length for patrons in this category',
`require_strong_password` tinyint(1) DEFAULT NULL COMMENT 'set required password strength for patrons in this category',
`exclude_from_local_holds_priority` tinyint(1) DEFAULT NULL COMMENT 'Exclude patrons of this category from local holds priority',
- `noissuescharge` int(11) DEFAULT NULL COMMENT 'define maximum amount withstanding before checkouts are blocked',
- `noissueschargeguarantees` int(11) DEFAULT NULL COMMENT 'define maximum amount withstanding before checkouts are blocked',
- `noissueschargeguarantorswithguarantees` int(11) DEFAULT NULL COMMENT 'define maximum amount withstanding before checkouts are blocked',
+ `noissuescharge` int(11) DEFAULT NULL COMMENT 'define maximum amount outstanding before checkouts are blocked',
+ `noissueschargeguarantees` int(11) DEFAULT NULL COMMENT 'define maximum amount that the guarantees of a patron in this category can have outstanding before checkouts are blocked',
+ `noissueschargeguarantorswithguarantees` int(11) DEFAULT NULL COMMENT 'define maximum amount that the guarantors with guarantees of a patron in this category can have outstanding before checkouts are blocked',
PRIMARY KEY (`categorycode`),
UNIQUE KEY `categorycode` (`categorycode`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt
index 89fa8070ef..389533b39a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt
@@ -446,16 +446,19 @@
If Yes, holds placed by patrons of this category will not be given priority
-
-
+
+
+
If set, this will override the global value set in the noissuescharge preference