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

(-)a/Koha/Acquisition/Basket.pm (-1 / +3 lines)
Lines 43-49 sub effective_create_items { Link Here
43
    return $self->create_items || C4::Context->preference('AcqCreateItem');
43
    return $self->create_items || C4::Context->preference('AcqCreateItem');
44
}
44
}
45
45
46
=head3 type
46
=head2 Internal methods
47
48
=head3 _type
47
49
48
=cut
50
=cut
49
51
(-)a/Koha/Acquisition/Baskets.pm (-4 / +6 lines)
Lines 32-42 Koha::Acquisition::Baskets - Koha Basket Object set class Link Here
32
32
33
=head1 API
33
=head1 API
34
34
35
=head2 Class Methods
35
=head2 Internal methods
36
36
37
=cut
37
=head3 _type
38
39
=head3 type
40
38
41
=cut
39
=cut
42
40
Lines 44-49 sub _type { Link Here
44
    return 'Aqbasket';
42
    return 'Aqbasket';
45
}
43
}
46
44
45
=head3 object_class
46
47
=cut
48
47
sub object_class {
49
sub object_class {
48
    return 'Koha::Acquisition::Basket';
50
    return 'Koha::Acquisition::Basket';
49
}
51
}
(-)a/Koha/Acquisition/Order.pm (-2 / +9 lines)
Lines 31-37 Koha::Acquisition::Order Object class Link Here
31
31
32
=head1 API
32
=head1 API
33
33
34
=head2 Class Methods
34
=head2 Class methods
35
35
36
=head3 new
36
=head3 new
37
37
Lines 99-104 sub add_item { Link Here
99
    $rs->create({ ordernumber => $self->ordernumber, itemnumber => $itemnumber });
99
    $rs->create({ ordernumber => $self->ordernumber, itemnumber => $itemnumber });
100
}
100
}
101
101
102
=head3 basket
103
104
    my $basket = Koha::Acquisition::Orders->find( $id )->basket;
105
106
Returns the basket associated to the order.
107
108
=cut
109
102
sub basket {
110
sub basket {
103
    my ( $self )  = @_;
111
    my ( $self )  = @_;
104
    return Koha::Acquisition::Baskets->find( $self->{basketno} );
112
    return Koha::Acquisition::Baskets->find( $self->{basketno} );
105
- 

Return to bug 15685