Bugzilla – Attachment 78159 Details for
Bug 13228
Documentation of 'restrictions' tab does not show "OVERDUE" restriction
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
perldoc for Koha/Patron/Debarments.pm
Debarments.txt (text/plain), 2.24 KB, created by
Barton Chittenden
on 2018-08-24 22:28:08 UTC
(
hide
)
Description:
perldoc for Koha/Patron/Debarments.pm
Filename:
MIME Type:
Creator:
Barton Chittenden
Created:
2018-08-24 22:28:08 UTC
Size:
2.24 KB
patch
obsolete
>[1mKoha::Patron::Debarments[0m > Koha::Patron::Debarments - Module for managing patron debarments > > [1mGetDebarments[0m > my $arrayref = GetDebarments({ borrowernumber => $borrowernumber [, key => > $value ] ); > > [1mAddDebarment[0m > my $success = AddDebarment({ borrowernumber => $borrowernumber, expiration > => $expiration, type => $type, ## enum('FINES','OVERDUES','MANUAL') > comment => $comment, }); > > Creates a new debarment. > > Required keys: borrowernumber, type > > [1mDelDebarment[0m > my $success = DelDebarment( $borrower_debarment_id ); > > Deletes a debarment. > > [1mModDebarment[0m > my $success = ModDebarment({ borrower_debarment_id => > $borrower_debarment_id, expiration => $expiration, type => $type, ## > enum('FINES','OVERDUES','MANUAL','DISCHARGE') comment => $comment, }); > > Updates an existing debarment. > > Required keys: borrower_debarment_id > > [1mAddUniqueDebarment[0m > my $success = AddUniqueDebarment({ borrowernumber => $borrowernumber, type > => $type, expiration => $expiration, comment => $comment, }); > > Creates a new debarment of the type defined by the key type. If a unique > debarment already exists of the given type, it is updated instead. The > current unique debarment types are OVERDUES, and SUSPENSION > > Required keys: borrowernumber, type > > [1mDelUniqueDebarment[0m > my $success = _DelUniqueDebarment({ borrowernumber => $borrowernumber, > type => $type, }); > > Deletes a unique debarment of the type defined by the key type. The > current unique debarment types are OVERDUES, and SUSPENSION > > Required keys: borrowernumber, type > > [1m_UpdateBorrowerDebarmentFlags[0m > my $success = _UpdateBorrowerDebarmentFlags( $borrowernumber ); > > So as not to create additional latency, the fields borrowers.debarred and > borrowers.debarredcomment remain in the borrowers table. Whenever the a > borrowers debarrments are modified, this subroutine is run to decide if > the borrower is currently debarred and update the 'quick flags' in the > borrowers table accordingly. > > [1m_GetBorrowernumberByDebarmentId[0m > my $borrowernumber = _GetBorrowernumberByDebarmentId( > $borrower_debarment_id ); > > [1mAUTHOR[0m > Kyle M Hall <kyle@bywatersoltuions.com> >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 13228
: 78159