[Koha-cvs] CVS: koha/C4/Circulation Circ2.pm,1.87.2.4,1.87.2.5
Paul POULAIN
tipaul at users.sourceforge.net
Fri May 20 00:12:02 CEST 2005
Update of /cvsroot/koha/koha/C4/Circulation
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1078/C4/Circulation
Modified Files:
Tag: rel_2_2
Circ2.pm
Log Message:
* better management of joining & expiry dates :
- dates can be manually typed when adding a borrower.
- Empty fields are automatically calculated (joining = today & expiry date calculated from borrower category)
- Expiry date can be modified
* checking expiry date when trying to issue a book & forbidding issuing when expiry date reached. ** IMPORTANT ** This check was not done before. Thus, you may be unable to issue books where you could before. You can update your database borrower by borrower or with the following SQL command on the server : "update borrowers set expiry='2005-31-12'". You can limit the update to a borrower category with "update borrowers set expiry='2005-31-12' where categorycode='A'" (all SQL commands must be typed without any ")
Index: Circ2.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Circulation/Circ2.pm,v
retrieving revision 1.87.2.4
retrieving revision 1.87.2.5
diff -C2 -r1.87.2.4 -r1.87.2.5
*** Circ2.pm 3 May 2005 19:27:19 -0000 1.87.2.4
--- Circ2.pm 19 May 2005 22:12:00 -0000 1.87.2.5
***************
*** 699,702 ****
--- 699,705 ----
$issuingimpossible{DEBARRED} = 1;
}
+ if (&Date_Cmp(&ParseDate($borrower->{expiry}),&ParseDate("today"))<0) {
+ $issuingimpossible{EXPIRED} = 1;
+ }
#
# BORROWER STATUS
More information about the Koha-cvs
mailing list