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

(-)a/C4/Circulation.pm (-5 / +5 lines)
Lines 4442-4448 sub ProcessOfflineOperation { Link Here
4442
    if ( $operation->{action} eq 'return' ) {
4442
    if ( $operation->{action} eq 'return' ) {
4443
        $report = ProcessOfflineReturn($operation);
4443
        $report = ProcessOfflineReturn($operation);
4444
    } elsif ( $operation->{action} eq 'issue' ) {
4444
    } elsif ( $operation->{action} eq 'issue' ) {
4445
        $report = ProcessOfflineIssue($operation);
4445
        ($report) = ProcessOfflineIssue($operation);
4446
    } elsif ( $operation->{action} eq 'payment' ) {
4446
    } elsif ( $operation->{action} eq 'payment' ) {
4447
        $report = ProcessOfflinePayment($operation);
4447
        $report = ProcessOfflinePayment($operation);
4448
    }
4448
    }
Lines 4513-4527 sub ProcessOfflineIssue { Link Here
4513
                $operation->{timestamp},
4513
                $operation->{timestamp},
4514
            );
4514
            );
4515
        }
4515
        }
4516
        AddIssue(
4516
        my $checkout = AddIssue(
4517
            $patron,
4517
            $patron,
4518
            $operation->{'barcode'},
4518
            $operation->{barcode},
4519
            undef,
4519
            $operation->{due_date},
4520
            undef,
4520
            undef,
4521
            $operation->{timestamp},
4521
            $operation->{timestamp},
4522
            undef,
4522
            undef,
4523
        );
4523
        );
4524
        return "Success.";
4524
        return ( "Success.", $checkout );
4525
    } else {
4525
    } else {
4526
        return "Borrower not found.";
4526
        return "Borrower not found.";
4527
    }
4527
    }
(-)a/C4/SIP/ILS/Transaction/Checkout.pm (-3 / +4 lines)
Lines 156-168 sub do_checkout { Link Here
156
156
157
    if ($no_block_due_date) {
157
    if ($no_block_due_date) {
158
        $overridden_duedate = $no_block_due_date;
158
        $overridden_duedate = $no_block_due_date;
159
        ProcessOfflineIssue(
159
        my ( $msg, $checkout ) = ProcessOfflineIssue(
160
            {
160
            {
161
                cardnumber => $patron->cardnumber,
161
                cardnumber => $patron->cardnumber,
162
                barcode    => $barcode,
162
                barcode    => $barcode,
163
                timestamp  => $no_block_due_date,
163
                due_date   => $no_block_due_date,
164
                timestamp  => dt_from_string,
164
            }
165
            }
165
        );
166
        );
167
        $self->{due} = $self->duedatefromissue( $checkout, $itemnumber );
166
    } else {
168
    } else {
167
169
168
        # can issue
170
        # can issue
169
- 

Return to bug 32934