Bad account expiration message when a user isn't, and no message when it is
When you try to hold a document for a non expired user, a warning tell you the account is expired, and when the account is expired there is no message. This patch do the inverse. Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
parent
5a1e844d10
commit
12b2e9b4f2
|
|
@ -115,8 +115,10 @@ if ($cardnumber) {
|
|||
if ($expiry_date and $expiry_date ne '0000-00-00' and
|
||||
Date_to_Days(split /-/,$date) > Date_to_Days(split /-/,$expiry_date)) {
|
||||
$messages = $expiry = 1;
|
||||
}else{
|
||||
$expiry = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
# check if the borrower make the reserv in a different branch
|
||||
if ( $borrowerinfo->{'branchcode'} ne C4::Context->userenv->{'branch'} ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue