Commit 93c38410 authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen Committed by Petter Goksøyr Åsen
Browse files

DEICH-5878 move SIP checkout check for ISSUED_TO_ANOTHER last

Before this change, users which had reached max allowed number of loans
($needsconfirmation->{TOO_MANY}) would be allowed to checkout
items which where allready checked out to another.
parent 1840d7e4
......@@ -94,9 +94,6 @@ sub do_checkout {
$self->ok(0);
return $self;
}
} elsif ($needsconfirmation->{ISSUED_TO_ANOTHER}) {
# Deichman allows check out of already checked out item
# Core::Circulation checks in and checks out
} elsif ($needsconfirmation->{DEBT}) {
$self->screen_msg('Outstanding Fines block issue');
$self->ok(0);
......@@ -126,6 +123,9 @@ sub do_checkout {
$self->screen_msg('This item is marked lost and not for loan');
$self->ok(0);
return $self;
} elsif ($needsconfirmation->{ISSUED_TO_ANOTHER}) {
# Deichman allows check out of already checked out item
# Core::Circulation checks in and checks out
} else {
$debug and warn "SIP2 unhandled needsconfirmation: " . Dumper($needsconfirmation) . "\n";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment