<<

NAME

Koha::Acquisition::Order Object class

API

Class methods

new

Overloaded new method for backwards compatibility.

store

Overloaded store method for backwards compatibility.

add_item

  $order->add_item( $itemnumber );

Link an item to this order.

basket

    my $basket = $order->basket;

Returns the Koha::Acquisition::Basket object for the basket associated to the order.

fund

    my $fund = $order->fund;

Returns the Koha::Acquisition::Fund object for the fund (aqbudgets) associated to the order.

invoice

    my $invoice = $order->invoice;

Returns the Koha::Acquisition::Invoice object for the invoice associated to the order.

It returns undef if no linked invoice is found.

subscription

    my $subscription = $order->subscription

Returns the Koha::Subscription object for the subscription associated to the order.

It returns undef if no linked subscription is found.

current_item_level_holds

    my $holds = $order->current_item_level_holds;

Returns the current item-level holds associated to the order. It returns a Koha::Holds resultset in scalar context or a list of Koha::Hold objects in list context.

It returns undef if no biblio or no items are linked to the order.

items

    my $items = $order->items

Returns the items associated to the order.

biblio

    my $biblio = $order->biblio

Returns the bibliographic record associated to the order

duplicate_to

    my $duplicated_order = $order->duplicate_to($basket, [$default_values]);

Duplicate an existing order and attach it to a basket. $default_values can be specified as a hashref that contain default values for the different order's attributes. Items will be duplicated as well but barcodes will be set to null.

to_api_mapping

This method returns the mapping for representing a Koha::Acquisition::Order object on the API.

Internal methods

_type

<<