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

(-)a/C4/Circulation.pm (-1 lines)
Lines 3446-3452 sub GetTransfers { Link Here
3446
        FROM branchtransfers
3446
        FROM branchtransfers
3447
        WHERE itemnumber = ?
3447
        WHERE itemnumber = ?
3448
          AND datearrived IS NULL
3448
          AND datearrived IS NULL
3449
          AND datecancelled IS NULL
3450
        ';
3449
        ';
3451
    my $sth = $dbh->prepare($query);
3450
    my $sth = $dbh->prepare($query);
3452
    $sth->execute($itemnumber);
3451
    $sth->execute($itemnumber);
(-)a/Koha/Hold.pm (-1 / +1 lines)
Lines 519-525 sub cancel { Link Here
519
                # NOTE: Transfers are well bound with Holds.. as such we have to check that there is actually a
519
                # NOTE: Transfers are well bound with Holds.. as such we have to check that there is actually a
520
                # transfer enqueued and in transit here prior to trying to cancel it.
520
                # transfer enqueued and in transit here prior to trying to cancel it.
521
                if ( $transfer && $transfer->in_transit ) {
521
                if ( $transfer && $transfer->in_transit ) {
522
                    $transfer->cancel({ reason => 'CancelReserve', force => 1 });
522
                    $transfer->cancel({ reason => 'CancelReserve', force => 1, replace => 1 });
523
                }
523
                }
524
            }
524
            }
525
            $self->cancellationdate( dt_from_string->strftime( '%Y-%m-%d %H:%M:%S' ) );
525
            $self->cancellationdate( dt_from_string->strftime( '%Y-%m-%d %H:%M:%S' ) );
(-)a/Koha/Item/Transfer.pm (-3 / +1 lines)
Lines 110-117 sub in_transit { Link Here
110
    my ($self) = @_;
110
    my ($self) = @_;
111
111
112
    return ( defined( $self->datesent )
112
    return ( defined( $self->datesent )
113
          && !defined( $self->datearrived )
113
          && !defined( $self->datearrived ) );
114
          && !defined( $self->datecancelled ) );
115
}
114
}
116
115
117
=head3 receive
116
=head3 receive
118
- 

Return to bug 28520