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

(-)a/C4/Members.pm (-8 / +5 lines)
Lines 515-539 sub GetMemberRelatives { Link Here
515
515
516
  my ($block_status, $count) = IsMemberBlocked( $borrowernumber );
516
  my ($block_status, $count) = IsMemberBlocked( $borrowernumber );
517
517
518
Returns whether a patron has overdue items that may result
518
Returns whether a patron is restricted or has overdue items that may result
519
in a block or whether the patron has active fine days
519
in a block of circulation privileges.
520
that would block circulation privileges.
521
520
522
C<$block_status> can have the following values:
521
C<$block_status> can have the following values:
523
522
524
1 if the patron has outstanding fine days or a manual debarment, in which case
523
1 if the patron is currently restricted, in which case
525
C<$count> is the expiration date (9999-12-31 for indefinite)
524
C<$count> is the expiration date (9999-12-31 for indefinite)
526
525
527
-1 if the patron has overdue items, in which case C<$count> is the number of them
526
-1 if the patron has overdue items, in which case C<$count> is the number of them
528
527
529
0 if the patron has no overdue items or outstanding fine days, in which case C<$count> is 0
528
0 if the patron has no overdue items or outstanding fine days, in which case C<$count> is 0
530
529
531
Outstanding fine days are checked before current overdue items
530
Existing active restrictions are checked before current overdue items.
532
are.
533
531
534
FIXME: this needs to be split into two functions; a potential block
532
FIXME: this needs to be split into two functions; a potential block
535
based on the number of current overdue items could be orthogonal
533
based on the number of current overdue items could be orthogonal
536
to a block based on whether the patron has any fine days accrued.
534
to a block based on whether the patron has any restrictions.
537
535
538
=cut
536
=cut
539
537
540
- 

Return to bug 10063