* 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 ")
This commit is contained in:
parent
459e1ff76b
commit
3b99d1cc9d
|
|
@ -698,6 +698,9 @@ sub canbookbeissued {
|
|||
if ($borrower->{flags}->{'DBARRED'}) {
|
||||
$issuingimpossible{DEBARRED} = 1;
|
||||
}
|
||||
if (&Date_Cmp(&ParseDate($borrower->{expiry}),&ParseDate("today"))<0) {
|
||||
$issuingimpossible{EXPIRED} = 1;
|
||||
}
|
||||
#
|
||||
# BORROWER STATUS
|
||||
#
|
||||
|
|
|
|||
|
|
@ -183,6 +183,9 @@
|
|||
<!-- TMPL_IF NAME="NO_MORE_RENEWALS" -->
|
||||
<p class="problem">No more renewals possible</p>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="EXPIRED" -->
|
||||
<p class="problem">Borrower card expired</p>
|
||||
<!-- /TMPL_IF -->
|
||||
<br/>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="NEEDSCONFIRMATION" -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue