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

(-)a/Koha/Acquisition/Order.pm (-1 / +18 lines)
Lines 168-173 sub subscription { Link Here
168
    return Koha::Subscription->_new_from_dbic( $subscription_rs );
168
    return Koha::Subscription->_new_from_dbic( $subscription_rs );
169
}
169
}
170
170
171
=head3 items
172
173
    my $items = $order->items
174
175
Returns the items associated to the order.
176
177
=cut
178
171
sub items {
179
sub items {
172
    my ( $self )  = @_;
180
    my ( $self )  = @_;
173
    # aqorders_items is not a join table
181
    # aqorders_items is not a join table
Lines 177-182 sub items { Link Here
177
    return Koha::Items->search({ itemnumber => \@itemnumbers });
185
    return Koha::Items->search({ itemnumber => \@itemnumbers });
178
}
186
}
179
187
188
=head3 duplicate_to
189
190
    my $duplicated_order = $order->duplicate_to($basket, [$default_values]);
191
192
Duplicate an existing order and attach it to a basket. $default_values can be specified as a hashref
193
that contain default values for the different order's attributes.
194
Items will be duplicated as well but barcodes will be set to null.
195
196
=cut
197
180
sub duplicate_to {
198
sub duplicate_to {
181
    my ( $self, $basket, $default_values ) = @_;
199
    my ( $self, $basket, $default_values ) = @_;
182
    my $new_order;
200
    my $new_order;
183
- 

Return to bug 15184