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

(-)a/C4/Circulation.pm (-4 / +4 lines)
Lines 4164-4170 sub ProcessOfflineOperation { Link Here
4164
    if ( $operation->{action} eq 'return' ) {
4164
    if ( $operation->{action} eq 'return' ) {
4165
        $report = ProcessOfflineReturn( $operation );
4165
        $report = ProcessOfflineReturn( $operation );
4166
    } elsif ( $operation->{action} eq 'issue' ) {
4166
    } elsif ( $operation->{action} eq 'issue' ) {
4167
        $report = ProcessOfflineIssue( $operation );
4167
        ( $report ) = ProcessOfflineIssue( $operation );
4168
    } elsif ( $operation->{action} eq 'payment' ) {
4168
    } elsif ( $operation->{action} eq 'payment' ) {
4169
        $report = ProcessOfflinePayment( $operation );
4169
        $report = ProcessOfflinePayment( $operation );
4170
    }
4170
    }
Lines 4224-4236 sub ProcessOfflineIssue { Link Here
4224
        }
4224
        }
4225
        AddIssue(
4225
        AddIssue(
4226
            $patron,
4226
            $patron,
4227
            $operation->{'barcode'},
4227
            $operation->{barcode},
4228
            undef,
4228
            $operation->{due_date},
4229
            undef,
4229
            undef,
4230
            $operation->{timestamp},
4230
            $operation->{timestamp},
4231
            undef,
4231
            undef,
4232
        );
4232
        );
4233
        return "Success.";
4233
        return ( "Success.", $checkout );
4234
    } else {
4234
    } else {
4235
        return "Borrower not found.";
4235
        return "Borrower not found.";
4236
    }
4236
    }
(-)a/C4/SIP/ILS/Transaction/Checkout.pm (-3 / +4 lines)
Lines 148-158 sub do_checkout { Link Here
148
148
149
    if ( $no_block_due_date ) {
149
    if ( $no_block_due_date ) {
150
        $overridden_duedate = $no_block_due_date;
150
        $overridden_duedate = $no_block_due_date;
151
        ProcessOfflineIssue({
151
        my ( $msg, $checkout ) = ProcessOfflineIssue({
152
            cardnumber => $patron->cardnumber,
152
            cardnumber => $patron->cardnumber,
153
            barcode    => $barcode,
153
            barcode    => $barcode,
154
            timestamp  => $no_block_due_date,
154
            due_date   => $no_block_due_date,
155
            timestamp  => dt_from_string,
155
        });
156
        });
157
        $self->{due} = $self->duedatefromissue($checkout, $itemnumber);
156
    } else {
158
    } else {
157
        # can issue
159
        # can issue
158
        my $recall_id;
160
        my $recall_id;
159
- 

Return to bug 32934