Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Items Already Checked Out #3

Open
eby opened this issue Mar 23, 2021 · 0 comments
Open

Items Already Checked Out #3

eby opened this issue Mar 23, 2021 · 0 comments
Assignees

Comments

@eby
Copy link
Member

eby commented Mar 23, 2021

iNCIPit/iNCIPit.cgi

Lines 629 to 633 in 929dcd6

my $copy = copy_from_barcode($visid);
fail( $copy->{textcode} . " $visid" ) unless ( blessed $copy);
my $r = update_copy( $copy, 0 ); # seemed like copy had to be available before it could be checked out, so ...
my $r1 = checkin($visid) if ( $copy->status == OILS_COPY_STATUS_CHECKED_OUT ); # double posted itemcheckedout messages cause error ... trying to simplify
my $r2 = checkout( $visid, $patron_barcode, $due_date );

If staff check an item out before checking it out in dcb this code causes it to get stuck in an available status depending on the delay between the two.

@eby eby self-assigned this Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant