View | Details | Raw Unified | Return to bug 22076
Collapse All | Expand All

(-)a/C4/SIP/ILS.pm (-1 / +5 lines)
Lines 205-212 sub checkin { Link Here
205
    # BEGIN TRANSACTION
205
    # BEGIN TRANSACTION
206
    $circ->item( $item = C4::SIP::ILS::Item->new($item_id) );
206
    $circ->item( $item = C4::SIP::ILS::Item->new($item_id) );
207
207
208
    my $data;
208
    if ($item) {
209
    if ($item) {
209
        $circ->do_checkin( $current_loc, $return_date, $cv_triggers_alert );
210
        $data = $circ->do_checkin( $current_loc, $return_date, $cv_triggers_alert );
210
    }
211
    }
211
    else {
212
    else {
212
        $circ->alert(1);
213
        $circ->alert(1);
Lines 219-224 sub checkin { Link Here
219
    if( !$circ->ok && $circ->alert_type && $circ->alert_type == 98 ) { # data corruption
220
    if( !$circ->ok && $circ->alert_type && $circ->alert_type == 98 ) { # data corruption
220
        $circ->screen_msg("Checkin failed: data problem");
221
        $circ->screen_msg("Checkin failed: data problem");
221
        syslog( "LOG_WARNING", "Problem with issue_id in issues and old_issues; check the about page" );
222
        syslog( "LOG_WARNING", "Problem with issue_id in issues and old_issues; check the about page" );
223
    } elsif( $data->{messages}->{withdrawn} && !$circ->ok ) {
224
            $circ->screen_msg("Item withdrawn, return not allowed");
225
            syslog("LOG_DEBUG", "C4::SIP::ILS::Checkin - item withdrawn");
222
    } elsif( !$item->{patron} ) {
226
    } elsif( !$item->{patron} ) {
223
        if( $checked_in_ok ) { # Mark checkin ok although book not checked out
227
        if( $checked_in_ok ) { # Mark checkin ok although book not checked out
224
            $circ->ok( 1 );
228
            $circ->ok( 1 );
(-)a/C4/SIP/ILS/Transaction/Checkin.pm (-1 / +2 lines)
Lines 129-134 sub do_checkin { Link Here
129
    }
129
    }
130
130
131
    $self->ok($return);
131
    $self->ok($return);
132
133
    return { messages => $messages };
132
}
134
}
133
135
134
sub resensitize {
136
sub resensitize {
135
- 

Return to bug 22076