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

(-)a/Koha/Item/Transfers.pm (-2 / +18 lines)
Lines 30-39 Koha::Item::Transfers - Koha Item Transfer Object set class Link Here
30
30
31
=head1 API
31
=head1 API
32
32
33
=head2 Class Methods
33
=head2 Class methods
34
35
=head3 filter_by_current
36
37
    my $current_transfers = $transfers->filter_by_current;
38
39
Filters out completed transfers from the resultset.
34
40
35
=cut
41
=cut
36
42
43
sub filter_by_current {
44
    my ( $self ) = @_;
45
46
    return $self->search(
47
        {
48
            datearrived   => undef,
49
            datecancelled => undef,
50
        }
51
    );
52
}
53
37
=head3 type
54
=head3 type
38
55
39
=cut
56
=cut
40
- 

Return to bug 31183